New Crowdin updates #483

Merged
v0l merged 93 commits from l10n_main into main 2023-04-11 10:20:47 +00:00
3 changed files with 5 additions and 2 deletions
Showing only changes of commit adbaf52384 - Show all commits

View File

@ -11,6 +11,7 @@ import huMessages from "translations/hu.json";
import idMessages from "translations/id.json"; import idMessages from "translations/id.json";
import arMessages from "translations/ar.json"; import arMessages from "translations/ar.json";
import itMessages from "translations/it.json"; import itMessages from "translations/it.json";
import deMessages from "translations/de.json";
const DEFAULT_LOCALE = "en-US"; const DEFAULT_LOCALE = "en-US";
@ -34,6 +35,8 @@ const getMessages = (locale: string) => {
return arMessages; return arMessages;
case "it": case "it":
return itMessages; return itMessages;
case "de":
return deMessages;
default: default:
return enMessages; return enMessages;
} }

View File

@ -40,7 +40,7 @@ const PreferencesPage = () => {
) )
} }
style={{ textTransform: "capitalize" }}> style={{ textTransform: "capitalize" }}>
{["en", "ja", "es", "hu", "zh", "fr", "ar", "it", "id"].sort().map(a => ( {["en", "ja", "es", "hu", "zh", "fr", "ar", "it", "id", "de"].sort().map(a => (
<option value={a}> <option value={a}>
{new Intl.DisplayNames([a], { {new Intl.DisplayNames([a], {
type: "language", type: "language",

View File

@ -27,7 +27,7 @@ export interface UserPreferences {
/** /**
* User selected language * User selected language
*/ */
language?: "en" | "ja" | "es" | "hu" | "zh" | "fr" | "ar" | "it" | "id"; language?: "en" | "ja" | "es" | "hu" | "zh" | "fr" | "ar" | "it" | "id" | "de";
/** /**
* Enable reactions / reposts / zaps * Enable reactions / reposts / zaps