-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
要怎么关闭国际化这个功能? #2431
Comments
代码中也需要关闭,不是删除插件就可以了 你需要删除所有引用了 umi/local 的代码 |
这着实令人难过。。 |
嗯,确实是看着比较烦能一键关闭就好了 |
// defaultSettings.js 里
menu: {
disableLocal: true, // 禁用多语言功能
} |
关注 #3775 |
国际化真让人有点头秃。。 |
移除国际化,我试了把所有关于 <pro-layout
:title="title"
:menus="menus"
:collapsed="collapsed"
:mediaQuery="query"
:isMobile="isMobile"
:handleMediaQuery="handleMediaQuery"
:handleCollapse="handleCollapse"
:logo="logoRender"
+ :i18nRender="key => key"
v-bind="settings"
> 增加 |
我今天也碰到了这样的问题,然后就看到了这个issue,后面自己也摸索着解决了,分享一下 export default defineConfig({
...
layout: {
locale: false,
...
},
locale: {},
...
}); 然后locale的文件夹也可以删除掉 |
locale: { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 config/config.js 中做如下配置
这不是关闭了国际化这个功能吗,为啥还是会报
[React Intl] Missing message: "menu.商品管理" for locale: "zh-CN"
这个错,而且菜单前面多了个'menu.' ? 还是要在其他地方配置?The text was updated successfully, but these errors were encountered: