This repository contains i18n data for cubux.net web version v2.
To add new language, follow steps below:
- Find out your language code. It's ISO 639-1 two letters code in
lower case. For example, let it be
xy
if it would exist. - Check if the language does already exist in PRs.
- Fork this repository, then clone your fork to your local machine to edit files.
- Go to directory
locales/
. Every subdirectory is a language. Copy-paste one of existing directories, and rename your copy to the language code from step 1. You are free to choose any of existing languages as origin, but obvious it's better to use the most appropriate/similar/familiar language if one exists. By defaulten
language is more preferable as origin language. - Edit localized strings in all of JSON files inside your language directory.
- Optional. Run tests as described below to check if everything is fine.
- Commit your changes and push. Then create a PR from your fork repository.
Check {select}
and {plural}
syntax before editing.
If you wish or need to run tests, follow steps:
- Run
npm install
ornpm ci
after repository clone and after pulling from upstream. - Run
npm test
.