Languages (i18n)
How to add a new Language
Note: This section is for developers who want to add a new language to the project. If you are not a developer, please skip this section.
- Fork the FiveNet repository.
- Clone your forked repository to your local machine.
- Create a new folder and file in the
i18n/locales/directory with the language code as the filename (e.g.,i18n/locales/fr/fr.jsonfor French). - Copy the contents of an existing language file (e.g.,
en/en.json) into the new language's folder. - Translate the messages/values into the new language.
- Add the new language to the
i18n.localesarray in thenuxt.config.tsfile.{ name: 'French', code: 'fr', language: 'fr', files: ['fr/fr.json'], icon: 'i-flagpack-fr', },
Thenameshould be the name of the language in English,codeis the language code (e.g.,defor German),languageis the language code used in the JSON file, andfilesis an array of files to load for that language. - Create a pull request with your changes.
- Once the pull request is merged, the new language will be available in the application with the next release.
