Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
unframework authored Oct 24, 2022
2 parents 4304b07 + 75d89c1 commit 58dbfae
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 22 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lint-fix": "eslint --max-warnings=0 --ext ts --ext tsx src --fix",
"stylelint": "stylelint \"src/**/*.scss\"",
"stylelint-fix": "stylelint \"src/**/*.scss\" --fix",
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha --require ts-node/register --timeout 10000 test/**/*.test.ts",
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha --require ts-node/register --timeout 30000 test/**/*.test.ts",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"dist": "yarn prepare"
Expand Down Expand Up @@ -64,7 +64,7 @@
"@typescript-eslint/parser": "^4.1.0",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
"chromedriver": "^103.0.0",
"chromedriver": "^106.0.0",
"clean-webpack-plugin": "^3.0.0",
"cross-env": "^7.0.3",
"css-loader": "^4.3.0",
Expand Down
123 changes: 122 additions & 1 deletion src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,127 @@ export const itIT: ImporterLocale = {
}
};

export const ptBR: ImporterLocale = {
general: {
goToPreviousStepTooltip: 'Voltar a etapa anterior'
},

fileStep: {
initialDragDropPrompt:
'Arraste e solte o arquivo CSV aqui ou clique para selecionar na pasta',
activeDragDropPrompt: 'Arraste e solte o arquivo CSV aqui...',

getImportError: (message) => `Erro ao importar: ${message}`,
getDataFormatError: (message) => `Por favor confira a formatação dos dados: ${message}`,
goBackButton: 'Voltar',
nextButton: 'Escolher Colunas',

rawFileContentsHeading: 'Conteúdo Bruto do Arquivo',
previewImportHeading: 'Visualizar Importação',
dataHasHeadersCheckbox: 'Os dados têm cabeçalhos',
previewLoadingStatus: 'Carregando visualização...'
},

fieldsStep: {
stepSubtitle: 'Selecionar Colunas',
requiredFieldsError: 'Atribua todos os campos obrigatórios',
nextButton: 'Importar',

dragSourceAreaCaption: 'Colunas para importar',
getDragSourcePageIndicator: (currentPage: number, pageCount: number) =>
`Página ${currentPage} de ${pageCount}`,
getDragSourceActiveStatus: (columnCode: string) =>
`Atribuindo coluna ${columnCode}`,
nextColumnsTooltip: 'Mostrar as próximas colunas',
previousColumnsTooltip: 'Mostrar colunas anteriores',
clearAssignmentTooltip: 'Limpar atribuição de coluna',
selectColumnTooltip: 'Selecione a coluna para atribuição',
unselectColumnTooltip: 'Desmarcar coluna',

dragTargetAreaCaption: 'Campos de destino',
getDragTargetOptionalCaption: (field) => `${field} (opcional)`,
getDragTargetRequiredCaption: (field) => `${field} (obrigatório)`,
dragTargetPlaceholder: 'Arraste a coluna aqui',
getDragTargetAssignTooltip: (columnCode: string) =>
`Atribuir coluna ${columnCode}`,
dragTargetClearTooltip: 'Limpar atribuição de coluna',

columnCardDummyHeader: 'Campo não atribuído',
getColumnCardHeader: (code) => `Coluna ${code}`
},

progressStep: {
stepSubtitle: 'Importar',
uploadMoreButton: 'Carregar mais',
finishButton: 'Finalizar',
statusError: 'Não foi possível importar',
statusComplete: 'Completo',
statusPending: 'Importando...',
processedRowsLabel: 'Linhas processadas:'
}
};

export const daDK: ImporterLocale = {
general: {
goToPreviousStepTooltip: "Gå til forrige trin",
},

fileStep: {
initialDragDropPrompt:
"Træk og slip CSV-fil her eller klik for at vælge fra en mappe",
activeDragDropPrompt: "Slip CSV-fil her...",

getImportError: (message) => `Import-fejl: ${message}`,
getDataFormatError: (message) =>
`Kontrollér venligst data-formatering: ${message}`,
goBackButton: "Gå tilbage",
nextButton: "Vælg kolonner",

rawFileContentsHeading: "Rå filindhold",
previewImportHeading: "Forhåndsvis Import",
dataHasHeadersCheckbox: "Data sidehoved",
previewLoadingStatus: "Indlæser forhåndsvisning...",
},

fieldsStep: {
stepSubtitle: "Vælg kolonner",
requiredFieldsError: "Tildel venligst alle påkrævede felter",
nextButton: "Importér",

dragSourceAreaCaption: "Kolonner til import",
getDragSourcePageIndicator: (currentPage: number, pageCount: number) =>
`Side ${currentPage} af ${pageCount}`,
getDragSourceActiveStatus: (columnCode: string) =>
`Tildeler kolonne ${columnCode}`,
nextColumnsTooltip: "Vis næste kolonner",
previousColumnsTooltip: "Vis forrige kolonner",
clearAssignmentTooltip: "Ryd kolonne-tildeling",
selectColumnTooltip: "Vælg kolonne til tildeling",
unselectColumnTooltip: "Fravælg kolonne",

dragTargetAreaCaption: "Mål-felter",
getDragTargetOptionalCaption: (field) => `${field} (valgfri)`,
getDragTargetRequiredCaption: (field) => `${field} (påkrævet)`,
dragTargetPlaceholder: "Træk kolonne hertil",
getDragTargetAssignTooltip: (columnCode: string) =>
`Tildel kolonne ${columnCode}`,
dragTargetClearTooltip: "Ryd kolonne-tildeling",

columnCardDummyHeader: "Disponibelt felt",
getColumnCardHeader: (code) => `Column ${code}`,
},

progressStep: {
stepSubtitle: "Importér",
uploadMoreButton: "Upload Mere",
finishButton: "Færdiggør",
statusError: "Kunne ikke importere",
statusComplete: "Færdig",
statusPending: "Importerer...",
processedRowsLabel: "Processerede rækker:",
}
};

