-
Notifications
You must be signed in to change notification settings - Fork 30
Languages
NEMPay is available in the following languages.
- Catalan
- Chinese
- English
- German
- Japanese
- Korean
- Polish
- Russian
- Spanish
-
Go to
src/assets/i18n/
and create a new jsonfile. It should be named as the code of the language to be added.On this site you can find the the language's code (BCP-47 compliant language identifier)
For example, if we would like to add Italian, we would create the file
it-IT.json
.Note: If for example, you create es.json instead of
ES-es.json
, it will work for all Spanish variations. -
Copy and paste the following content into the file just created.
-
Go to
src/providers/language/language.provider.ts
and add to this.availableLanguages array the new language code under the constructor:
constructor(...) {
this.availableLanguages = ['en', 'es','ca', 'ko', 'ru', 'pl', 'ja', 'de', 'it'];
...
}
-
Edit the language file under
src/assets/i18n/
-
Find the string to edit, for example
"PLEASE_WAIT": "Please wait...",
-
Change the right part, next to ':'.
"PLEASE_WAIT": "Wait please...",
Ensure that quotations wrapping the sentence and commas are not deleted!
Go to src/providers/language/language.provider.ts
and remove the language you want to delete under this.availableLanguages array.
Go to src/providers/language/language.provider.ts
and change the language for that one that should be default language.
constructor(...) {
...
this.defaultLanguage = 'en';
}