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:
co-authored by
Rotimi Best
parent
c31e5e131f
commit
3692046077
@@ -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
@@ -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[] = [
|
||||
|
||||
Reference in New Issue
Block a user