forked from abner/for-legacy-web
chore(locale): add languages (Bengali, Catalonian, Danish, Esperanto)
This commit is contained in:
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 Tip from "../../../components/ui/Tip";
|
||||
import enchantingTableWEBP from "../assets/enchanting_table.webp";
|
||||
import esperantoFlagSVG from "../assets/esperanto.svg";
|
||||
import tamilFlagPNG from "../assets/tamil_nadu_flag.png";
|
||||
import tokiponaSVG from "../assets/toki_pona.svg";
|
||||
|
||||
@@ -39,18 +40,27 @@ function Entry({ entry: [x, lang], selected, onSelect }: Props) {
|
||||
checked={selected}
|
||||
onChange={onSelect}>
|
||||
<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
|
||||
src={tamilFlagPNG}
|
||||
width={42}
|
||||
loading="lazy"
|
||||
style={{ objectFit: "contain" }}
|
||||
/>
|
||||
) : lang.emoji === "🙂" ? (
|
||||
<img src={tokiponaSVG} width={42} />
|
||||
<img src={tokiponaSVG} width={42} loading="lazy" />
|
||||
) : lang.emoji === "🪄" ? (
|
||||
<img
|
||||
src={enchantingTableWEBP}
|
||||
width={42}
|
||||
loading="lazy"
|
||||
style={{ objectFit: "contain" }}
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user