feat(i18n): implement localization using LinguiJS

This commit is contained in:
Amruth Pillai
2023-11-10 09:07:47 +01:00
parent 13d91411e3
commit 6ad4358d70
108 changed files with 4631 additions and 798 deletions

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "Resume" ADD COLUMN "locked" BOOLEAN NOT NULL DEFAULT false;

View File

@ -11,7 +11,7 @@ CREATE TABLE "User" (
"picture" TEXT,
"username" TEXT NOT NULL,
"email" TEXT NOT NULL,
"language" TEXT NOT NULL DEFAULT 'en',
"locale" TEXT NOT NULL DEFAULT 'en-US',
"emailVerified" BOOLEAN NOT NULL DEFAULT false,
"twoFactorEnabled" BOOLEAN NOT NULL DEFAULT false,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
@ -43,6 +43,7 @@ CREATE TABLE "Resume" (
"slug" TEXT NOT NULL,
"data" JSONB NOT NULL DEFAULT '{}',
"visibility" "Visibility" NOT NULL DEFAULT 'private',
"locked" BOOLEAN NOT NULL DEFAULT false,
"userId" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,

View File

@ -24,7 +24,7 @@ model User {
picture String?
username String @unique
email String @unique
language String @default("en")
locale String @default("en-US")
emailVerified Boolean @default(false)
twoFactorEnabled Boolean @default(false)
createdAt DateTime @default(now())