export const trTR: ImporterLocale = {
general: {
goToPreviousStepTooltip: "Bir önceki adıma geri dön",
Expand Down Expand Up @@ -300,4 +421,4 @@ export const trTR: ImporterLocale = {
statusPending: "Import ediliyor...",
processedRowsLabel: "İşlenen satır sayısı:",
},
};
};
44 changes: 25 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1956,10 +1956,10 @@
"@svgr/plugin-svgo" "^5.4.0"
loader-utils "^2.0.0"

"@testim/chrome-version@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@testim/chrome-version/-/chrome-version-1.1.2.tgz#092005c5b77bd3bb6576a4677110a11485e11864"
integrity sha512-1c4ZOETSRpI0iBfIFUqU4KqwBAB2lHUAlBjZz/YqOHqwM9dTTzjV6Km0ZkiEiSCx/tLr1BtESIKyWWMww+RUqw==
"@testim/chrome-version@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@testim/chrome-version/-/chrome-version-1.1.3.tgz#fbb68696899d7b8c1b9b891eded9c04fe2cd5529"
integrity sha512-g697J3WxV/Zytemz8aTuKjTGYtta9+02kva3C1xc7KXB8GdbfE1akGJIsZLyY/FSh2QrnE+fiB7vmWU3XNcb6A==

"@types/anymatch@*":
version "1.3.1"
Expand Down Expand Up @@ -3894,16 +3894,17 @@ chrome-trace-event@^1.0.2:
dependencies:
tslib "^1.9.0"

chromedriver@^103.0.0:
version "103.0.0"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-103.0.0.tgz#2ef086d62076e3ff6df6cfb84895d11d2c18d9cf"
integrity sha512-7BHf6HWt0PeOHCzWO8qlnD13sARzr5AKTtG8Csn+czsuAsajwPxdLNtry5GPh8HYFyl+i0M+yg3bT43AGfgU9w==
chromedriver@^106.0.0:
version "106.0.1"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-106.0.1.tgz#f3850cc0a6904336b552d1b13a8ae1705d127bbe"
integrity sha512-thaBvbDEPgGocSp4/SBIajQz3G7UQfUqCOHZBp9TVhRJv7c91eZrUGcjeJUaNF4p9CfSjCYNYzs4EVVryqmddA==
dependencies:
"@testim/chrome-version" "^1.1.2"
"@testim/chrome-version" "^1.1.3"
axios "^0.27.2"
del "^6.0.0"
compare-versions "^5.0.1"
del "^6.1.1"
extract-zip "^2.0.1"
https-proxy-agent "^5.0.0"
https-proxy-agent "^5.0.1"
proxy-from-env "^1.1.0"
tcp-port-used "^1.0.1"

Expand Down Expand Up @@ -4138,6 +4139,11 @@ compare-versions@^3.6.0:
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==

compare-versions@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-5.0.1.tgz#14c6008436d994c3787aba38d4087fabe858555e"
integrity sha512-v8Au3l0b+Nwkp4G142JcgJFh1/TUhdxut7wzD1Nq1dyp5oa3tXaqb03EXOAB6jS4gMlalkjAUPZBMiAfKUixHQ==

component-emitter@^1.2.1:
version "1.3.0"
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
Expand Down Expand Up @@ -4661,10 +4667,10 @@ del@^4.1.1:
pify "^4.0.1"
rimraf "^2.6.3"

del@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/del/-/del-6.0.0.tgz#0b40d0332cea743f1614f818be4feb717714c952"
integrity sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==
del@^6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/del/-/del-6.1.1.tgz#3b70314f1ec0aa325c6b14eb36b95786671edb7a"
integrity sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==
dependencies:
globby "^11.0.1"
graceful-fs "^4.2.4"
Expand Down Expand Up @@ -6601,10 +6607,10 @@ https-browserify@^1.0.0:
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=

https-proxy-agent@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2"
integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==
https-proxy-agent@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6"
integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==
dependencies:
agent-base "6"
debug "4"
Expand Down

0 comments on commit 58dbfae

Please sign in to comment.