vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Using gettext .po and .mo approach

Open jlariza opened this issue 1 year ago • 0 comments

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 text Hello 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

jlariza avatar Nov 28 '23 20:11 jlariza