From 7183c0165f27e2560e8d5d97f0c3b06f03ae3b38 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 11 Apr 2024 10:50:38 +0700 Subject: [PATCH] feat: default i18n --- src/components/FormDialog.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/FormDialog.vue b/src/components/FormDialog.vue index ca4996e0..09fc96f1 100644 --- a/src/components/FormDialog.vue +++ b/src/components/FormDialog.vue @@ -7,8 +7,8 @@ import useAddressStore from 'stores/address'; defineProps<{ title: string; - addressTitle: string; - addressENTitle: string; + addressTitle?: string; + addressENTitle?: string; submit?: (...args: unknown[]) => void; close?: (...args: unknown[]) => void; }>(); @@ -143,7 +143,7 @@ onMounted(async () => { >
- {{ addressTitle }} + {{ $t(addressTitle || 'address') }}
{ class="col-3" v-model="zipCode" /> - - {{ addressENTitle }} - + {{ $t(addressTitle || 'address') }} EN