Merge pull request #524 from vivganes/tamil-support

add tamil language support
This commit is contained in:
Kieran 2023-04-18 21:31:11 +01:00 committed by GitHub
commit a6eefb1027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -15,6 +15,8 @@ import deMessages from "translations/de_DE.json";
import ruMessages from "translations/ru_RU.json"; import ruMessages from "translations/ru_RU.json";
import svMessages from "translations/sv_SE.json"; import svMessages from "translations/sv_SE.json";
import hrMessages from "translations/hr_HR.json"; import hrMessages from "translations/hr_HR.json";
import taINMessages from "translations/ta_IN.json";
import useLogin from "Hooks/useLogin"; import useLogin from "Hooks/useLogin";
const DefaultLocale = "en-US"; const DefaultLocale = "en-US";
@ -63,6 +65,9 @@ const getMessages = (locale: string) => {
case "hr-HR": case "hr-HR":
case "hr": case "hr":
return hrMessages; return hrMessages;
case "ta-IN":
case "ta":
return taINMessages;
case DefaultLocale: case DefaultLocale:
case "en": case "en":
return enMessages; return enMessages;

View File

@ -38,7 +38,7 @@ const PreferencesPage = () => {
}) })
} }
style={{ textTransform: "capitalize" }}> style={{ textTransform: "capitalize" }}>
{["en", "ja", "es", "hu", "zh-CN", "zh-TW", "fr", "ar", "it", "id", "de", "ru", "sv", "hr"] {["en", "ja", "es", "hu", "zh-CN", "zh-TW", "fr", "ar", "it", "id", "de", "ru", "sv", "hr", "ta-IN"]
.sort() .sort()
.map(a => ( .map(a => (
<option value={a}> <option value={a}>

View File

@ -377,4 +377,4 @@
"zjJZBd": "You're ready!", "zjJZBd": "You're ready!",
"zonsdq": "Failed to load LNURL service", "zonsdq": "Failed to load LNURL service",
"zvCDao": "Automatically show latest notes" "zvCDao": "Automatically show latest notes"
} }