Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default and translate to PT-BR #473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Add default and translate to PT-BR
  • Loading branch information
dlermen12 committed Sep 21, 2021
commit 52d8b1bd00835aaed2ec673ce236e4e94e1ad61d
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export {

export { DefaultComponents as components }

const DEFAULT_LANG='en'
const DEFAULT_LANG='ptbr'
dapi marked this conversation as resolved.
Show resolved Hide resolved
mateusbays marked this conversation as resolved.
Show resolved Hide resolved

export default ({ components, lang=DEFAULT_LANG, ...otherProps }) => {
deprecationWarnings(otherProps);
Expand Down
3 changes: 3 additions & 0 deletions src/locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ export default {
},
ru: {
translation: require('./ru/translation.json')
},
ptbr: {
translation: require('./ptbr/translation.json')
}
}
16 changes: 16 additions & 0 deletions src/locales/ptbr/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 tarefa",
"Delete lane": "Deletar coluna",
"Lane actions": "Ações da coluna",
"button": {
"Add lane": "Adicionar coluna",
"Add card": "Adicionar tarefa",
"Cancel": "Cancelar"
},
"placeholder": {
"title": "título",
"description": "descrição",
"label": "rótulo"
}
}