mytonwalletorg / mytonwallet

The most feature-rich web wallet and browser extension for TON Network
https://mytonwallet.io
GNU General Public License v3.0
402 stars 117 forks source link

Support multiple languages #4

Open mytonwalletorg opened 2 years ago

mytonwalletorg commented 2 years ago

Preferable languages to support first: Spanish, Chinese, Russian.

Language files should be loaded asynchronously to reduce bundle size.

Make sure to avoid using third-party libraries to ensure maximum reliability and safety and also to lower bundle size.

For the very beginning, language can be automatically detected based on browser APIs. We will add a Settings section in future.

natastro commented 2 years ago

Hello! 👋🏼 Happy to help with Spanish translations if needed! Thank you!

mytonwalletorg commented 2 years ago

Hello! 👋🏼 Happy to help with Spanish translations if needed! Thank you!

Sure, thanks @natastro!

natastro commented 2 years ago

Hi @mytonwalletorg - I just wanted to clarify, what files should be translated? Thank you!

mytonwalletorg commented 2 years ago

Hi @natastro We first need to implement a localization library, because we now have English words hardcoded in layout.

natastro commented 2 years ago

Hi @mytonwalletorg, should I wait for the localization library to be set up? I've never set one up before. I usually translate some kind of English file into Spanish. If there's anything I can do to help though, just let me know! 😀

DmSide commented 2 years ago

Am I right that you don't like auto google translate? You could do it just by changing index.html from

<html lang="en" translate="no" class="notranslate">

to

<html lang="en" translate="yes">
mytonwalletorg commented 1 year ago

Hi @mytonwalletorg, should I wait for the localization library to be set up? I've never set one up before. I usually translate some kind of English file into Spanish. If there's anything I can do to help though, just let me know! 😀

Hey @natastro! We finally prepared this file 🎉 Would you still consider helping with translating it to Spanish? We would appreciate that a lot.

en.yaml.txt

Note, only values (after :), not keys, need to be translated. %variables% should also remain as is.

fotostocks commented 1 year ago

Hi @mytonwalletorg, should I wait for the localization library to be set up? I've never set one up before. I usually translate some kind of English file into Spanish. If there's anything I can do to help though, just let me know! 😀

Hey @natastro! We finally prepared this file 🎉 Would you still consider helping with translating it to Spanish? We would appreciate that a lot.

en.yaml.txt

Note, only values (after :), not keys, need to be translated. %variables% should also remain as is.

hi i want to help with indonesian language

mytonwalletorg commented 1 year ago

hi i want to help with indonesian language

Hey, sounds great! Feel free to download and translate the en.yaml.txt file above.

mytonwalletorg commented 1 year ago

@natastro Please, see comment here: https://github.com/mytonwalletorg/mytonwallet/pull/13#issuecomment-1409019832.

PanForPancakes commented 5 months ago

How about integrating Crowdin into translation workflow? It's popular and very nice to use