Skip to content

Commit

Permalink
Add langCode property to language objects
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Jan 20, 2024
1 parent 0701a99 commit f174fcc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,62 +1,76 @@
/**
* @type {Record<string, { name: string, shortName: string }>}
* @type {Record<string, { name: string, shortName: string, langCode: string }>}
*/
const languages = {
yue: {
name: '廣東話',
shortName: '粵',
langCode: 'yue',
},
eng: {
name: '英文',
shortName: '英',
langCode: 'en',
},
zho: {
name: '中文',
shortName: '中',
langCode: 'zh-Hant',
},
jpn: {
name: '日文',
shortName: '日',
langCode: 'ja',
},
kor: {
name: '韓文',
shortName: '韓',
langCode: 'ko',
},
vie: {
name: '越南文',
shortName: '越',
langCode: 'vi',
},
lzh: {
name: '文言文',
shortName: '文',
langCode: 'zh-Hant',
},
por: {
name: '葡萄牙文',
shortName: '葡',
langCode: 'pt',
},
deu: {
name: '德文',
shortName: '德',
langCode: 'de',
},
fra: {
name: '法文',
shortName: '法',
langCode: 'fr',
},
mnc: {
name: '滿文',
shortName: '滿',
langCode: 'mnc',
},
lat: {
name: '拉丁文',
shortName: '拉',
langCode: 'la',
},
tib: {
name: '藏文',
shortName: '藏',
langCode: 'bo',
},
量詞: {
name: '量詞',
shortName: '量詞',
langCode: '',
},
};

Expand Down

0 comments on commit f174fcc

Please sign in to comment.