Skip to content

Portuguese Translation #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added PT as new language
  • Loading branch information
cadufeitosa committed May 15, 2024
commit a2ce808d5da5f7d076fb7d093cbc0db1c73ca1a6
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export function getEchartsLocale() {
switch (locale.language) {
case "en":
return "EN";
case "pt":
return "PT";
case "zh":
return "ZH";
}
Expand All @@ -24,6 +26,8 @@ export function getCalendarLocale() {
switch (language) {
case "zh":
return "zh-cn";
case "pt":
return "pt-br";
default:
return "en-gb";
}
Expand Down
4 changes: 4 additions & 0 deletions client/packages/lowcoder-comps/src/i18n/comps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export function getEchartsLocale() {
switch (locale.language) {
case "en":
return "EN";
case "pt":
return "PT";
case "zh":
return "ZH";
}
Expand All @@ -23,6 +25,8 @@ export function getCalendarLocale() {
switch (language) {
case "zh":
return "zh-cn";
case "pt":
return "pt-br";
default:
return "en-gb";
}
Expand Down
1 change: 1 addition & 0 deletions client/packages/lowcoder-core/src/i18n/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
export * from "./en";
export * from "./zh";
export * from "./de";
export * from "./pt";
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
// fallback example: current locale is zh-HK, fallback order is zhHK => zh => en
export * from "./en";
export * from "./zh";
export * from "./de";
export * from "./de";
export * from "./pt"
5 changes: 5 additions & 0 deletions client/packages/lowcoder/src/i18n/languagesMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
Flag_th,
Flag_ar,
Flag_pt,
Flag_br
} from "lowcoder-design";

// Define the structure for a single language's metadata
Expand All @@ -40,6 +41,10 @@ export interface LanguageMeta {
de: {
languageName: "Deutsch",
flag: Flag_de
},
pt: {
languageName: "Português",
flag: Flag_br
}
};