Skip to content

Commit 33de7b0

Browse files
committed
i18n: add Norwegian Bokmal, Hungarian, Indonesian to translate
1 parent 9b96363 commit 33de7b0

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/i18n/message/common/locale-resource.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,11 @@
9393
},
9494
"hi": {
9595
"name": "हिन्दी"
96+
},
97+
"nb": {
98+
"name": "norsk bokmål"
99+
},
100+
"hu": {
101+
"name": "magyar"
96102
}
97103
}

src/pages/app/components/HelpUs/ProgressList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const localeCrowdMap: { [locale in SupportedLocale]: string } = {
4343
mn: "mn",
4444
ar: "ar",
4545
hi: "hi",
46+
hu: "hu",
47+
nb: "nb",
4648
}
4749

4850
const crowdLocaleMap: { [locale: string]: SupportedLocale } = {}
@@ -106,7 +108,7 @@ const _default = defineComponent(() => {
106108
status={computeType(progress)}
107109
style={{ fontSize: '16px' } satisfies StyleValue}
108110
>
109-
<Flex width={70} gap={10} fontSize={12} column align="end" color="var(--el-text-color-regular)">
111+
<Flex width={70} gap={10} fontSize={12} column align="end" style={{ textAlign: 'end' }} color="var(--el-text-color-regular)">
110112
<span>{`${progress}%`}</span>
111113
<span>{localeMessages[locale as tt4b.Locale]?.name ?? locale}</span>
112114
</Flex>

types/tt4b.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ declare namespace tt4b {
5252
| 'sk'
5353
| 'mn'
5454
| 'hi'
55+
| 'hu'
56+
| 'nb'
5557

5658
type ExtensionMeta = {
5759
installTime?: number

0 commit comments

Comments
 (0)