[web] Support Turkish translations
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
## v1.7.13 (Unreleased)
|
||||
|
||||
- Support Turkish translations.
|
||||
- .
|
||||
|
||||
## v1.7.12
|
||||
|
||||
@@ -899,6 +899,8 @@ const localeName = (locale: SupportedLocale) => {
|
||||
return "日本語";
|
||||
case "ar-SA":
|
||||
return "اَلْعَرَبِيَّةُ";
|
||||
case "tr-TR":
|
||||
return "Türkçe";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ export const supportedLocales = [
|
||||
"vi-VN" /* Vietnamese */,
|
||||
"ja-JP" /* Japanese */,
|
||||
"ar-SA" /* Arabic */,
|
||||
"tr-TR" /* Turkish */,
|
||||
] as const;
|
||||
|
||||
/** The type of {@link supportedLocales}. */
|
||||
@@ -198,6 +199,8 @@ const closestSupportedLocale = (
|
||||
return "ja-JP";
|
||||
} else if (ls.startsWith("ar")) {
|
||||
return "ar-SA";
|
||||
} else if (ls.startsWith("tr")) {
|
||||
return "tr-TR";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user