Skip to content

Commit

Permalink
feat: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed Oct 22, 2024
1 parent f02959f commit b54cfba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@
"profile_reported": "Profile reported",
"your_friend_code": "Your friend code:",
"upload_banner": "Upload banner",
"uploading_banner": "Uploading banner…"
"uploading_banner": "Uploading banner…",
"background_image_updated": "Background image updated"
},
"achievement": {
"achievement_unlocked": "Achievement unlocked",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/pt-BR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@
"profile_reported": "Perfil reportado",
"your_friend_code": "Seu código de amigo:",
"upload_banner": "Carregar banner",
"uploading_banner": "Carregando banner…"
"uploading_banner": "Carregando banner…",
"background_image_updated": "Imagem de fundo salva"
},
"achievement": {
"achievement_unlocked": "Conquista desbloqueada",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function UploadBackgroundImageButton() {

await patchUser({ backgroundImageUrl: path });

showSuccessToast("Background image updated");
showSuccessToast(t("background_image_updated"));
await fetchUserDetails();
}
} finally {
Expand Down

0 comments on commit b54cfba

Please sign in to comment.