Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Enhancement] Add Portuguese translations (#1063)
Leonardo Cunha00d169a7230b
diff --git a/docs/api-reference/localization/overview.md b/docs/api-reference/localization/overview.mdindex e7a60e7db..ad115d96b 100644--- a/docs/api-reference/localization/overview.md+++ b/docs/api-reference/localization/overview.md@@ -9,12 +9,12 @@ By default the first language is English `en`. The default language can be chang```jsimport {combineReducers} from 'redux';import keplerGlReducer from 'kepler.gl/reducers';-import {LOCALES} from 'kepler.gl/constants';+import {LOCALE_CODES} from 'kepler.gl/localization';const customizedKeplerGlReducer = keplerGlReducer.initialState({uiState: {// use Finnish locale- locale: LOCALES.fi+ locale: LOCALE_CODES.fi}});@@ -30,23 +30,15 @@ Let's say we want to add the Swedish language to kepler.gl. Easiest way to add t- Find out the [language code][language-codes] for Swedish: `sv`- Add new translation file `src/localization/sv.js` by copying `src/localization/en.js` and translating the strings-- Update `src/localization/index.js` to include new language:- ```javascript- import sv from './sv';- ...- export const messages = {- en: en_flat,- fi: {...en_flat, ...flattenMessages(fi)},- sv: {...en_flat, ...flattenMessages(sv)}- };- ```-- Update _LOCALES_ in `src/constants/default-settings.js` to include new language:++- Update _LOCALES_ in `src/localization/locales.js` to include new language translation:```javascript- export const LOCALES = keyMirror({- en: null,- fi: null,- sv: null- });+ export const LOCALES = {+ en : 'English',+ fi : 'Suomi',+ pt: 'Português',+ sv: 'Svenska'+ }```[react-intl]: https://github.com/formatjs/react-intldiff --git a/localization.js b/localization.jsnew file mode 100644index 000000000..4fc2c89f2--- /dev/null+++ b/localization.js@@ -0,0 +1,21 @@+// Copyright (c) 2020 Uber Technologies, Inc.+//+// Permission is hereby granted, free of charge, to any person obtaining a copy+// of this software and associated documentation files (the "Software"), to deal+// in the Software without restriction, including without limitation the rights+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+// copies of the Software, and to permit persons to whom the Software is+// furnished to do so, subject to the following conditions:+//+// The above copyright notice and this permission notice shall be included in+// all copies or substantial portions of the Software.+//+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+// THE SOFTWARE.++module.exports = require('./dist/localization');diff --git a/package.json b/package.jsonindex b707804b8..c2aa4a174 100644--- a/package.json+++ b/package.json@@ -68,6 +68,7 @@"schemas.js","styles.js","cloud-providers.js",+ "localization.js","umd"],"dependencies": {diff --git a/src/components/map/map-control.js b/src/components/map/map-control.jsindex 59d0f9e41..a13f12892 100644--- a/src/components/map/map-control.js+++ b/src/components/map/map-control.js@@ -45,7 +45,8 @@ import {} from 'components/common/icons';import VerticalToolbar from 'components/common/vertical-toolbar';import ToolbarItem from 'components/common/toolbar-item';-import {EDITOR_MODES, LOCALES} from 'constants/default-settings';+import {EDITOR_MODES} from 'constants/default-settings';+import {LOCALE_CODES} from 'localization/locales';const StyledMapControl = styled.div`right: 0;@@ -488,7 +489,7 @@ const MapControlFactory = () => {<LocalePanelisActive={mapLocale.active}activeLocale={locale}- availableLocales={Object.keys(LOCALES)}+ availableLocales={Object.keys(LOCALE_CODES)}onSetLocale={this.props.onSetLocale}onToggleMenuPanel={() => onToggleMapControl('mapLocale')}/>diff --git a/src/constants/default-settings.js b/src/constants/default-settings.jsindex 4f52a1ed3..ddb5cf374 100644--- a/src/constants/default-settings.js+++ b/src/constants/default-settings.js@@ -158,37 +158,6 @@ export const THEME = keyMirror({base: null});-/**- * Localization can be passed to `KeplerGl` via uiState `locale`.- * Available languages are `en` and `fi`. Default language is `en`- * @constant- * @type {string}- * @public- * @example- * ```js- * import {combineReducers} from 'redux';- * import keplerGlReducer from 'kepler.gl/reducers';- * import {LOCALES} from 'kepler.gl/constants';- *- * const customizedKeplerGlReducer = keplerGlReducer- * .initialState({- * uiState: {- * // use Finnish locale- * locale: LOCALES.fi- * }- * });- *- * const reducers = combineReducers({- * keplerGl: customizedKeplerGlReducer,- * app: appReducer- * });- * ```- */-export const LOCALES = keyMirror({- en: null,- fi: null-});-export const SIDEBAR_PANELS = [{id: 'layer',diff --git a/src/constants/index.js b/src/constants/index.jsindex fecb9f267..8e94baf99 100644--- a/src/constants/index.js+++ b/src/constants/index.js@@ -58,8 +58,7 @@ export {SCALE_TYPES,THEME,TRIP_ARC_FIELDS,- TRIP_POINT_FIELDS,- LOCALES+ TRIP_POINT_FIELDS} from './default-settings';export {GITHUB_BUG_REPORT, GITHUB_USER_GUIDE} from './user-guides';diff --git a/src/localization/en.js b/src/localization/en.jsindex f8f3d361a..d443b8b13 100644--- a/src/localization/en.js+++ b/src/localization/en.js@@ -18,6 +18,8 @@// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN// THE SOFTWARE.+import {LOCALES} from './locales';+export default {property: {weight: 'weight',@@ -212,8 +214,7 @@ export default {rectangle: 'rectangle',hide: 'hide',show: 'show',- en: 'English',- fi: 'Suomi'+ ...LOCALES},modal: {title: {diff --git a/src/localization/fi.js b/src/localization/fi.jsindex a4757f15b..ba4faa84b 100644--- a/src/localization/fi.js+++ b/src/localization/fi.js@@ -18,6 +18,8 @@// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN// THE SOFTWARE.+import {LOCALES} from './locales';+export default {property: {weight: 'painotus',@@ -212,8 +214,7 @@ export default {rectangle: 'nelikulmio',hide: 'piilota',show: 'näytä',- en: 'English',- fi: 'Suomi'+ ...LOCALES},modal: {title: {diff --git a/src/localization/index.js b/src/localization/index.jsindex 556f6b80e..030397e5a 100644--- a/src/localization/index.js+++ b/src/localization/index.js@@ -19,12 +19,12 @@// THE SOFTWARE.import en from './en';-import fi from './fi';import {flattenMessages} from 'utils/locale-utils';+import {LOCALE_CODES} from './locales';const en_flat = flattenMessages(en);-export const messages = {- en: en_flat,- fi: {...en_flat, ...flattenMessages(fi)}-};+export const messages = Object.keys(LOCALE_CODES)+.reduce((acc, key) => ({...acc, [key]: key === "en" ? en_flat : {...en_flat, ...flattenMessages(require(`./${key}`).default)}}), {});++export {LOCALE_CODES, LOCALES} from './locales';diff --git a/src/localization/locales.js b/src/localization/locales.jsnew file mode 100644index 000000000..76566749c--- /dev/null+++ b/src/localization/locales.js@@ -0,0 +1,50 @@+// Copyright (c) 2020 Uber Technologies, Inc.+//+// Permission is hereby granted, free of charge, to any person obtaining a copy+// of this software and associated documentation files (the "Software"), to deal+// in the Software without restriction, including without limitation the rights+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+// copies of the Software, and to permit persons to whom the Software is+// furnished to do so, subject to the following conditions:+//+// The above copyright notice and this permission notice shall be included in+// all copies or substantial portions of the Software.+//+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+// THE SOFTWARE.++export const LOCALES = {+ en : 'English',+ fi : 'Suomi',+ pt: 'Português'+}++/**+ * Localization can be passed to `KeplerGl` via uiState `locale`.+ * Available languages are `en` and `fi`. Default language is `en`+ * @constant+ * @type {string}+ * @public+ * @example+ * ```js+ * import {combineReducers} from 'redux';+ * import {LOCALE_CODES} from 'kepler.gl/localization/locales';+ *+ * const customizedKeplerGlReducer = keplerGlReducer+ * .initialState({+ * uiState: {+ * // use Finnish locale+ * locale: LOCALE_CODES.fi+ * }+ * });+ *+ * ```+ */++export const LOCALE_CODES = Object.keys(LOCALES)+.reduce((acc, key) => ({...acc, [key]: key}), {});diff --git a/src/localization/pt.js b/src/localization/pt.jsnew file mode 100644index 000000000..4388f0cd2--- /dev/null+++ b/src/localization/pt.js@@ -0,0 +1,437 @@+// Copyright (c) 2020 Uber Technologies, Inc.+//+// Permission is hereby granted, free of charge, to any person obtaining a copy+// of this software and associated documentation files (the "Software"), to deal+// in the Software without restriction, including without limitation the rights+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+// copies of the Software, and to permit persons to whom the Software is+// furnished to do so, subject to the following conditions:+//+// The above copyright notice and this permission notice shall be included in+// all copies or substantial portions of the Software.+//+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+// THE SOFTWARE.++import {LOCALES} from './locales';++export default {+ property: {+ weight: 'Espessura do texto',+ label: 'Rótulo',+ fillColor: 'Cor do preenchimento',+ color: 'Cor',+ strokeColor: 'Cor da borda',+ radius: 'Raio',+ outline: 'Contorno',+ stroke: 'Traçado',+ density: 'Densidade',+ height: 'Altura',+ sum: 'Soma',+ pointCount: 'Contagem de Pontos'+ },+ placeholder: {+ search: 'Pesquisar',+ selectField: 'Selecione um campo',+ yAxis: 'Eixo Y',+ selectType: 'Selecione um Tipo',+ selectValue: 'Selecione um valor',+ enterValue: 'Insira um valor',+ empty: 'Vazio'+ },+ misc: {+ by: '',+ valuesIn: 'Valores em',+ valueEquals: 'Valor igual a',+ dataSource: 'Origem dos dados',+ brushRadius: 'Raio do Traço (km)',+ empty: ' '+ },+ mapLayers: {+ title: 'Camadas do mapa',+ label: 'Rótulo',+ road: 'Estrada',+ border: 'Fronteira',+ building: 'Edifícios',+ water: 'Água',+ land: 'Terra',+ '3dBuilding': 'Edifícios em 3d'+ },+ panel: {+ text: {+ label: 'Rótulo',+ labelWithId: 'Rótulo {labelId}',+ fontSize: 'Tamanho da fonte',+ fontColor: 'Cor da fonte',+ textAnchor: 'Âncora do texto',+ alignment: 'Alinhamento',+ addMoreLabel: 'Adicionar mais Rótulos'+ }+ },+ sidebar: {+ panels: {+ layer: 'Camadas',+ filter: 'Filtros',+ interaction: 'Interações',+ basemap: 'Mapa base'+ }+ },+ layer: {+ required: 'Obrigatório*',+ radius: 'Raio',+ color: 'Cor',+ fillColor: 'Cor de preenchimento',+ outline: 'Contorno',+ weight: 'Espessura',+ propertyBasedOn: '{property} baseada em',+ coverage: 'Cobertura',+ stroke: 'Traço',+ strokeWidth: 'Largura do Traçado',+ strokeColor: 'Cor do Traçado',+ basic: 'Básico',+ trailLength: 'Comprimento da trilha',+ trailLengthDescription: 'Número de segundos para um caminho completamente desaparecer',+ newLayer: 'nova camada',+ elevationByDescription: 'Quando desligado, a altura é baseada na contagem de pontos',+ colorByDescription: 'Quando desligado, a cor é baseada na contagem de pontos',+ aggregateBy: '{field} agregado por',+ '3DModel': 'Modelo 3D',+ '3DModelOptions': 'Opções do Modelo 3D',+ type: {+ point: 'ponto',+ arc: 'arco',+ line: 'linha',+ grid: 'grade',+ hexbin: 'hexágono',+ polygon: 'polígono',+ geojson: 'geojson',+ cluster: 'grupo',+ icon: 'icon',+ heatmap: ' mapa de calor',+ h3: 'H3',+ trip: 'viagem',+ s2: 'S2',+ '3d': '3D'+ }+ },+ layerVisConfigs: {+ strokeWidth: 'Largura do Traço',+ strokeWidthRange: 'Alcance da Largura do Traço',+ radius: 'Raio',+ fixedRadius: 'Raio ajustado para metro',+ fixedRadiusDescription: 'Raio do Mapa para Raio absoluto em metros, e.g. 5 para 5 metros',+ radiusRange: 'Alcance do Raio',+ clusterRadius: 'Raio do Agrupamento em pixels',+ radiusRangePixels: 'Alcance do Raio em pixels',+ opacity: 'Opacidade',+ coverage: 'Cobertura',+ outline: 'Contorno',+ colorRange: 'Alcance da Cor',+ stroke: 'Traçado',+ strokeColor: 'Cor do Traçado',+ strokeColorRange: 'Alcance da Cor do Traçado',+ targetColor: 'Cor de destino',+ colorAggregation: 'Agregação da Cor',+ heightAggregation: 'Agregação da Altura',+ resolutionRange: 'Alcance da Resolução',+ sizeScale: 'Escala de tamanho',+ worldUnitSize: 'Tamanho unitário do mundo',+ elevationScale: 'Escala de Elevação',+ heightScale: 'Escala de Altura',+ coverageRange: 'Alcance de cobertura',+ highPrecisionRendering: 'Renderização de Alta Precisão',+ highPrecisionRenderingDescription: 'Alta precisão irá em resultar em baixa performance',+ height: 'Altura',+ heightDescription: 'Clique no botão no canto superior direito para trocar para a visualização 3d',+ fill: 'Preenchimento',+ enablePolygonHeight: 'Habilitar Altura de Polígono',+ showWireframe: 'Mostrar Wireframe',+ weightIntensity: 'Intensidade da Espessura',+ zoomScale: 'Escala do Zoom',+ heightRange: 'Alcance da Altura'+ },+ layerManager: {+ addData: 'Adicionar Dados',+ addLayer: 'Adicionar Camada',+ layerBlending: 'Mistura de Camada'+ },+ mapManager: {+ mapStyle: 'Estilo do Mapa',+ addMapStyle: 'Adicionar Estilo de Mapa',+ '3dBuildingColor': 'Cor do Edifício 3D'+ },+ layerConfiguration: {+ defaultDescription: 'Calcular {property} baseada no campo selecionado',+ howTo: 'Como'+ },+ filterManager: {+ addFilter: 'Adicionar Filtro'+ },+ datasetTitle: {+ showDataTable: 'Mostrar tabela de dados',+ removeDataset: 'Remover tabela de dados'+ },+ datasetInfo: {+ rowCount: '{rowCount} linhas'+ },+ tooltip: {+ hideLayer: 'esconder camada',+ showLayer: 'mostrar camada',+ hideFeature: 'Esconder propriedade',+ showFeature: 'Mostrar propriedade',+ hide: 'esconder',+ show: 'mostrar',+ removeLayer: 'Remover Camada',+ layerSettings: 'Configurações de Camada',+ closePanel: 'Fechar painel atual',+ switchToDualView: 'Trocar para visualização dupla de mapa',+ showLegend: 'mostrar legenda',+ disable3DMap: 'Desabilitar Mapa 3D',+ DrawOnMap: 'Desenhar no mapa',+ selectLocale: 'Selecionar língua',+ hideLayerPanel: 'Esconder painel de camada',+ showLayerPanel: 'Mostrar painel de camada',+ moveToTop: 'Mover para o topo das camadas',+ selectBaseMapStyle: 'Selecionar o Estilo do Mapa Base',+ delete: 'Deletar',+ timePlayback: 'Tempo de reprodução',+ cloudStorage: 'Armazenamento Cloud',+ '3DMap': ' Mapa 3D'+ },+ toolbar: {+ exportImage: 'Exportar Imagem',+ exportData: 'Exportar Dados',+ exportMap: 'Exportar Mapa',+ shareMapURL: 'Compartilhar URL do Mapa',+ saveMap: 'Salvar Mapa',+ select: 'selecionar',+ polygon: 'polígono',+ rectangle: 'retângulo',+ hide: 'esconder',+ show: 'mostrar',+ ...LOCALES+ },+ modal: {+ title: {+ deleteDataset: 'Deletar Conjunto de Dados',+ addDataToMap: 'Adicionar Dados ao Mapa',+ exportImage: 'Exportar Imagem',+ exportData: 'Exportar Dados',+ exportMap: 'Exportar Mapa',+ addCustomMapboxStyle: 'Adicionar Estilo Mapbox Customizado',+ saveMap: 'Salvar Mapa',+ shareURL: 'Compartilhar URL'+ },+ button: {+ delete: 'Deletar',+ download: 'Download',+ export: 'Exportar',+ addStyle: 'Adicionar Estilo',+ save: 'Salvar',+ defaultCancel: 'Cancelar',+ defaultConfirm: 'Confirmar'+ },+ exportImage: {+ ratioTitle: 'Proporção',+ ratioDescription: 'Escolha a proporção para vários usos.',+ ratioOriginalScreen: 'Tela Original',+ ratioCustom: 'Customizado',+ ratio4_3: '4:3',+ ratio16_9: '16:9',+ resolutionTitle: 'Resolução',+ resolutionDescription: 'Alta resolução é melhor para impressões.',+ mapLegendTitle: 'Legenda do Mapa',+ mapLegendAdd: 'Adicionar Legenda no mapa'+ },+ exportData: {+ datasetTitle: 'Conjunto de dados',+ datasetSubtitle: 'Escolha o conjunto de dados que você quer exportar',+ allDatasets: 'Todos',+ dataTypeTitle: 'Tipo de Dado',+ dataTypeSubtitle: 'Escolha o tipo de dados que você quer exportar',+ filterDataTitle: 'Filtrar Dados',+ filterDataSubtitle: 'Você pode escolher exportar os dados originais ou os dados filtrados',+ filteredData: 'Dados Filtrados',+ unfilteredData: 'Dados não filtrados',+ fileCount: '{fileCount} Arquivos',+ rowCount: '{rowCount} Linhas'+ },+ deleteData: {+ warning: 'você irá deletar esse conjunto de dados. Isso irá afetar {length} camadas'+ },+ addStyle: {+ publishTitle: '1. Publique o seu Estilo no Mapbox ou providencie a chave de acesso',+ publishSubtitle1: 'Você pode criar o seu próprio estilo em',+ publishSubtitle2: 'e',+ publishSubtitle3: 'publicar',+ publishSubtitle4: 'isso.',+ publishSubtitle5: 'Para utilizar estilo privado, cole a sua',+ publishSubtitle6: 'chave de acesso',+ publishSubtitle7:+ 'aqui. *kepler.gl é uma aplicação client-side, os dados permanecem no seu browser..',+ exampleToken: 'e.g. pk.abcdefg.xxxxxx',+ pasteTitle: '2. Cole a url do seu estilo',+ pasteSubtitle1: 'O que é uma',+ pasteSubtitle2: 'URL de estilo',+ namingTitle: '3. Nomeie o seu estilo'+ },+ shareMap: {+ shareUriTitle: 'Compartilhar a URL do Mapa',+ shareUriSubtitle: 'Gerar a url do mapa e compartilhar com outros',+ cloudTitle: 'Armazenamento Cloud',+ cloudSubtitle: 'Conecte-se e envie os dados do mapa para o seu armazenamento cloud pessoal',+ shareDisclaimer:+ 'kepler.gl irá salvar os dados do mapa em seu armazenamento cloud pessoal, apenas pessoas com a URL podem acessar o seu mapa e dados. ' ++ 'Você pode editar/deletar o arquivo de dados na sua conta de armazenamento cloud em qualquer momento.',+ gotoPage: 'Vá para a sua página Kepler.gl {currentProvider}'+ },+ statusPanel: {+ mapUploading: 'Enviando Mapa',+ error: 'Erro'+ },+ saveMap: {+ title: 'Armazenamento Cloud',+ subtitle: 'Conecte-se para salvar o mapa para o seu armazenamento cloud pessoal'+ },+ exportMap: {+ formatTitle: 'Formato do mapa',+ formatSubtitle: 'Escolher o formato de mapa para exportar',+ html: {+ selection: 'Exportar seu mapa em um arquivo html interativo.',+ tokenTitle: 'Chave de acesso do Mapbox',+ tokenSubtitle: 'Use a sua própria chave de acesso Mapbox em seu arquivo html (opcional)',+ tokenPlaceholder: 'Cole a sua chave de acesso Mapbox',+ tokenMisuseWarning:+ '* Se você não fornecer a sua própria chave de acesso, o mapa pode falhar em exibir a qualquer momento quando nós substituirmos a nossa para evitar mau uso. ',+ tokenDisclaimer: 'Você pode trocar a sua chave de acesso Mapbox mais tarde utizando as instruções seguintes: ',+ tokenUpdate: 'Como atualizar a chave de acesso de um mapa existente.',+ modeTitle: 'Modo do Mapa',+ modeSubtitle1: 'Selecionar o modo do aplicativo. Mais ',+ modeSubtitle2: 'info',+ modeDescription: 'Permitir usuários a {mode} o mapa',+ read: 'ler',+ edit: 'editar'+ },+ json: {+ configTitle: 'Configurações do Mapa',+ configDisclaimer:+ 'A configuração do mapa será incluida no arquivo Json. Se você está utilizando kepler.gl no seu próprio mapa. Você pode copiar essa configuração e passar para ele ',+ selection:+ 'Exportar atuais dados e configurações do mapa em um único arquivo Json. Você pode mais tarde abrir o mesmo mapa enviando esse arquivo para o kepler.gl.',+ disclaimer:+ '* Configuração do mapa é aclopado com conjunto de dados carregados. ‘dataId’ é utilizado para ligar as camadas, filtros, e dicas de contextos a conjunto de dados expecíficos. ' ++ 'Quando passando essa configuração para addDataToMap, tenha certeza de que o id do conjunto de dados combina com o(s) dataId/s nessa configuração.'+ }+ },+ loadingDialog: {+ loading: 'Carregando...'+ },+ loadData: {+ upload: 'Carregar arquivo',+ storage: 'Carregar do armazenamento'+ },+ tripInfo: {+ title: 'Como habilitar animação de viagem',+ description1:+ 'Para animar o caminho, o dado geoJSON deve conter `LineString` na sua propriedade geometry, e as coordenadas na LineString devem ter 4 elementos no seguinte formato',+ code: ' [longitude, latitude, altitude, data] ',+ description2:+ 'com um ultimo elemento sendo uma data. Um formato de data válida inclui segundos unix como `1564184363` ou em milisegundos como `1564184363000`.',+ example: 'Exemplo:'+ },+ iconInfo: {+ title: 'Como desenhar ícones',+ description1:+ 'No seu csv, crie uma coluna, coloque o nome do ícone que você quer desenhar nele. Você pode deixar o campo vazio se você não desejar que o ícone apareça para alguns pontos. Quando a coluna tem nome',+ code: 'icon',+ description2: ' kepler.gl irá automaticamente criar uma camada de ícone para você.',+ example: 'Exemplos:',+ icons: 'Ícones'+ },+ storageMapViewer: {+ lastModified: 'Modificado há {lastUpdated}',+ back: 'Voltar'+ },+ overwriteMap: {+ title: 'Salvando mapa...',+ alreadyExists: 'já existe no mapa {mapSaved}. Você desejaria sobrescrever o mapa?'+ },+ loadStorageMap: {+ back: 'Voltar',+ goToPage: 'Vá para a sua página {displayName} do Kepler.gl',+ storageMaps: 'Armazenamento / Mapas',+ noSavedMaps: 'Nenhum mapa salvo'+ }+ },+ header: {+ visibleLayers: 'Camadas Visíveis',+ layerLegend: 'Legenda da Camada'+ },+ interactions: {+ tooltip: 'Dica de contexto',+ brush: 'Pincel',+ coordinate: 'Coordenadas'+ },+ layerBlending: {+ title: 'Mistura de Camadas',+ additive: 'aditivo',+ normal: 'normal',+ subtractive: 'subtrativo'+ },+ columns: {+ title: 'Colunas',+ lat: 'lat',+ lng: 'lon',+ altitude: 'altitude',+ icon: 'ícone',+ geojson: 'geojson',+ arc: {+ lat0: 'origem lat',+ lng0: 'origem lng',+ lat1: 'destino lat',+ lng1: 'destino lng'+ },+ grid: {+ worldUnitSize: 'Tamanho da Grade (km)'+ },+ hexagon: {+ worldUnitSize: 'Raio do Hexágono (km)'+ }+ },+ color: {+ customPalette: 'Paletas customizadas',+ steps: 'caminhos',+ type: 'tipo',+ reversed: 'reverso'+ },+ scale: {+ colorScale: 'Escala da Cor',+ sizeScale: 'Tamanho da Escala',+ strokeScale: 'Escala do Traço',+ scale: 'Escala'+ },+ fileUploader: {+ message: 'Arraste e solte seu(s) arquivo(s) aqui',+ chromeMessage:+ '*Usuários do chrome: O limite de tamanho de arquivo é 250mb, se você precisa fazer upload de arquivos maiores tente o Safari',+ disclaimer:+ '*kepler.gl é uma aplicação client-side, sem um servidor backend. Os dados ficam apenas na sua máquina/browser. ' ++ 'Nenhuma informação ou dados de mapa é enviado para qualquer server.',+ configUploadMessage:+ 'Envie **CSV**, **GeoJson** ou mapas salvos **Json**. Leia mais sobre [**tipos de arquivos suportados**]',+ browseFiles: 'procure seus arquivos',+ uploading: 'Enviando',+ fileNotSupported: 'Arquivo {errorFiles} não é suportado.',+ or: 'ou'+ },+ density: 'densidade',+ 'Bug Report': 'Reportar Bug',+ 'User Guide': 'Guia do Usuário',+ Save: 'Salvar',+ Share: 'Compartilhar'+ };diff --git a/src/reducers/ui-state-updaters.js b/src/reducers/ui-state-updaters.jsindex 811639c2d..8d7bfd532 100644--- a/src/reducers/ui-state-updaters.js+++ b/src/reducers/ui-state-updaters.js@@ -26,9 +26,9 @@ import {EXPORT_HTML_MAP_MODES,EXPORT_IMG_RATIOS,EXPORT_MAP_FORMATS,- RESOLUTIONS,- LOCALES+ RESOLUTIONS} from 'constants/default-settings';+import {LOCALE_CODES} from 'localization/locales';import {createNotification, errorNotification} from 'utils/notifications-utils';import {calculateExportImageSize} from 'utils/export-utils';@@ -228,7 +228,7 @@ export const INITIAL_UI_STATE = {// load filesloadFiles: DEFAULT_LOAD_FILES,// Locale of the UI- locale: LOCALES.en+ locale: LOCALE_CODES.en};/* Updaters */