feat: add i18n persistence model

This commit is contained in:
poyrazavsever
2026-07-19 03:06:47 +03:00
parent f4a2342ac4
commit 805beccf95
11 changed files with 4670 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export const userPreferences = sqliteTable(
},
(table) => [
check("user_preferences_currency_check", sql`length(${table.defaultCurrency}) = 3`),
check("user_preferences_language_check", sql`${table.language} in ('tr', 'en')`),
check("user_preferences_language_check", sql`length(${table.language}) between 2 and 12`),
check("user_preferences_color_mode_check", sql`${table.colorMode} in ('light', 'dark', 'system')`),
],
);