umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
349 stars 238 forks source link

@umijs/preset-react升级到2.1.0后国际化失效了 #781

Closed pai16858 closed 2 years ago

pai16858 commented 2 years ago

使用getLocale()得到的是zhCN,之前版本得到的是zh-CN, 而且setLocale切换语言后getLocale()得到的还是zhCN

wsyccc commented 2 years ago

同样的问题

pai16858 commented 2 years ago

看了一下代码,要加两个配置 useLocalStorage:true,和baseSeparator:'-'