From b98affc91ad4dae48b1fe51458da789641f2fab7 Mon Sep 17 00:00:00 2001 From: williamorim Date: Tue, 14 Sep 2021 16:45:28 -0300 Subject: [PATCH 1/2] Adding pt-BR lang file --- src/i18n/langPT-br.ts | 142 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/i18n/langPT-br.ts diff --git a/src/i18n/langPT-br.ts b/src/i18n/langPT-br.ts new file mode 100644 index 0000000000..8cdd26249f --- /dev/null +++ b/src/i18n/langPT-br.ts @@ -0,0 +1,142 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +/** + * Language: Portuguese (Brazil). + */ + +export default { + time: { + month: [ + "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" + ], + monthAbbr: [ + "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", + "Jul", "Ago", "Set", "Out", "Nov", "Dez" + ], + dayOfWeek: [ + "Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", +"Quinta-feira", "Sexta-feira", "Sábado" + ], + dayOfWeekAbbr: [ + "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb" + ] + }, + legend: { + selector: { + all: 'Todas', + inverse: 'Inv' + } + }, + toolbox: { + brush: { + title: { + rect: 'Seleção retangular', + polygon: 'Seleção em laço', + lineX: 'Selecionar horizontalmente', + lineY: 'Selecionar verticalmente', + keep: 'Manter seleções', + clear: 'Limpar seleções' + } + }, + dataView: { + title: 'Exibição de dados', + lang: ['Exibição de dados', 'Fechar', 'Atualizar'] + }, + dataZoom: { + title: { + zoom: 'Zoom', + back: 'Restaurar Zoom' + } + }, + magicType: { + title: { + line: 'Trocar para gráfico de linhas', + bar: 'Trocar para gráfico de barras', + stack: 'Empilhar', + tiled: 'Tile' + } + }, + restore: { + title: 'Restore' + }, + saveAsImage: { + title: 'Salvar como imagem', + lang: ['Clique com o botão direito para salvar imagem'] + } + }, + series: { + typeNames: { + pie: 'Gráfico de pizza', + bar: 'Gráfico de barras', + line: 'Gráfico de linhas', + scatter: 'Gráfico de dispersão', + effectScatter: 'Gráfico de dispersão ondulado', + radar: 'Gráfico radar', + tree: 'Árvore', + treemap: 'Treemap', + boxplot: 'Boxplot', + candlestick: 'Candlestick', + k: 'Gráfico K line', + heatmap: 'Mapa de calor', + map: 'Mapa', + parallel: 'Coordenadas paralelas', + lines: 'Gráfico de linhas', + graph: 'Relationship graph', + sankey: 'Gráfico Sankey', + funnel: 'Gráfico de funil', + gauge: 'Gauge', + pictorialBar: 'Pictorial bar', + themeRiver: 'Theme River Map', + sunburst: 'Sunburst' + } + }, + aria: { + general: { + withTitle: 'Este é um gráfico entitulado "{title}"', + withoutTitle: 'Este é um gráfico' + }, + series: { + single: { + prefix: '', + withName: ' do tipo {seriesType} nomeada/nomeado como {seriesName}.', + withoutName: ' do tipo {seriesType}.' + }, + multiple: { + prefix: '. Consiste de {seriesCount} séries.', + withName: ' A {seriesId} série é um/uma {seriesType} representando {seriesName}.', + withoutName: ' A {seriesId} series é um/uma {seriesType}.', + separator: { + middle: '', + end: '' + } + } + }, + data: { + allData: 'Os dados são: ', + partialData: 'As primeiros {displayCnt} itens são: ', + withName: 'os dados para {name} são {value}', + withoutName: '{value}', + separator: { + middle: ', ', + end: '. ' + } + } + } +}; From add3f76d84e5795074a9ba0f4d927415fc74f4fc Mon Sep 17 00:00:00 2001 From: williamorim Date: Tue, 14 Sep 2021 16:53:06 -0300 Subject: [PATCH 2/2] chaging double quotes for single quotes --- src/i18n/langPT-br.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/i18n/langPT-br.ts b/src/i18n/langPT-br.ts index 8cdd26249f..bd8c988a64 100644 --- a/src/i18n/langPT-br.ts +++ b/src/i18n/langPT-br.ts @@ -24,18 +24,18 @@ export default { time: { month: [ - "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" + 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' ], monthAbbr: [ - "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", - "Jul", "Ago", "Set", "Out", "Nov", "Dez" + 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', + 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez' ], dayOfWeek: [ - "Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", -"Quinta-feira", "Sexta-feira", "Sábado" + 'Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', +'Quinta-feira', 'Sexta-feira', 'Sábado' ], dayOfWeekAbbr: [ - "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb" + 'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb' ] }, legend: {