From 133e972dc78cee6bb2a728522065d3aa96e16e37 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 24 Oct 2017 18:56:35 +0100 Subject: [PATCH] integrate language picker --- src/app.config.json | 78 +++++++++++++++---- .../current-user/current-user.component.html | 4 + src/assets/i18n/en.json | 1 + 3 files changed, 67 insertions(+), 16 deletions(-) diff --git a/src/app.config.json b/src/app.config.json index 908aabbb1..150adad4a 100644 --- a/src/app.config.json +++ b/src/app.config.json @@ -1,18 +1,64 @@ { - "ecmHost": "http://{hostname}:{port}", - "application": { - "name": "Alfresco Example Content Application", - "build": "1234" - }, - "document-list": { - "supportedPageSizes": [25, 50, 100] - }, - "files": { - "excluded": [ - ".DS_Store", - "desktop.ini", - "thumbs.db", - ".git" - ] - } + "ecmHost": "http://{hostname}:{port}", + "application": { + "name": "Alfresco Example Content Application", + "build": "1234" + }, + "document-list": { + "supportedPageSizes": [ + 25, + 50, + 100 + ] + }, + "files": { + "excluded": [ + ".DS_Store", + "desktop.ini", + "thumbs.db", + ".git" + ] + }, + "languages": [ + { + "key": "de", + "label": "German" + }, + { + "key": "en", + "label": "English" + }, + { + "key": "es", + "label": "Spanish" + }, + { + "key": "fr", + "label": "French" + }, + { + "key": "it", + "label": "Italian" + }, + { + "key": "ja", + "label": "Japanese" + }, + { + "key": "nb", + "label": "Norwegian" + }, + { + "key": "nl", + "label": "Dutch" + }, + { + "key": "pt-BR", + "label": "Brazilian Portuguese" + }, + { + "key": "ru", + "label": "Russian" + } + ] } diff --git a/src/app/components/current-user/current-user.component.html b/src/app/components/current-user/current-user.component.html index 461a4e632..007305e1d 100644 --- a/src/app/components/current-user/current-user.component.html +++ b/src/app/components/current-user/current-user.component.html @@ -11,8 +11,12 @@ + + + + diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index db738da15..8d9eca8fe 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1,5 +1,6 @@ { "APP": { + "LANGUAGE": "Language", "SIGN_IN": "Sign in", "SIGN_OUT": "Sign out", "NEW_MENU": {