Compare commits
No commits in common. "20ed4bb88fb1e85a77e7e61ca935c57c8032f703" and "11ce28085b5abc98413a4c66bbad1e3f62e433e5" have entirely different histories.
20ed4bb88f
...
11ce28085b
|
|
@ -62,11 +62,6 @@ export function useLanguageFormat(){
|
||||||
const { i18n } = useTranslation();
|
const { i18n } = useTranslation();
|
||||||
|
|
||||||
return useCallback((language: string) => {
|
return useCallback((language: string) => {
|
||||||
if(language.toLowerCase() == "zh_cn")
|
|
||||||
language = "zh-Hans";
|
|
||||||
else if (language.toLowerCase() == "zh_tw")
|
|
||||||
language = "zh-Hant";
|
|
||||||
|
|
||||||
return new Intl.DisplayNames(i18n.language, {
|
return new Intl.DisplayNames(i18n.language, {
|
||||||
type: "language",
|
type: "language",
|
||||||
style: "short",
|
style: "short",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user