From e58db7085c6b3c2147ef5be763fa44f8a488a35b Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 6 Aug 2024 08:56:50 +0700 Subject: [PATCH] refactor: option to use or not use i18n --- src/layouts/MainLayout.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 570db397..84f38ef8 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -281,9 +281,11 @@ onMounted(async () => { > {{ item.text - ? $t(item.text, { - ...(item.argsi18n || {}), - }) + ? item.i18n + ? $t(item.text, { + ...(item.argsi18n || {}), + }) + : item.text : '' }}