refactor(i18n): consolidate duplicate keys into reusable globals

- Move form.field.* to globals.terms.*
- Replace select messages with globals.messages.select
- Use shared success/deletion confirmation messages
- Reduce ~50 duplicate keys
This commit is contained in:
Abhinav Raut
2025-06-07 18:58:10 +05:30
parent 625a08d0aa
commit 26c7df538c
74 changed files with 651 additions and 564 deletions

View File

@@ -15,7 +15,7 @@
<FormField v-slot="{ componentField }" name="lang">
<FormItem>
<FormLabel>{{ t('admin.general.language') }}</FormLabel>
<FormLabel>{{ t('globals.terms.language') }}</FormLabel>
<FormControl>
<Select v-bind="componentField" :modelValue="componentField.modelValue">
<SelectTrigger>
@@ -39,7 +39,7 @@
<FormField v-slot="{ componentField }" name="timezone">
<FormItem>
<FormLabel>
{{ t('admin.general.timezone') }}
{{ t('globals.terms.timezone') }}
</FormLabel>
<FormControl>
<Select v-bind="componentField">
@@ -91,7 +91,7 @@
<FormField v-slot="{ field }" name="root_url">
<FormItem>
<FormLabel>
{{ t('admin.general.rootURL') }}
{{ t('globals.terms.rootURL') }}
</FormLabel>
<FormControl>
<Input type="text" placeholder="" v-bind="field" />
@@ -230,7 +230,7 @@ const props = defineProps({
}
})
const submitLabel = props.submitLabel || t('globals.buttons.save')
const submitLabel = props.submitLabel || t('globals.messages.save')
const form = useForm({
validationSchema: toTypedSchema(createFormSchema(t))
})