mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-14 17:58:44 +00:00
#17 Multi-language translation basic doc
This commit is contained in:
@@ -76,3 +76,26 @@ npm run build.dev
|
|||||||
```sh
|
```sh
|
||||||
gulp dev
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user