refactor: add i18n

This commit is contained in:
Thanaphon Frappet 2024-11-04 15:37:23 +07:00
parent eef8547683
commit c4305730b0
3 changed files with 7 additions and 16 deletions

View file

@ -182,14 +182,15 @@ watch(
v-if="userType === 'MESSENGER'"
outlined
clearable
use-input
fill-input
emit-value
map-options
hide-selected
hide-bottom-space
class="col-12"
input-debounce="0"
multiple
use-chips
stack-label
option-label="label"
option-value="value"
id="input-responsible-area"
@ -199,20 +200,8 @@ watch(
:label="$t('personnel.form.responsibleArea')"
:options="responsibleAreaOptions"
@filter="responsibleAreaFilter"
:model-value="readonly ? responsibleArea || '-' : responsibleArea"
@update:model-value="
(v) => (typeof v === 'string' ? (responsibleArea = v) : '')
"
@clear="responsibleArea = ''"
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
{{ $t('general.noData') }}
</q-item-section>
</q-item>
</template>
</q-select>
v-model="responsibleArea"
></q-select>
</div>
<div
v-if="userType === 'DELEGATE'"

View file

@ -118,6 +118,7 @@ export default {
shared: 'Shared',
area: 'Area by area',
byArea: 'By area',
company: 'Company',
},
menu: {

View file

@ -120,6 +120,7 @@ export default {
shared: 'ใช้ร่วมกัน',
area: 'เขตพื้นที่',
byArea: 'ตามเขตพื้นที่',
company: 'บริษัท',
},
menu: {