Files
classroomio/supabase/migrations/20240323154037_translation.sql
T
Adeyemi AdetunjiandRotimi Best d75e2f258e 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 <[email protected]>
2024-04-19 05:45:48 +01:00

13 lines
561 B
SQL

create type "public"."LOCALE" as enum ('en', 'hi', 'fr', 'pt', 'de', 'vi', 'ru', 'es');
create table
public.lesson_language (
id bigint generated by default as identity,
content text null,
lesson_id uuid null default gen_random_uuid (),
locale "LOCALE" default 'en'::"LOCALE",
constraint lesson_language_pkey primary key (id),
constraint public_lesson_language_lesson_id_fkey foreign key (lesson_id) references lesson (id)
) tablespace pg_default;
alter table "public"."profile" add column "locale" "LOCALE" default 'en'::"LOCALE";