mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
Fixing missing arabic. Fixes #404
This commit is contained in:
parent
024b6d52c3
commit
9704838669
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,7 @@ export const languages = [
|
||||||
{ code: "sk" },
|
{ code: "sk" },
|
||||||
{ code: "vi" },
|
{ code: "vi" },
|
||||||
{ code: "pt" },
|
{ code: "pt" },
|
||||||
|
{ code: "ar" },
|
||||||
];
|
];
|
||||||
|
|
||||||
export const themes = [
|
export const themes = [
|
||||||
|
@ -499,6 +500,8 @@ export function getMomentLanguage(): string {
|
||||||
lang = "vi";
|
lang = "vi";
|
||||||
} else if (lang.startsWith("pt")) {
|
} else if (lang.startsWith("pt")) {
|
||||||
lang = "pt";
|
lang = "pt";
|
||||||
|
} else if (lang.startsWith("ar")) {
|
||||||
|
lang = "ar";
|
||||||
} else {
|
} else {
|
||||||
lang = "en";
|
lang = "en";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue