Skip to content

Latest commit

 

History

History
35 lines (17 loc) · 1.19 KB

CONTRIBUTING.md

File metadata and controls

35 lines (17 loc) · 1.19 KB

Contributing

Please, create a fork and an explicit branch/flow name. For exemple, if you fix something (ex: mail sending) create a branch like this: git checkout -b fix/mail-sending or with flow git flow hotfix mail-sending.

For commit message, follow this convention.

PR are accepted on develop branch. Master branch only contains compiled sources (from production branch) to host the website on GitHub static page.

Adding language

For adding language, create a json file in locales/ where the name is a code of language.

In locales/common.json add the language in lang. Values should following this syntax:

"code ISO 639-1 of language": {
    "en": "Your language in english",
    "original": "your language in your language"
}

Example:
"fr": { "en": "French", "original": "Français" }

Next, in script/i18n.js import the language (example: import fr from "../locales/fr.json";), import numeral corresponding locale (example: import "numeral/locales/fr";) and add it in supportedLocales and resources.

Note: the code of language respect ISO 639-1 standard.