mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
#17 Multi-language translation basic doc
This commit is contained in:
parent
35ab79b498
commit
ecaa4837af
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user