Commit d63a3781031042340cb27fcfe2aa6ec223426035
1 parent
a5dad1af
fixed
#1090 #2387 #379
Showing
17 changed files
with
18 additions
and
18 deletions
Show diff stats
src/locale/index.js
... | ... | @@ -47,12 +47,12 @@ export const i18n = function(fn) { |
47 | 47 | |
48 | 48 | // using with vue-i18n in CDN |
49 | 49 | /*eslint-disable */ |
50 | -export const setLang = function (l) { | |
50 | +export const setLang = function (name, lang) { | |
51 | 51 | if (typeof window.iview !== 'undefined') { |
52 | 52 | if (!('langs' in iview)) { |
53 | 53 | iview.langs = {}; |
54 | 54 | } |
55 | - iview.langs[l] = lang; | |
55 | + iview.langs[name] = lang; | |
56 | 56 | } |
57 | 57 | }; |
58 | 58 | /*eslint-enable */ | ... | ... |
src/locale/lang/de-DE.js
src/locale/lang/en-US.js
src/locale/lang/es-ES.js
src/locale/lang/fr-FR.js
src/locale/lang/id-ID.js
src/locale/lang/ja-JP.js
src/locale/lang/ko-KR.js
src/locale/lang/pt-BR.js
src/locale/lang/pt-PT.js
src/locale/lang/ru-RU.js
src/locale/lang/sv-SE.js
src/locale/lang/tr-TR.js
src/locale/lang/uk-UA.js
src/locale/lang/vi-VN.js
src/locale/lang/zh-CN.js