Skip to content

Commit

Permalink
chore: add language to component translation
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jul 31, 2024
1 parent 4609af7 commit 532c938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/LocaleSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function LocaleSwitcher() {
return (
<Select value={dropdownLang} onValueChange={onLanguageChange}>
<SelectTrigger className="w-[150px]">
<SelectValue placeholder="Language" />
<SelectValue placeholder={t("language")} />
</SelectTrigger>
<SelectContent>
{supportedLocales.map((locale) => (
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"components": {
"locale_switcher": {
"success": "Language updated."
"success": "Language updated.",
"language": "Language"
}
}
}

0 comments on commit 532c938

Please sign in to comment.