Skip to content

feat(translation): add Brazilian Portuguese translation for the app #40

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

Merged
merged 2 commits into from
Apr 28, 2025
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
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Viewers can create, edit, mark as done, and delete tasks from the list. This Tas
- JP - 日本語
- UA - українська
- DE - German
- PT_BR - Portuguese (Brazilian)

## Table of Contents

Expand All @@ -46,6 +47,7 @@ Viewers can create, edit, mark as done, and delete tasks from the list. This Tas
- [Commands for Everyone](#commands-for-everyone)
- [Commands for Broadcasters and Moderators](#commands-for-broadcasters-and-moderators)
- [Aliases](#aliases)
- [User Commands](#user-commands)
- [Credits](#credits)

## Installation Instructions
Expand Down Expand Up @@ -131,7 +133,7 @@ Open the `_settings.js` file and modify the following settings to customized the
- **"JP"**: Japanese translation
- **"UA"**: Ukrainian translation
- **"DE"**: German translation

- **"PT_BR"**: Brazilian Portuguese translation
`maxTasksPerUser`: Default = **10**

- **number**: A value between 1 - 20.
Expand Down Expand Up @@ -287,14 +289,17 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!追加` (Japanese)
- `!додати` (Ukrainian)
- `!aufgabe` (German)
- `!tarefa` (Brazilian Portuguese)

**focus commands:**

- `!focus`
- `!enfocar` (Spanish)
- `!concentrer` (French)
- `!集中` (Japanese)
- `!фокус` (Ukrainian)
- `!fokus` (German)
- `!focar` (Brazilian Portuguese)

**edit task commands:**

Expand All @@ -304,6 +309,7 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!編集` (Japanese)
- `!редагувати` (Ukrainian)
- `!bearbeiten` (German)
- `!editar` (Brazilian Portuguese)

**complete task commands:**

Expand All @@ -313,6 +319,7 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!完了` (Japanese)
- `!готово` (Ukrainian)
- `!erledigt` (German)
- `!completo` (Brazilian Portuguese)

**delete task commands:**

Expand All @@ -322,6 +329,7 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!削除` (Japanese)
- `!видалити` (Ukrainian)
- `!löschen` (German)
- `!deletar` (Brazilian Portuguese)

**check commands:**

Expand All @@ -331,6 +339,7 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!チェック` (Japanese)
- `!перевірити` (Ukrainian)
- `!prüfen` (German)
- `!verificar` (Brazilian Portuguese)

**help commands:**

Expand All @@ -340,6 +349,7 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!ヘルプ` (Japanese)
- `!допомога` (Ukrainian)
- `!hilfe` (German)
- `!ajuda` (Brazilian Portuguese)

**extra commands:**

Expand All @@ -349,6 +359,7 @@ Open the `_styles.js` file and modify the following settings to customized the T
- `!クレジット` (Japanese)
- `!кредит` (Ukrainian)
- `!kontakt` (German)
- `!crédito` (Brazilian Portuguese)

## Credits

Expand Down
6 changes: 6 additions & 0 deletions _configAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@ const _adminConfig = {
clearDone: "Alle erledigten Aufgaben wurden gelöscht",
clearUser: "Alle Aufgaben von {message} wurden gelöscht",
},
PT_BR: {
timer: "Temporizador de foco definido para {message} minutos",
clearList: "Todas as tarefas foram removidas",
clearDone: "Todas as tarefas concluídas foram removidas",
clearUser: "Todas as tarefas de {message} foram removidas",
}
},
};
30 changes: 23 additions & 7 deletions _configUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
/** @type {UserConfig} */
const _userConfig = {
commands: {
addTask: ["!task", "!add", "!añadir", "!ajouter", "!追加", "!додати", "!aufgabe"],
addTask: ["!task", "!add", "!añadir", "!ajouter", "!追加", "!додати", "!aufgabe", "!tarefa"],
editTask: ["!edit", "!editar", "!modifier", "!編集", "!редагувати", "!bearbeiten"],
finishTask: ["!done", "!hecho", "!terminé", "!完了", "!готово", "!erledigt"],
deleteTask: ["!delete", "!eliminar", "!supprimer", "!削除", "!видалити", "!löschen"],
focusTask: ["!focus", "!enfocar", "!concentrer", "!集中", "!фокус", "!fokus"],
check: ["!check", "!comprobar", "!vérifier", "!チェック", "!перевірити", "!prüfen"],
help: ["!help", "!ayuda", "!aide", "!ヘルプ", "!допомога", "!hilfe"],
additional: ["!credit", "!crédito", "!crédit", "!クレジット", "!кредит", "!kontakt"],
finishTask: ["!done", "!hecho", "!terminé", "!完了", "!готово", "!erledigt", "!concluir"],
deleteTask: ["!delete", "!eliminar", "!supprimer", "!削除", "!видалити", "!löschen", "!deletar"],
focusTask: ["!focus", "!enfocar", "!concentrer", "!集中", "!фокус", "!fokus", "!focar"],
check: ["!check", "!comprobar", "!vérifier", "!チェック", "!перевірити", "!prüfen", "!verificar"],
help: ["!help", "!ayuda", "!aide", "!ヘルプ", "!допомога", "!hilfe", "!ajuda"],
additional: ["!credit", "!crédito", "!crédit", "!クレジット", "!кредит", "!kontakt", "!credito"],
},
responseTo: {
EN: {
Expand Down Expand Up @@ -111,5 +111,21 @@ const _userConfig = {
noTaskFound: "Diese Aufgabe scheint nicht zu existieren, versuche eine hinzuzufügen!",
invalidCommand: "Ungültiger Befehl: {message}. Versuche !help",
},
PT_BR: {
addTask: 'Tarefa(s) {message} adicionada(s)!',
editTask: 'Tarefa {message} atualizada!',
finishTask: 'Bom trabalho ao completar a(s) tarefa(s) {message}!',
deleteTask: 'Tarefa(s) {message} foi/foram deletada(s)!',
deleteAll: "Todas as suas tarefas foram deletadas!",
focusTask: 'Priorizando seu foco na tarefa {message}!',
check: 'Suas tarefas atuais são: {message}',
help: "Tente estes comandos - !tarefa !editar !concluir !deletar !verificar",
additional:
"Jujoco é o criador deste bot, confira seu Twitch em: https://www.twitch.tv/Jujoco_Dev",
maxTasksAdded:
"Número máximo de tarefas atingido, tente deletar tarefas antigas.",
noTaskFound: "Essa tarefa não parece existir, tente adicionar uma!",
invalidCommand: "Comando inválido: {message}. Tente !help",
}
},
};
2 changes: 1 addition & 1 deletion _settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ===========================
/** @type {SettingsConfig} */
const _settings = {
languageCode: "EN", // "EN", "ES", "FR", "JP", "UA", "DE"
languageCode: "EN", // "EN", "ES", "FR", "JP", "UA", "DE", "PT_BR"
maxTasksPerUser: 10, // default number 10
scrollSpeed: 20, // default number 20
showUsernameColor: true, // true or false
Expand Down