feat: multi language support (#254)
* feat: multitranslational support * - completion of settings page - completion of sidebar * sidebar rerendering bug fix * completion of the lesson navigation & materials page * completion of the course navigation * completion of requested languages * - Implementation of Language Picker - Rename Bug Fixes * checkpoint save * - addition of the language picker to the onboarding. - addition of the language switcher for the lesson notes. * merge completion * initialization of the new branch * add transition.svelte file * lesson note bug fix * feat: add translation migration * completion of translation * fix height issue of dropdown * refactoring * fix: improve code with LOCALE from db * finally get it fully functional * connect with AI * backward compatibility for lesson note * preserve old content, when generating AI content * undo translations in upgrade modal * fix duplicate key issue from codacy trigger --------- Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
co-authored by
Rotimi Best
parent
ff7d2cee35
commit
d75e2f258e
@@ -5,14 +5,14 @@ export const ROLE = {
|
||||
};
|
||||
|
||||
export const ROLE_LABEL = {
|
||||
[ROLE.ADMIN]: 'Admin',
|
||||
[ROLE.TUTOR]: 'Tutor',
|
||||
[ROLE.STUDENT]: 'Student'
|
||||
[ROLE.ADMIN]: 'course.navItem.people.roles.admin',
|
||||
[ROLE.TUTOR]: 'course.navItem.people.roles.tutor',
|
||||
[ROLE.STUDENT]: 'course.navItem.people.roles.student'
|
||||
};
|
||||
|
||||
export const ROLES = [
|
||||
{
|
||||
label: 'Filter',
|
||||
label: 'course.navItem.people.roles.filter',
|
||||
value: 'all'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { LOCALE } from '../types';
|
||||
|
||||
export const LANGUAGE = {
|
||||
[LOCALE.EN]: 'English',
|
||||
[LOCALE.HI]: 'Hindi',
|
||||
[LOCALE.FR]: 'French',
|
||||
[LOCALE.PT]: 'Portuguese',
|
||||
[LOCALE.DE]: 'German',
|
||||
[LOCALE.VI]: 'Vietnamese',
|
||||
[LOCALE.RU]: 'Russian',
|
||||
[LOCALE.ES]: 'Spanish'
|
||||
};
|
||||
|
||||
export const LANGUAGES = Object.keys(LANGUAGE).map((lang) => ({
|
||||
id: lang,
|
||||
text: LANGUAGE[lang]
|
||||
}));
|
||||
Reference in New Issue
Block a user