From 3a093018eb1ceb67e107a54d0b505961f218d17a Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Tue, 7 Dec 2021 16:44:17 +0000 Subject: [PATCH] feat(i18n): add 3 languages --- src/context/Locale.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/context/Locale.tsx b/src/context/Locale.tsx index e78df360..fe5504f3 100644 --- a/src/context/Locale.tsx +++ b/src/context/Locale.tsx @@ -46,13 +46,16 @@ export enum Language { MALAY = "ms", NORWEGIAN_BOKMAL = "nb_NO", DUTCH = "nl", + PERSIAN = "fa", POLISH = "pl", PORTUGUESE_BRAZIL = "pt_BR", + PORTUGUESE_PORTUGAL = "pt_PT", ROMANIAN = "ro", RUSSIAN = "ru", SLOVAK = "sk", SLOVENIAN = "sl", SERBIAN = "sr", + SINHALESE = "si", SWEDISH = "sv", TAMIL = "ta", THAI = "th", @@ -114,6 +117,7 @@ export const Languages: { [key in Language]: LanguageEntry } = { ms: { display: "Melayu", emoji: "🇲🇾", i18n: "ms" }, nb_NO: { display: "Norsk bokmål", emoji: "🇳🇴", i18n: "nb_NO", dayjs: "nb" }, nl: { display: "Nederlands", emoji: "🇳🇱", i18n: "nl" }, + fa: { display: "فارسی", emoji: "🇮🇷", i18n: "fa" }, pl: { display: "Polski", emoji: "🇵🇱", i18n: "pl" }, pt_BR: { display: "Português (do Brasil)", @@ -121,11 +125,18 @@ export const Languages: { [key in Language]: LanguageEntry } = { i18n: "pt_BR", dayjs: "pt-br", }, + pt_PT: { + display: "Português (Portugal)", + emoji: "🇵🇹", + i18n: "pt_PT", + dayjs: "pt", + }, ro: { display: "Română", emoji: "🇷🇴", i18n: "ro" }, ru: { display: "Русский", emoji: "🇷🇺", i18n: "ru" }, sk: { display: "Slovensky", emoji: "🇸🇰", i18n: "sk" }, sl: { display: "Slovenščina", emoji: "🇸🇮", i18n: "sl" }, sr: { display: "Српски", emoji: "🇷🇸", i18n: "sr" }, + si: { display: "සිංහල", emoji: "🇱🇰", i18n: "si" }, sv: { display: "Svenska", emoji: "🇸🇪", i18n: "sv" }, ta: { display: "தமிழ்", emoji: "🇮🇳", i18n: "ta" }, th: { display: "ไทย", emoji: "🇹🇭", i18n: "th" },