Adding german and japanese translations
This commit is contained in:
parent
d4b8520890
commit
98153b8e98
4 changed files with 20 additions and 0 deletions
|
@ -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
2
webapp/i18n/ja.json
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue