Skip to content

Commit

Permalink
feat(i18n): add vi-VN support
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Nov 25, 2024
1 parent a180c30 commit 6fe1c06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/GZCTF/ClientApp/src/utils/I18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'dayjs/locale/id'
import 'dayjs/locale/ja'
import 'dayjs/locale/ko'
import 'dayjs/locale/ru'
import 'dayjs/locale/vi'
import 'dayjs/locale/zh'
import 'dayjs/locale/zh-tw'
import localizedFormat from 'dayjs/plugin/localizedFormat'
Expand All @@ -24,6 +25,7 @@ export const LanguageMap = {
'id-ID': '🇮🇩 Bahasa',
'ko-KR': '🇰🇷 한국어',
'ru-RU': '🇷🇺 Русский',
'vi-VN': '🇻🇳 Việt Nam (WIP)',
'de-DE': '🇩🇪 Deutsch (MT)',
'fr-FR': '🇫🇷 Français (MT)',
'es-ES': '🇪🇸 Español (MT)',
Expand All @@ -44,6 +46,7 @@ const shortLocalFormat = new Map<string, ShortLocalFormat>([
['id', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
['fr', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
['es', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
['vi', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
])

dayjs.extend((_o, c, _d) => {
Expand Down
3 changes: 2 additions & 1 deletion src/GZCTF/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"ru-RU",
"de-DE",
"fr-FR",
"es-ES"
"es-ES",
"vi-VN"
];
options
Expand Down

0 comments on commit 6fe1c06

Please sign in to comment.