Quantum-Game / quantum-game-2

LEGACY open-source version of Quantum Game 2 (Sept 2019 - Oct 2020)
https://quantumgame.io
MIT License
65 stars 16 forks source link

Translations #225

Closed Frizi closed 3 years ago

Frizi commented 3 years ago

This is a showcase implementation for translation system. Currently only Options page is translated. More changes would be needed across the app to properly translate everything.

Features include:

For users of VSCode, I recommend installing I18n Ally extension and adding this config to your local project .vscode/settings.json:

{
    "i18n-ally.localesPaths": [
        "src/i18n/locales"
    ],
    "i18n-ally.enabledParsers": [
        "ts"
    ],
    "i18n-ally.keystyle": "nested"
}

This allows for preview and jump-to-definition of translated text in-code among other things.

image

stared commented 3 years ago

If we can do it gradually, yes!

Sooner or later we want to have translations. Plus, separating text from other pieces of code is a plus for me.

@KlemKlem What you think about this feature for translations?

KlemKlem commented 3 years ago

Sounds great! although I am not sure when we get to different language versions.