mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47:41 +01:00
Update languages + update swedish flag override
This commit is contained in:
parent
ec3ebda056
commit
6766337fdb
2 changed files with 6 additions and 1 deletions
|
@ -2,11 +2,13 @@ import cs from "@/assets/locales/cs.json";
|
||||||
import de from "@/assets/locales/de.json";
|
import de from "@/assets/locales/de.json";
|
||||||
import en from "@/assets/locales/en.json";
|
import en from "@/assets/locales/en.json";
|
||||||
import fr from "@/assets/locales/fr.json";
|
import fr from "@/assets/locales/fr.json";
|
||||||
|
import he from "@/assets/locales/he.json";
|
||||||
import it from "@/assets/locales/it.json";
|
import it from "@/assets/locales/it.json";
|
||||||
import minion from "@/assets/locales/minion.json";
|
import minion from "@/assets/locales/minion.json";
|
||||||
import nl from "@/assets/locales/nl.json";
|
import nl from "@/assets/locales/nl.json";
|
||||||
import pirate from "@/assets/locales/pirate.json";
|
import pirate from "@/assets/locales/pirate.json";
|
||||||
import pl from "@/assets/locales/pl.json";
|
import pl from "@/assets/locales/pl.json";
|
||||||
|
import sv from "@/assets/locales/sv.json";
|
||||||
import tr from "@/assets/locales/tr.json";
|
import tr from "@/assets/locales/tr.json";
|
||||||
import vi from "@/assets/locales/vi.json";
|
import vi from "@/assets/locales/vi.json";
|
||||||
import zh from "@/assets/locales/zh.json";
|
import zh from "@/assets/locales/zh.json";
|
||||||
|
@ -22,9 +24,11 @@ export const locales = {
|
||||||
tr,
|
tr,
|
||||||
vi,
|
vi,
|
||||||
zh,
|
zh,
|
||||||
|
he,
|
||||||
|
sv,
|
||||||
pirate,
|
pirate,
|
||||||
minion,
|
minion,
|
||||||
};
|
};
|
||||||
export type Locales = keyof typeof locales;
|
export type Locales = keyof typeof locales;
|
||||||
|
|
||||||
export const rtlLocales: Locales[] = [];
|
export const rtlLocales: Locales[] = ["he"];
|
||||||
|
|
|
@ -20,6 +20,7 @@ const countryOverrides: Record<string, string> = {
|
||||||
vi: "vn",
|
vi: "vn",
|
||||||
zh: "cn",
|
zh: "cn",
|
||||||
sl: "si",
|
sl: "si",
|
||||||
|
sv: "se",
|
||||||
};
|
};
|
||||||
|
|
||||||
export function FlagIcon(props: FlagIconProps) {
|
export function FlagIcon(props: FlagIconProps) {
|
||||||
|
|
Loading…
Reference in a new issue