feat: add danish support to dashboard (#580)

* feat: Add Danish Support

* feat: add migration file

* chore: update migrations

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
Adeyemi Adetunji
2025-10-13 18:07:46 +01:00
committed by GitHub
co-authored by Rotimi Best
parent c31e5e131f
commit 3692046077
7 changed files with 1613 additions and 4 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ const languageFiles = {
pl: path.resolve(__dirname, '../src/lib/utils/translations/pl.json'),
pt: path.resolve(__dirname, '../src/lib/utils/translations/pt.json'),
ru: path.resolve(__dirname, '../src/lib/utils/translations/ru.json'),
vi: path.resolve(__dirname, '../src/lib/utils/translations/vi.json')
vi: path.resolve(__dirname, '../src/lib/utils/translations/vi.json'),
da: path.resolve(__dirname, '../src/lib/utils/translations/da.json')
};
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
@@ -9,7 +9,8 @@ export const LANGUAGE = {
[LOCALE.PL]: 'Polish',
[LOCALE.PT]: 'Portuguese',
[LOCALE.RU]: 'Russian',
[LOCALE.VI]: 'Vietnamese'
[LOCALE.VI]: 'Vietnamese',
[LOCALE.DA]: 'Danish'
};
export const LANGUAGES = Object.keys(LANGUAGE).map((lang) => ({
@@ -50,6 +50,11 @@ export const config = {
locale: 'es',
key: '',
loader: async () => (await import('../translations/es.json')).default
},
{
locale: 'da',
key: '',
loader: async () => (await import('../translations/da.json')).default
}
]
};
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -10,7 +10,8 @@ export enum LOCALE {
DE = 'de',
VI = 'vi',
RU = 'ru',
ES = 'es'
ES = 'es',
DA = 'da'
}
//===============Custom Type===============
@@ -57,7 +57,8 @@
{ id: 'pl', text: 'Polish' },
{ id: 'pt', text: 'Portuguese' },
{ id: 'ru', text: 'Russian' },
{ id: 'vi', text: 'Vietnamese' }
{ id: 'vi', text: 'Vietnamese' },
{ id: 'da', text: 'Danish' }
];
const educatorGoals: Goal[] = [