Replace entire repo content with correct code from /root/shahikitchen-website/

This commit is contained in:
root
2026-06-29 16:22:09 +00:00
parent 57cc67d2d3
commit 50e3a34895
723 changed files with 20055 additions and 26101 deletions
+29
View File
@@ -0,0 +1,29 @@
export type Language = 'en' | 'sv' | 'hi' | 'ur' | 'ar' | 'tr';
export const SUPPORTED_LANGUAGES: readonly Language[] = [
'sv',
'en',
'ar',
'tr',
'hi',
'ur',
] as const;
export const DEFAULT_LANGUAGE: Language = 'sv';
export const RTL_LANGUAGES: readonly Language[] = ['ar', 'ur'] as const;
export function isLanguage(value: string): value is Language {
return (SUPPORTED_LANGUAGES as readonly string[]).includes(value);
}
export function isRtlLanguage(language: Language): boolean {
return (RTL_LANGUAGES as readonly string[]).includes(language);
}
export interface LanguageOption {
code: Language;
name: string;
native: string;
flag: string;
}
+7
View File
@@ -0,0 +1,7 @@
import type { Language } from './entities';
/** Port: language preference persistence. */
export interface LanguageRepository {
load(): Language | null;
save(language: Language): void;
}