Languages

NEMPay is available in the following languages.

  • Catalan
  • English
  • German
  • Japanese
  • Korean
  • Polish
  • Russian
  • Spanish

Adding a new language

  1. Go to src/assets/i18n/ and create a new jsonfile, named with the code of the language to be added.

    On this site you can find the code of your language (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 one language, we only indicate the first part, for example es.json instead of ES-es.json, it will work for all spanish variations.

  2. Copy and paste the following content into the file just created.

  3. Go to src/providers/language/language.provider.ts and add to this.availableLanguages array the new language code under the constructor, like this.

    constructor(...) {
    
        this.availableLanguages = ['en', 'es','ca', 'ko', 'ru', 'pl', 'ja', 'de', 'it'];
        ...
    }
    

Editing an existing language

  1. Open the language you want to edit under src/assets/i18n/

  2. Find the string you want to edit, for example "PLEASE_WAIT": "Please wait...",

  3. Change the right part, next to ':'. "PLEASE_WAIT": "Wait please...", Ensure that quotations wrapping the sentence and commas are not deleted!

Removing languages

In case you don't need all the languages for your custom application, you can also delete some of them.

Go to src/providers/language/language.provider.ts and remove the language you want to delete under this.availableLanguages array.

Set a language by default

Default language can be changed.

Go to src/providers/language/language.provider.ts and change the language for that one that should be default language.

constructor(...) {
    ...
    this.defaultLanguage = 'en';
}