feat: Rename to Toju and add translation
Some checks failed
Deploy Web Apps / deploy (push) Successful in 5m52s
Build Android APK / build-android-apk (push) Failing after 23m15s
Queue Release Build / prepare (push) Successful in 1m42s
Queue Release Build / build-linux (push) Failing after 9m33s
Queue Release Build / build-windows (push) Successful in 26m5s
Queue Release Build / finalize (push) Has been skipped
Some checks failed
Deploy Web Apps / deploy (push) Successful in 5m52s
Build Android APK / build-android-apk (push) Failing after 23m15s
Queue Release Build / prepare (push) Successful in 1m42s
Queue Release Build / build-linux (push) Failing after 9m33s
Queue Release Build / build-windows (push) Successful in 26m5s
Queue Release Build / finalize (push) Has been skipped
This commit is contained in:
13
toju-app/src/app/core/i18n/app-i18n.rules.ts
Normal file
13
toju-app/src/app/core/i18n/app-i18n.rules.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export const DEFAULT_APP_LOCALE = 'en' as const;
|
||||
|
||||
export const SUPPORTED_APP_LOCALES = [DEFAULT_APP_LOCALE] as const;
|
||||
|
||||
export type AppLocale = (typeof SUPPORTED_APP_LOCALES)[number];
|
||||
|
||||
export function resolveAppLocale(candidate: string | null | undefined): AppLocale {
|
||||
if (candidate && SUPPORTED_APP_LOCALES.includes(candidate as AppLocale)) {
|
||||
return candidate as AppLocale;
|
||||
}
|
||||
|
||||
return DEFAULT_APP_LOCALE;
|
||||
}
|
||||
Reference in New Issue
Block a user