feat(i18n): update database schema and domain service for translations

This commit is contained in:
poyrazavsever
2026-07-20 11:08:15 +03:00
parent ab91fb7f1d
commit a2c7f8cdf4
6 changed files with 4311 additions and 13 deletions
+5
View File
@@ -3,6 +3,7 @@ export type ContentTranslationEntityType =
| "branding"
| "calendar_event"
| "client"
| "client_activity"
| "planning_section"
| "project"
| "task";
@@ -43,6 +44,10 @@ export const contentTranslationRegistry = {
client: [
{ name: "notes", label: "Notlar", kind: "textarea", maxLength: 10_000 },
],
client_activity: [
{ name: "title", label: "Başlık", required: true, maxLength: 500 },
{ name: "content", label: "İçerik", kind: "textarea", maxLength: 20_000 },
],
} satisfies Record<ContentTranslationEntityType, ContentTranslationField[]>;
export function contentInputName(locale: string, field: string) {