Skip to content

Commit

Permalink
Merge pull request rcdexta#524 from rubensflinco/master
Browse files Browse the repository at this point in the history
Create translation pt-br
  • Loading branch information
dapi authored Mar 15, 2023
2 parents 68cfec8 + 3421d32 commit 29bfd1f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ This is the container component that encapsulates the lanes and cards

| Name | Type | Description |
| ------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| lang | string | Language of compiled texts ("en", "ru"). Default is "en" |
| lang | string | Language of compiled texts ("en", "ru", "pt-br"). Default is "en" |
| t | function | Translation function. You can specify either one key as a `String`. Look into ./src/locales for keys list |

### Style customization
Expand Down
7 changes: 5 additions & 2 deletions src/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// i18next support structure

export default {
en: {
"en": {
translation: require('./en/translation.json')
},
ru: {
"ru": {
translation: require('./ru/translation.json')
},
"pt-br": {
translation: require('./pt-br/translation.json')
}
}
16 changes: 16 additions & 0 deletions src/locales/pt-br/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Add another lane": "+ Adicionar outra coluna",
"Click to add card": "Clique para adicionar um cartão",
"Delete lane": "Deletar coluna",
"Lane actions": "Ações da coluna",
"button": {
"Add lane": "Adicionar coluna",
"Add card": "Adicionar cartão",
"Cancel": "Cancelar"
},
"placeholder": {
"title": "título",
"description": "descrição",
"label": "etiqueta"
}
}

0 comments on commit 29bfd1f

Please sign in to comment.