mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
Add Enchantment Table.
This commit is contained in:
parent
eea13a30b8
commit
bd3678f515
5 changed files with 18 additions and 3 deletions
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
"/(lib)",
|
"/(lib)",
|
||||||
"/(redux|mobx)",
|
"/(redux|mobx)",
|
||||||
"/(context)",
|
"/(context)",
|
||||||
"/(ui|common)|.svg$",
|
"/(ui|common)|.svg|.webp$",
|
||||||
"^[./]",
|
"^[./]",
|
||||||
],
|
],
|
||||||
importOrderSeparation: true,
|
importOrderSeparation: true,
|
||||||
|
|
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 81a05c14a3e49458bce98291efe1facaf6e19165
|
Subproject commit 2d5b96a5c72bb706b73e9b67d5be395810a18c15
|
|
@ -67,6 +67,7 @@ export enum Language {
|
||||||
BOTTOM = "bottom",
|
BOTTOM = "bottom",
|
||||||
LEET = "leet",
|
LEET = "leet",
|
||||||
PIGLATIN = "piglatin",
|
PIGLATIN = "piglatin",
|
||||||
|
ENCHANTMENT_TABLE = "enchantment",
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LanguageEntry {
|
export interface LanguageEntry {
|
||||||
|
@ -146,7 +147,7 @@ export const Languages: { [key in Language]: LanguageEntry } = {
|
||||||
|
|
||||||
owo: {
|
owo: {
|
||||||
display: "OwO",
|
display: "OwO",
|
||||||
emoji: "🐱",
|
emoji: "😸",
|
||||||
i18n: "owo",
|
i18n: "owo",
|
||||||
dayjs: "en-gb",
|
dayjs: "en-gb",
|
||||||
cat: "alt",
|
cat: "alt",
|
||||||
|
@ -172,6 +173,13 @@ export const Languages: { [key in Language]: LanguageEntry } = {
|
||||||
dayjs: "en-gb",
|
dayjs: "en-gb",
|
||||||
cat: "alt",
|
cat: "alt",
|
||||||
},
|
},
|
||||||
|
enchantment: {
|
||||||
|
display: "Enchantment Table",
|
||||||
|
emoji: "🪄",
|
||||||
|
i18n: "enchantment",
|
||||||
|
dayjs: "en-gb",
|
||||||
|
cat: "alt",
|
||||||
|
},
|
||||||
piglatin: {
|
piglatin: {
|
||||||
display: "Pig Latin",
|
display: "Pig Latin",
|
||||||
emoji: "🐖",
|
emoji: "🐖",
|
||||||
|
|
BIN
src/pages/settings/assets/enchanting_table.webp
Normal file
BIN
src/pages/settings/assets/enchanting_table.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 324 KiB |
|
@ -13,6 +13,7 @@ import {
|
||||||
import Emoji from "../../../components/common/Emoji";
|
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 tokiponaSVG from "../assets/toki_pona.svg";
|
import tokiponaSVG from "../assets/toki_pona.svg";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -38,6 +39,12 @@ function Entry({ entry: [x, lang], locale }: { entry: Key } & Props) {
|
||||||
<div className={styles.flag}>
|
<div className={styles.flag}>
|
||||||
{lang.emoji === "🙂" ? (
|
{lang.emoji === "🙂" ? (
|
||||||
<img src={tokiponaSVG} width={42} />
|
<img src={tokiponaSVG} width={42} />
|
||||||
|
) : lang.emoji === "🪄" ? (
|
||||||
|
<img
|
||||||
|
src={enchantingTableWEBP}
|
||||||
|
width={42}
|
||||||
|
style={{ objectFit: "contain" }}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Emoji size={42} emoji={lang.emoji} />
|
<Emoji size={42} emoji={lang.emoji} />
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue