Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions webapp/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ class Constants {
name: 'swedish',
displayName: 'Svenska',
},
{
code: 'ko',
name: 'korean',
displayName: '한국어',
},
]

static readonly keyCodes: {[key: string]: [string, number]} = {
Expand Down
5 changes: 4 additions & 1 deletion webapp/src/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ import messages_sv from '../i18n/sv.json'
import messages_tr from '../i18n/tr.json'
import messages_zhHans from '../i18n/zh_Hans.json'
import messages_zhHant from '../i18n/zh_Hant.json'
import messages_ko from '../i18n/ko.json'

import {UserSettings} from './userSettings'

const supportedLanguages = ['ca', 'de', 'el', 'en', 'es', 'fr', 'id', 'it', 'ja', 'nl', 'oc', 'pt-br', 'ru', 'sv', 'tr', 'zh-cn', 'zh-tw']
const supportedLanguages = ['ca', 'de', 'el', 'en', 'es', 'fr', 'id', 'it', 'ja', 'nl', 'oc', 'pt-br', 'ru', 'sv', 'tr', 'zh-cn', 'zh-tw', 'ko']

export function getMessages(lang: string): {[key: string]: string} {
switch (lang) {
Expand Down Expand Up @@ -58,6 +59,8 @@ export function getMessages(lang: string): {[key: string]: string} {
return messages_zhHans
case 'zh-tw':
return messages_zhHant
case 'ko':
return messages_ko
}
return messages_en
}
Expand Down