[web] [desktop] Enable Japanese translations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -903,6 +903,8 @@ const localeName = (locale: SupportedLocale) => {
|
||||
return "Українська";
|
||||
case "vi-VN":
|
||||
return "Tiếng Việt";
|
||||
case "ja-JP":
|
||||
return "日本語";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user