mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 04:11:12 +00:00
Add pt lang.
This commit is contained in:
parent
640441169b
commit
ad04657f81
2 changed files with 6 additions and 1 deletions
|
@ -29,6 +29,7 @@ import { nb_NO } from "./translations/nb_NO";
|
|||
import { nl } from "./translations/nl";
|
||||
import { oc } from "./translations/oc";
|
||||
import { pl } from "./translations/pl";
|
||||
import { pt } from "./translations/pt";
|
||||
import { pt_BR } from "./translations/pt_BR";
|
||||
import { ru } from "./translations/ru";
|
||||
import { sk } from "./translations/sk";
|
||||
|
@ -87,6 +88,7 @@ const resources = {
|
|||
mnc,
|
||||
sk,
|
||||
vi,
|
||||
pt,
|
||||
};
|
||||
|
||||
function format(value: any, format: any): any {
|
||||
|
|
|
@ -145,6 +145,7 @@ export const languages = [
|
|||
{ code: "mnc" },
|
||||
{ code: "sk" },
|
||||
{ code: "vi" },
|
||||
{ code: "pt" },
|
||||
];
|
||||
|
||||
export const themes = [
|
||||
|
@ -446,7 +447,7 @@ export function getMomentLanguage(): string {
|
|||
lang = "fa";
|
||||
} else if (lang.startsWith("pl")) {
|
||||
lang = "pl";
|
||||
} else if (lang.startsWith("pt")) {
|
||||
} else if (lang.startsWith("pt_BR")) {
|
||||
lang = "pt-br";
|
||||
} else if (lang.startsWith("ja")) {
|
||||
lang = "ja";
|
||||
|
@ -496,6 +497,8 @@ export function getMomentLanguage(): string {
|
|||
lang = "sk";
|
||||
} else if (lang.startsWith("vi")) {
|
||||
lang = "vi";
|
||||
} else if (lang.startsWith("pt")) {
|
||||
lang = "pt";
|
||||
} else {
|
||||
lang = "en";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue