Skip to content

Commit

Permalink
fix navigator set error (#2591)
Browse files Browse the repository at this point in the history
* fix navigator set error

* remove set language
  • Loading branch information
chenshuai2144 authored and sorrycc committed Jun 13, 2019
1 parent 1c65f26 commit cbffdfb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/umi-plugin-locale/src/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function setLocale(lang, realReload = true) {
throw new Error('setLocale lang format error');
}
if (getLocale() !== lang) {
window.navigator = lang;
window.g_lang = lang;
window.localStorage.setItem('umi_locale', lang || '');
// 触发 context 的 reload
Expand Down

0 comments on commit cbffdfb

Please sign in to comment.