Skip to content

Commit

Permalink
feat: more translations
Browse files Browse the repository at this point in the history
  • Loading branch information
nikensss committed Apr 22, 2024
1 parent f94f84e commit f37e7d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/[locale]/settings/settings-form.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type SettingsFormProps = {

export default function SettingsForm({ username, timezone, currency, weekStartsOn }: SettingsFormProps) {
const t = useScopedI18n('settings');

const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] as const;

const router = useRouter();
Expand Down Expand Up @@ -180,7 +181,7 @@ export default function SettingsForm({ username, timezone, currency, weekStartsO
name="timezone"
render={({ field }) => (
<FormItem className="w-full pb-4">
<FormLabel className="block text-center md:text-left">Timezone</FormLabel>
<FormLabel className="block text-center md:text-left">{t('timezone')}</FormLabel>
<Popover>
<PopoverTrigger asChild>
<FormControl className="w-full md:w-[360px]">
Expand Down Expand Up @@ -232,7 +233,7 @@ export default function SettingsForm({ username, timezone, currency, weekStartsO
name="currency"
render={({ field }) => (
<FormItem className="w-full pb-4">
<FormLabel className="block text-center md:text-left">Currency</FormLabel>
<FormLabel className="block text-center md:text-left">{t('currency')}</FormLabel>
<Popover>
<PopoverTrigger asChild>
<FormControl className="w-full md:w-[360px]">
Expand Down Expand Up @@ -281,7 +282,7 @@ export default function SettingsForm({ username, timezone, currency, weekStartsO
name="weekStartsOn"
render={({ field }) => (
<FormItem className="w-full pb-4">
<FormLabel className="block text-center md:text-left">Week starts on</FormLabel>
<FormLabel className="block text-center md:text-left">{t('weekStartsOn')}</FormLabel>
<Popover>
<PopoverTrigger asChild>
<FormControl className="w-full md:w-[360px]">
Expand Down

0 comments on commit f37e7d9

Please sign in to comment.