yumata / lampa

GNU General Public License v2.0
336 stars 87 forks source link

Multilingue #122

Open zup3rvock opened 2 years ago

zup3rvock commented 2 years ago

Hello,

Any plans for Multilingue (App and TMDB)? I can help with translations.. English and Portuguese.

yumata commented 2 years ago

Yes, there are plans, most likely I will do it within a month.

zup3rvock commented 2 years ago

Congrats for the development! I already checked and loved it!

But won't it be possible to implement in separate files? The translation in app.min.js does not allow much maintenance... it will make more sense to have a "locales" folder.. and a json (for example) per language.. how can I help with the translation to Portuguese? Can I send you the translation from line 18284 to 18937?

yumata commented 2 years ago

Unfortunately, there is no such possibility, but it can be implemented through plugins. A little later I will write an example of how to do this through plugins.

yumata commented 2 years ago

Here is an example plugin:

Lampa.Lang.addCodes({it:'Italia'})

Lampa.Lang.AddTranslation('it',{
    lang_choice_title: 'Ben arrivato',
    lang_choice_subtitle: 'Scegli la tua LINGUA.',
    ...
})