Define new language

From ARIS
Revision as of 19:05, 23 February 2023 by David (talk | contribs)
Jump to navigation Jump to search


In this section you will find the information that will help you to add new languages to the ARIS application.

Introducction[edit]

The multilanguage system is composed by some files, but for adding a new language to the ARIS system you will only need to know about two of them: languageList.json and the language json files. You will find these files in the FrontEnd folder in ARIS system files.

languageList.json[edit]

This file contains all the languages ​​that the multilanguage system of the ARIS application can handle. All the languages ​​it contains will appear in the dropdown menu on the app's navigation bar.

Language json files[edit]

By default, the ARIS system contains language json files that correspond to the Spanish and English languages. These files contain all the translations of the ARIS application, they follow a json structure where the key has to be the same in all the language files, you can see the example in the images below.

English json file
Spanish json file. Notice that the keys for the same words are the same as in the English file

How to add a new language?[edit]

Thanks to how the multilanguage system is implemented, you only have to follow two simple steps that we explain below.

· Step 1: Add a new language json file. Remember that it must follow the same structure as the files for other languages, so they must all contain the same keys. We recommend naming the new files as the ISO 639-1 code of the new language.
· Step 2: Add the new language to the languageList.json file just as the other languages ​​are added.

You don't have to worry about modifying other files, if you have followed the above two steps you have successfully added a new language to the ARIS system.