New Crowdin updates #483
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user