From 325cedc5dfb9c20222c06900bce3e8a4e07285c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 25 Mar 2021 19:46:59 +0100 Subject: [PATCH] Adding new languages --- webapp/i18n/en.json | 3 +++ webapp/src/components/sidebar.tsx | 15 +++++++++++++++ webapp/src/i18n.tsx | 10 ++++++++++ 3 files changed, 28 insertions(+) diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 46726f875..612f7e287 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -70,6 +70,7 @@ "Sidebar.add-board": "+ Add Board", "Sidebar.add-template": "+ New template", "Sidebar.changePassword": "Change password", + "Sidebar.chinese": "Chinese", "Sidebar.dark-theme": "Dark theme", "Sidebar.default-theme": "Default theme", "Sidebar.delete-board": "Delete board", @@ -88,6 +89,7 @@ "Sidebar.light-theme": "Light theme", "Sidebar.logout": "Log out", "Sidebar.no-views-in-board": "No pages inside", + "Sidebar.occitan": "Occitan", "Sidebar.russian": "Russian", "Sidebar.select-a-template": "Select a template", "Sidebar.set-language": "Set language", @@ -95,6 +97,7 @@ "Sidebar.settings": "Settings", "Sidebar.spanish": "Spanish", "Sidebar.template-from-board": "New template from board", + "Sidebar.turkish": "Turkish", "Sidebar.untitled": "Untitled", "Sidebar.untitled-board": "(Untitled Board)", "Sidebar.untitled-view": "(Untitled View)", diff --git a/webapp/src/components/sidebar.tsx b/webapp/src/components/sidebar.tsx index 1f948f451..6601f9390 100644 --- a/webapp/src/components/sidebar.tsx +++ b/webapp/src/components/sidebar.tsx @@ -352,6 +352,21 @@ class Sidebar extends React.Component { name={intl.formatMessage({id: 'Sidebar.russian', defaultMessage: 'Russian'})} onClick={async () => this.props.setLanguage('ru')} /> + this.props.setLanguage('zh')} + /> + this.props.setLanguage('tr')} + /> + this.props.setLanguage('oc')} + />