Gettext like text extraction or usage in combination with gettext #15
Replies: 4 comments
-
|
Hello, let me know which functionality you find interesting from vue3-gettext. I might be able to create an equivalent for my module. Integrating someone else's code is very complex and time-consuming; it's easier and faster to do everything myself. Regarding integration with other services, many services already support working with JSON. For example, I added documentation for integration with Crowdin Regarding extracting text from code, I can basically write a simple CLI tool that can extract translations from text. However, since I couldn't find a way to get HTML during generation, it will be necessary to extract translations from the source files. There will likely be issues, and testing will be required. If you are specifically interested in this functionality, I can create the tool soon, and you can test it. |
Beta Was this translation helpful? Give feedback.
-
|
The text extracting is the functionality which is interesting (it is also the feature basic feature what gettext is used for) |
Beta Was this translation helpful? Give feedback.
-
|
I've already developed a CLI tool that can extract text and do much more: |
Beta Was this translation helpful? Give feedback.
-
|
wow. I will have a look at that when I am back from my vacation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am a huge fan of using gettext (https://jshmrtn.github.io/vue3-gettext/) within my applications as it can extract translation messages from my source code. This makes is obsolete to handle translation files by yourself and makes it easy to handle translations with tools like weblate (https://weblate.org/). As gettext is only for the messages itself it may need to be combined with tools like nuxt-i18n-mirco or i18n.nuxt . Is any gettext like feature planned in the future or do you have any advice on how it can be combined it usage?
Thanks for your work!
Beta Was this translation helpful? Give feedback.
All reactions