From ac5f6bbde98350f0c3eea74acfcf2842b5cb2c88 Mon Sep 17 00:00:00 2001 From: Aaronlamz Date: Fri, 6 May 2022 22:01:42 +0800 Subject: [PATCH] fix: deepmerge functoin object type --build --- examples/vite-project/src/App.vue | 20 +++++++++++++++++++- src/utils/index.ts | 3 ++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/examples/vite-project/src/App.vue b/examples/vite-project/src/App.vue index 3634a08..fc82b84 100644 --- a/examples/vite-project/src/App.vue +++ b/examples/vite-project/src/App.vue @@ -4,7 +4,7 @@

Current Lang from $i18n.currentLocale: {{ currentLocale }}

Test Cases:

Key[button.add: {{ $t('button.add') }}

-

Key[params]: {{ $t('params', 'function value') }}

+

Key[params]: {{ $t('params', param) }}

Key Array: {{ $t(['简体', '繁体', '英文']) }}

Key [global option]: {{ $t('global') }}

@@ -29,6 +29,19 @@ Change Lang to en by $i18n.changeLocale

+

+ +

+

+ +

+

+ +