refactor(App): remove default locale handling (#2760)

This commit is contained in:
Dafitra
2024-11-27 16:35:12 +07:00
committed by GitHub
parent 0f648024e0
commit 004fa1ebcb
2 changed files with 3 additions and 7 deletions

View File

@@ -10,9 +10,6 @@ export const localeContextInjectionKey: InjectionKey<Ref<Locale | undefined>> =
const _useLocale = (localeOverrides?: Ref<Locale | undefined>) => {
const locale = localeOverrides || inject(localeContextInjectionKey, ref())!
/**
* If for some reason the developer does not use `UApp`, we get the language back just in case.
*/
return buildLocaleContext(computed(() => locale.value || en))
}