refs #1997 Add Sinhala in i18n

This commit is contained in:
AkiraFukushima 2020-12-26 23:15:11 +09:00
parent 7baa0bd3f4
commit d6bbe5fa87
5 changed files with 26 additions and 7 deletions

View File

@ -2,7 +2,7 @@ import * as path from 'path'
import fs from 'fs'
import keys from 'all-object-keys'
const locales = ['de', 'fr', 'it', 'ja', 'ko', 'pl', 'zh_cn', 'zh_tw']
const locales = ['de', 'fr', 'it', 'ja', 'ko', 'pl', 'it', 'zh_cn', 'zh_tw', 'cs', 'es_es', 'no', 'pt_pt', 'ru', 'si', 'sv_se', 'tzm']
describe('i18n', () => {
describe('should not define duplicate keys', () => {

View File

@ -12,6 +12,7 @@ import pl from '~/src/config/locales/pl/translation.json'
import pt_pt from '~/src/config/locales/pt_pt/translation.json'
import ru from '~/src/config/locales/ru/translation.json'
import sv_se from '~/src/config/locales/sv_se/translation.json'
import si from '~/src/config/locales/si/translation.json'
import tzm from '~/src/config/locales/tzm/translation.json'
import zh_cn from '~/src/config/locales/zh_cn/translation.json'
import zh_tw from '~/src/config/locales/zh_tw/translation.json'
@ -58,6 +59,9 @@ const options: InitOptions = {
ru: {
translation: ru
},
si: {
translation: si
},
sv_se: {
translation: sv_se
},

View File

@ -4,13 +4,23 @@ export type LanguageType = {
}
export type LanguageList = {
de: LanguageType,
en: LanguageType,
fr: LanguageType,
ja: LanguageType,
ko: LanguageType,
pl: LanguageType,
de: LanguageType
en: LanguageType
fr: LanguageType
ja: LanguageType
ko: LanguageType
pl: LanguageType
it: LanguageType
zh_cn: LanguageType
zh_tw: LanguageType
cs: LanguageType
es_es: LanguageType
no: LanguageType
pt_pt: LanguageType
ru: LanguageType
si: LanguageType
sv_se: LanguageType
tzm: LanguageType
}
declare let l: LanguageList

View File

@ -55,6 +55,10 @@ export default {
name: 'русский',
key: 'ru'
},
si: {
name: 'සිංහල',
key: 'si'
},
sv_se: {
name: 'svenska',
key: 'sv_se'

View File

@ -32,6 +32,7 @@ export default {
Language.pl,
Language.pt_pt,
Language.ru,
Language.si,
Language.sv_se,
Language.tzm,
Language.zh_cn,