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 all commits
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
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {en} from "./en"
export const pt: typeof en = {
...en,
"style": {
"textColor": "Cor do Texto",
"contrastText": "Cor de Contraste do Texto",
"accent": "Acento",
"border": "Cor da Borda",
"borderRadius": "Raio da Borda",
"borderWidth": "Grossura da Borda",
"backgroundColor": "Cor de Fundo",
"headerBackground": "Cor do Header",
"footerBackground": "Cor do Footer",
"checkedBackground": "Cor com Seleção",
"uncheckedBackground": "Cor sem Seleção",
"uncheckedBorder": "Borda sem Seleção",
"indicatorBackground": "Cor de Indicação",
"toolbarBackground": "Cor de Fundo da Barra de Informações",
"margin": "Margem",
"padding": "Preenchimento",
"marginLeft": "Margem Esquerda",
"marginRight": "Margem Direita",
"marginTop": "Margem Superior",
"marginBottom": "Margem Inferior",
"minWidth": "Largura Mínima",
"aspectRatio": "Proporção de Tela",
"textSize": "Tamanho do Texto",
},
"component": {
"data": "Dados Hillchart",
},
"methods": {
"setPoint": "Definir Ponto",
"invalidInput": "Entrada Inválida",
"requiredField": "{field} é obrigatório",
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { I18nObjects } from "./types";

export const enObj: I18nObjects = {
defaultData: [
{
id : 1,
color: 'gray',
description: 'Validação: Integração do Salesforce',
x: 25,
size: 15
},
{
id : 2,
color: 'maroon',
description: 'Renovações',
x: 80,
size: 10 },
{
id : 3,
color: 'maroon',
description: 'Rafatoramento: Fancy Pants',
x: 35,
size: 10
},
{
id : 4,
color: 'cyan',
description: 'Refatoramento: Lighthouse Orbs',
x: 45,
size: 10
},
{
id : 5,
color: 'yellow',
description: 'Migração e Atualização de Dados',
x: 50,
size: 20
}
],
};
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
Loading
Loading