Replace entire repo content with kottgard-production-v1.1.zip (for shahikitchen-prod repo)
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user