From 801c5628a7db1d242247f4914894946fbd7a2b66 Mon Sep 17 00:00:00 2001 From: Pang Chun Lam <30290516+chunlampang@users.noreply.github.com> Date: Sat, 6 Apr 2019 12:42:54 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27f8906..0a66704 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,12 @@ translations.locale.errors['404']; ```javascript import translations from 'vue-translations'; import en from '@/locales/en'; -import zh from '@/locales/zh'; +import zhHant from '@/locales/zh-hant'; Vue.use(translations, { alias: '$t', defaultLocale: 'en', - locales: { en, zh } + locales: { en, "zh-hant": zhHant } }); ``` ### or use Webpack require.context