Definir novo idioma

From ARIS
Revision as of 00:28, 20 May 2025 by Jamba (talk | contribs) (Created page with "===''languageList.json''=== Este arquivo contém uma lista de todos os idiomas que o sistema multilíngue da aplicação ARIS pode suportar. Todos os idiomas que o mesmo contém aparecerão no menu suspenso da barra de navegação do ARIS. nenhum|400px|thumb| ''languageList.json''")
Jump to navigation Jump to search

Nesta seção encontrará informações que o ajudarão a adicionar novos idiomas à aplicação ARIS.

Introdução

O sistema multilíngue do ARIS é implementado através de alguns arquivos, mas para adicionar um novo idioma será necessário familiarizar com dois deles: linguagemList.json e os arquivos JSON de idioma. Se encontrará esses arquivos na pasta lang nos arquivos de sistema ARIS (em "C:\Users\Public\ARIS\Frontend\build" por padrão no MSWindows).

languageList.json

Este arquivo contém uma lista de todos os idiomas que o sistema multilíngue da aplicação ARIS pode suportar. Todos os idiomas que o mesmo contém aparecerão no menu suspenso da barra de navegação do ARIS.

languageList.json

Language JSON files

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 messages displayed in ARIS interface, following 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 both files

How to add a new language?

Thanks to how the multilanguage system is implemented, in order to add a new language not provided by default in the distribution, 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 already listed.

 {"fileName": "NewLanguageCode", "label": "NewLanguageName"},

You don't have to worry about modifying any other file, if you have followed the above two steps you have successfully added a new language to the ARIS system, that will automatically be added to the Language in the Navigation bar.