1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-12 09:04:14 +02:00

Adding german and japanese translations

This commit is contained in:
Jesús Espino 2021-03-19 16:10:28 +01:00
parent d4b8520890
commit 98153b8e98
4 changed files with 20 additions and 0 deletions

View File

@ -79,8 +79,10 @@
"Sidebar.empty-board": "Empty board",
"Sidebar.english": "English",
"Sidebar.export-archive": "Export archive",
"Sidebar.german": "German",
"Sidebar.import-archive": "Import archive",
"Sidebar.invite-users": "Invite Users",
"Sidebar.japanese": "Japanese",
"Sidebar.light-theme": "Light theme",
"Sidebar.logout": "Log out",
"Sidebar.no-views-in-board": "No pages inside",

2
webapp/i18n/ja.json Normal file
View File

@ -0,0 +1,2 @@
{
}

View File

@ -327,6 +327,16 @@ class Sidebar extends React.Component<Props, State> {
name={intl.formatMessage({id: 'Sidebar.spanish', defaultMessage: 'Spanish'})}
onClick={async () => this.props.setLanguage('es')}
/>
<Menu.Text
id='german-lang'
name={intl.formatMessage({id: 'Sidebar.german', defaultMessage: 'German'})}
onClick={async () => this.props.setLanguage('de')}
/>
<Menu.Text
id='japanese-lang'
name={intl.formatMessage({id: 'Sidebar.japanese', defaultMessage: 'Japanese'})}
onClick={async () => this.props.setLanguage('ja')}
/>
</Menu.SubMenu>
<Menu.SubMenu
id='theme'

View File

@ -3,9 +3,15 @@
import messages_en from '../i18n/en.json'
import messages_es from '../i18n/es.json'
import messages_de from '../i18n/de.json'
import messages_ja from '../i18n/ja.json'
export function getMessages(lang: string): {[key: string]: string} {
switch (lang) {
case 'de':
return messages_de
case 'ja':
return messages_ja
case 'es':
return messages_es
}