From d66af37122d2a8d9441ac01325618f3e8e0ad183 Mon Sep 17 00:00:00 2001 From: Rubens Flinco Date: Fri, 10 Mar 2023 15:40:52 -0300 Subject: [PATCH 1/2] Create translation pt-br --- src/locales/index.js | 7 +++++-- src/locales/pt-br/translation.json | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/locales/pt-br/translation.json diff --git a/src/locales/index.js b/src/locales/index.js index 73b1a959a..89659657e 100644 --- a/src/locales/index.js +++ b/src/locales/index.js @@ -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') } } diff --git a/src/locales/pt-br/translation.json b/src/locales/pt-br/translation.json new file mode 100644 index 000000000..7983579f6 --- /dev/null +++ b/src/locales/pt-br/translation.json @@ -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" + } +} \ No newline at end of file From 3421d32e9cb2b0e5a36a42ee2aa8a50f13b3acca Mon Sep 17 00:00:00 2001 From: Rubens Flinco Date: Fri, 10 Mar 2023 15:43:18 -0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5db3b0c16..8abfd8876 100644 --- a/README.md +++ b/README.md @@ -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