[web] [desktop] Enable Japanese translations

This commit is contained in:
Manav Rathi
2025-02-24 09:58:52 +05:30
parent 70ff886252
commit 8b0990bd6c
3 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,9 @@
## v1.7.10 (Unreleased)
- Speed up selection for large libraries.
- Support Japanese translations.
- Fix video thumbnail generation on drag and drop.
- .
## v1.7.9

View File

@@ -903,6 +903,8 @@ const localeName = (locale: SupportedLocale) => {
return "Українська";
case "vi-VN":
return "Tiếng Việt";
case "ja-JP":
return "日本語";
}
};

View File

@@ -33,6 +33,7 @@ export const supportedLocales = [
"lt-LT" /* Lithuanian */,
"uk-UA" /* Ukrainian */,
"vi-VN" /* Vietnamese */,
"ja-JP" /* Japanese */
] as const;
/** The type of {@link supportedLocales}. */
@@ -192,6 +193,8 @@ const closestSupportedLocale = (
return "uk-UA";
} else if (ls.startsWith("vi")) {
return "vi-VN";
} else if (ls.startsWith("ja")) {
return "ja-JP";
}
}