Skip to content
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
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"
}
}