feat: improve languages support

This commit is contained in:
tonya
2024-10-22 23:58:43 +00:00
parent 3eb5ece34d
commit a9616911f5
17 changed files with 263 additions and 168 deletions

View File

@@ -8,11 +8,11 @@
:trigger-focus="focused"
:autofocus="true"
:required="true"
label="Location Name"
:label="$t('components.location.create_modal.location_name')"
:max-length="255"
:min-length="1"
/>
<FormTextArea v-model="form.description" label="Location Description" :max-length="1000" />
<FormTextArea v-model="form.description" :label="$t('components.location.create_modal.location_description')" :max-length="1000" />
<LocationSelector v-model="form.parent" />
<div class="modal-action">
<div class="flex justify-center">

View File

@@ -1,5 +1,5 @@
<template>
<FormAutocomplete2 v-if="locations" v-model="value" :items="locations" display="name" label="Parent Location">
<FormAutocomplete2 v-if="locations" v-model="value" :items="locations" display="name" :label="$t('components.location.selector.parent_location')">
<template #display="{ item, selected, active }">
<div>
<div class="flex w-full">