-
Notifications
You must be signed in to change notification settings - Fork 1
Add a new language
Nastya Birillo edited this page Apr 6, 2021
·
3 revisions
In the default configuration, the following languages are available:
- en - English
- ru - Russian
To add a new language
- Specify a key for the language in the
LANGUAGES
variable from the const file.
const LANGUAGES = ['en', 'ru', 'de'];
In this example, de
stands for the newly added German language and should be replaced by an appropriate key.
- Add the following line for the new language to the Task model in the task model file.
de: { type: Schema.ObjectId, ref: 'TaskDescription' }
- Add the following line for the new language to the Settings model in the settings model file.
de: { type: Schema.ObjectId, ref: 'SettingsDescription' }
- Add the following line for the new language to the Gender model in the gender model file.
de: { type: String },
- Add the following line for the new language to the Country model in the country model file.
de: { type: String },
- Add the following line for the new language to the Experience model in the experience model file.
de: { type: String },
- Add texts in the new language to the following models using TaskTracker API or config files: