feat: add danish support to dashboard (#580)
* feat: Add Danish Support * feat: add migration file * chore: update migrations --------- Co-authored-by: Rotimi Best <[email protected]>
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[] = [
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
drop view if exists "public"."lesson_versions";
|
||||
|
||||
alter table "public"."lesson_language" alter column "locale" drop default;
|
||||
|
||||
alter table "public"."profile" alter column "locale" drop default;
|
||||
|
||||
alter type "public"."LOCALE" rename to "LOCALE__old_version_to_be_dropped";
|
||||
|
||||
create type "public"."LOCALE" as enum ('en', 'hi', 'fr', 'pt', 'de', 'vi', 'ru', 'es', 'pl', 'da');
|
||||
|
||||
alter table "public"."lesson_language" alter column locale type "public"."LOCALE" using locale::text::"public"."LOCALE";
|
||||
|
||||
alter table "public"."profile" alter column locale type "public"."LOCALE" using locale::text::"public"."LOCALE";
|
||||
|
||||
alter table "public"."lesson_language" alter column "locale" set default 'en'::"LOCALE";
|
||||
|
||||
alter table "public"."profile" alter column "locale" set default 'en'::"LOCALE";
|
||||
|
||||
drop type "public"."LOCALE__old_version_to_be_dropped";
|
||||
|
||||
create or replace view "public"."lesson_versions" as SELECT llh.old_content,
|
||||
llh.new_content,
|
||||
llh."timestamp",
|
||||
ll.locale,
|
||||
ll.lesson_id
|
||||
FROM (lesson_language_history llh
|
||||
JOIN lesson_language ll ON ((ll.id = llh.lesson_language_id)));
|
||||
Reference in New Issue
Block a user