Implemented project-wide localization plumbing and converted the visible UI/app messages to translation-ready strings.

This commit is contained in:
2026-05-18 00:16:37 +03:30
parent b49b59a056
commit c6606d9602
60 changed files with 1376 additions and 345 deletions

View File

@@ -1,4 +1,5 @@
import type { Auth } from '@/types/auth';
import type { Translations } from '@/types/localization';
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -12,7 +13,10 @@ declare module '@inertiajs/core' {
sharedPageProps: {
name: string;
auth: Auth;
fallbackLocale: string;
locale: string;
sidebarOpen: boolean;
translations: Translations;
[key: string]: unknown;
};
}

View File

@@ -1,4 +1,5 @@
export type * from './auth';
export type * from './localization';
export type * from './navigation';
export type * from './streaming';
export type * from './support';

View File

@@ -0,0 +1,6 @@
export type Translations = Record<string, string>;
export type TranslationReplacements = Record<
string,
boolean | null | number | string | undefined
>;