mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-12 18:29:57 -05:00
chore(locale): add languages (Bengali, Catalonian, Danish, Esperanto)
This commit is contained in:
parent
45b9c355a7
commit
dc527467d5
3 changed files with 31 additions and 2 deletions
|
@ -25,7 +25,10 @@ export enum Language {
|
||||||
AZERBAIJANI = "az",
|
AZERBAIJANI = "az",
|
||||||
BELARUSIAN = "be",
|
BELARUSIAN = "be",
|
||||||
BULGARIAN = "bg",
|
BULGARIAN = "bg",
|
||||||
|
BENGALI = "bn",
|
||||||
|
CATALONIAN = "ca",
|
||||||
CZECH = "cs",
|
CZECH = "cs",
|
||||||
|
DANISH = "da",
|
||||||
GERMAN = "de",
|
GERMAN = "de",
|
||||||
GREEK = "el",
|
GREEK = "el",
|
||||||
SPANISH = "es",
|
SPANISH = "es",
|
||||||
|
@ -66,6 +69,7 @@ export enum Language {
|
||||||
CHINESE_SIMPLIFIED = "zh_Hans",
|
CHINESE_SIMPLIFIED = "zh_Hans",
|
||||||
|
|
||||||
TOKIPONA = "tokipona",
|
TOKIPONA = "tokipona",
|
||||||
|
ESPERANTO = "esperanto",
|
||||||
|
|
||||||
OWO = "owo",
|
OWO = "owo",
|
||||||
PIRATE = "pr",
|
PIRATE = "pr",
|
||||||
|
@ -96,7 +100,10 @@ export const Languages: { [key in Language]: LanguageEntry } = {
|
||||||
az: { display: "Azərbaycan dili", emoji: "🇦🇿", i18n: "az" },
|
az: { display: "Azərbaycan dili", emoji: "🇦🇿", i18n: "az" },
|
||||||
be: { display: "беларуская", emoji: "🇧🇾", i18n: "be" },
|
be: { display: "беларуская", emoji: "🇧🇾", i18n: "be" },
|
||||||
bg: { display: "български", emoji: "🇧🇬", i18n: "bg" },
|
bg: { display: "български", emoji: "🇧🇬", i18n: "bg" },
|
||||||
|
bn: { display: "বাংলা", emoji: "🇧🇩", i18n: "bn" },
|
||||||
|
ca: { display: "Català", emoji: "🇪🇸", i18n: "ca" },
|
||||||
cs: { display: "Čeština", emoji: "🇨🇿", i18n: "cs" },
|
cs: { display: "Čeština", emoji: "🇨🇿", i18n: "cs" },
|
||||||
|
da: { display: "Danskers", emoji: "🇩🇰", i18n: "da" },
|
||||||
de: { display: "Deutsch", emoji: "🇩🇪", i18n: "de" },
|
de: { display: "Deutsch", emoji: "🇩🇪", i18n: "de" },
|
||||||
el: { display: "Ελληνικά", emoji: "🇬🇷", i18n: "el" },
|
el: { display: "Ελληνικά", emoji: "🇬🇷", i18n: "el" },
|
||||||
es: { display: "Español", emoji: "🇪🇸", i18n: "es" },
|
es: { display: "Español", emoji: "🇪🇸", i18n: "es" },
|
||||||
|
@ -158,6 +165,13 @@ export const Languages: { [key in Language]: LanguageEntry } = {
|
||||||
dayjs: "en-gb",
|
dayjs: "en-gb",
|
||||||
cat: "const",
|
cat: "const",
|
||||||
},
|
},
|
||||||
|
esperanto: {
|
||||||
|
display: "Esperanto",
|
||||||
|
emoji: "EO",
|
||||||
|
i18n: "eo",
|
||||||
|
dayjs: "en-gb",
|
||||||
|
cat: "const",
|
||||||
|
},
|
||||||
|
|
||||||
owo: {
|
owo: {
|
||||||
display: "OwO",
|
display: "OwO",
|
||||||
|
|
5
src/pages/settings/assets/esperanto.svg
Normal file
5
src/pages/settings/assets/esperanto.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="400">
|
||||||
|
<path fill="#FFF" d="m0,0h202v202H0"/>
|
||||||
|
<path fill="#090" d="m0,200H200V0H600V400H0m58-243 41-126 41,126-107-78h133"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 229 B |
|
@ -16,6 +16,7 @@ import Emoji from "../../../components/common/Emoji";
|
||||||
import Checkbox from "../../../components/ui/Checkbox";
|
import Checkbox from "../../../components/ui/Checkbox";
|
||||||
import Tip from "../../../components/ui/Tip";
|
import Tip from "../../../components/ui/Tip";
|
||||||
import enchantingTableWEBP from "../assets/enchanting_table.webp";
|
import enchantingTableWEBP from "../assets/enchanting_table.webp";
|
||||||
|
import esperantoFlagSVG from "../assets/esperanto.svg";
|
||||||
import tamilFlagPNG from "../assets/tamil_nadu_flag.png";
|
import tamilFlagPNG from "../assets/tamil_nadu_flag.png";
|
||||||
import tokiponaSVG from "../assets/toki_pona.svg";
|
import tokiponaSVG from "../assets/toki_pona.svg";
|
||||||
|
|
||||||
|
@ -39,18 +40,27 @@ function Entry({ entry: [x, lang], selected, onSelect }: Props) {
|
||||||
checked={selected}
|
checked={selected}
|
||||||
onChange={onSelect}>
|
onChange={onSelect}>
|
||||||
<div className={styles.flag}>
|
<div className={styles.flag}>
|
||||||
{lang.i18n === "ta" ? (
|
{lang.i18n === "eo" ? (
|
||||||
|
<img
|
||||||
|
src={esperantoFlagSVG}
|
||||||
|
width={42}
|
||||||
|
loading="lazy"
|
||||||
|
style={{ objectFit: "contain", borderRadius: "6px" }}
|
||||||
|
/>
|
||||||
|
) : lang.i18n === "ta" ? (
|
||||||
<img
|
<img
|
||||||
src={tamilFlagPNG}
|
src={tamilFlagPNG}
|
||||||
width={42}
|
width={42}
|
||||||
|
loading="lazy"
|
||||||
style={{ objectFit: "contain" }}
|
style={{ objectFit: "contain" }}
|
||||||
/>
|
/>
|
||||||
) : lang.emoji === "🙂" ? (
|
) : lang.emoji === "🙂" ? (
|
||||||
<img src={tokiponaSVG} width={42} />
|
<img src={tokiponaSVG} width={42} loading="lazy" />
|
||||||
) : lang.emoji === "🪄" ? (
|
) : lang.emoji === "🪄" ? (
|
||||||
<img
|
<img
|
||||||
src={enchantingTableWEBP}
|
src={enchantingTableWEBP}
|
||||||
width={42}
|
width={42}
|
||||||
|
loading="lazy"
|
||||||
style={{ objectFit: "contain" }}
|
style={{ objectFit: "contain" }}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in a new issue