#17 Multi-language translation basic doc

This commit is contained in:
mauriziovitale84 2016-04-27 11:59:00 +01:00
parent 35ab79b498
commit ecaa4837af

View File

@ -76,3 +76,26 @@ npm run build.dev
```sh
gulp dev
```
###Multi-language
To support a new language you need to create your language file (.json) and add it to `i18n/` folder.
```json
{
"username" : "Username",
"input-required-message": "Required",
"input-min-message": "Your username needs to be at least 4 characters.",
"login-button": "Login",
}
```
Directory structure:
```
├── i18n/
│ ├── en.json
│ ├── it.json
│ ├── fr.json
```