openfoodfacts / search-a-licious

🍊🔎 A pluggable search service for large collections of objects (like Open Food Facts)
https://search.openfoodfacts.org
GNU Affero General Public License v3.0
6 stars 4 forks source link

feat: Add i18n #171

Closed Kout95 closed 1 week ago

Kout95 commented 1 week ago

What

To translate we use lit-localize, which is a library that uses lit-element to handle translations. The translations are stored in the translations folder in the root of the project.

To add a new translation you need to :

I add command :

For the moment I only add "fr", and "en" is the default language

For crowdin, I identify this for .xlf files https://store.crowdin.com/xliff

Part of