vue-i18n
vue-i18n copied to clipboard
Using gettext .po and .mo approach
Clear and concise description of the problem
Good day,
Although this library works great; it has some issues when using it:
- there are no defaults values; if the key does not exist, it renders
message.<key>
- While programming, you don't know what the real message is because it sets only the key (e.g.
message.hello
vs the actual textHello world
) - Handling and managing the JSON file per language is complex in big apps with a lot of text
Suggested solution
Using the .po/.mo approach eases the process
- you are able to define a default value for a translation (defaulting always to the actual text you wrote in the code)
- you may actual check the text that is being added to the code
- updating the .po file and then compiling it is a more natural approach and it may be handled in an easier way
Alternative
There is an external effort for this https://github.com/avast/vuei18n-po
it may be worth it to review that project and integrate it to this one
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.