[web] Support Turkish translations

This commit is contained in:
Manav Rathi
2025-05-12 10:58:42 +05:30
parent 70f80c7b57
commit 01f612e450
3 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
## v1.7.13 (Unreleased)
- Support Turkish translations.
- .
## v1.7.12

View File

@@ -899,6 +899,8 @@ const localeName = (locale: SupportedLocale) => {
return "日本語";
case "ar-SA":
return "اَلْعَرَبِيَّةُ";
case "tr-TR":
return "Türkçe";
}
};

View File

@@ -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";
}
}