Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.45 KB

CONTRIBUTING.md

File metadata and controls

48 lines (25 loc) · 1.45 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 dev branch. Master branch it is only for website GitHub static page (so, production).

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 and language_selector name following this syntax:

For lang:

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

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

For language_selector

"code ISO 639-1 of language": "$t(common:lang.<code ISO 639-1 of language>.en) ($t(common:lang.<code ISO 639-1 of language>.original))"

Exemple:
"fr": "$t(common:lang.fr.en) ($t(common:lang.fr.original))"

Next, in script/i18n.js import the language and add it in supportedLocales and resources.

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

The commit message should be something like feat(lang): added polish language for adding language and feat(lang): updated polish language for updating language