Comments (14)
我的场景是设置了国际化,实际的话我没用使用到。。
我把 config.ts 设置如下就好了
baseNavigator: false
默认会去读 localstorage
中的 umi-locale
字段。
from plugins.
没有人修复吗... 我也遇到了 umi 3.5.20
from plugins.
我的场景是设置了国际化,实际的话我没用使用到。。
我把 config.ts 设置如下就好了baseNavigator: false
默认会去读
localstorage
中的umi-locale
字段。
YES
baseNavigator
Default: true
开启浏览器语言检测。
默认情况下,当前语言环境的识别按照:localStorage 中 umi_locale 值 > 浏览器检测 > default 设置的默认语言 > 中文
from plugins.
给下复现。
from plugins.
from plugins.
给下复现。
@sorrycc 麻烦看下,谢谢
from plugins.
复现 demo 可以发我下吗?
from plugins.
复现 demo 可以发我下吗?
已发你的邮箱,麻烦了
@ycjcl868
from plugins.
复现 demo 可以发我下吗?
已发你的邮箱,麻烦了
@ycjcl868
看了下 demo,开启国际化是需要有 locales
目录的,加一个 locales
就好了
from plugins.
from plugins.
https://umijs.org/zh-CN/plugins/plugin-locale
from plugins.
@ycjcl868 在src下面加了locales 还是会有这个问题,版本是 "umi": "^3.2.8",
.umirc.ts如下
import { defineConfig } from 'umi';
import routes from './routes'
export default defineConfig({
// ssr: {},
layout: {
name: 'Admin1',
logo: null,
siderWidth: 220,
},
locale: {
default: 'zh-CN',
antd: false,
title: false,
baseNavigator: true,
baseSeparator: '-',
},
nodeModulesTransform: {
type: 'none',
},
routes
});
参考 https://umijs.org/zh-CN/plugins/plugin-locale 配置的。
麻烦有空看下 感谢
from plugins.
看下
from plugins.
我的场景是设置了国际化,实际的话我没用使用到。。
我把 config.ts 设置如下就好了baseNavigator: false
默认会去读
localstorage
中的umi-locale
字段。
我也是这么个情况,刚用yarn create umi
初始化了一个项目,一运行就报错,设置为false
能解决
from plugins.
Related Issues (20)
- umi-qiankun peerDependencies react16
- 约定式路由,如何配置 antdpro中的layout属性
- Unable to customize sider in RunTimeLayoutConfig layout
- vue 启用 qiankun插件报错 HOT 1
- 主应用跳转到子应用时,出现空白页
- Uncaught Error: single-spa minified message #13
- 建议plugin-qiankun和qiankun保持同步,怎加自定义fetch请求 HOT 1
- @umijs/plugin-openapi 插件umi4报错api.addMiddewares is not a function
- 主应用路由是 hash 模式的话,子应用使用 history 模式是不是无法接入?
- 由于本项目的依赖有点旧,让项目安装依赖的时候出现少量 deprecated
- 希望@umijs/plugin-openapi增加serversPath参数
- 使用@ant-design/pro-* 编译了超多的var变量 HOT 1
- 升级 react 18, qiankun 报错Unhandled Rejection (TypeError): m.createRoot is not a function
- useModel 不能在ReactDom.render 内使用
- openapi 配置中 customFunctionName 和 customClassName 该如何使用
- 二级菜单可以设置默认展开么,没有找到相关配置
- antd pro 项目使用@umijs/plugin-qiankun改造成微前端,如何在主应用的二级菜单中指向子应用的某个非首页路由呢?
- antd pro 4.0.0 在哪里添加qiankun lifecycle函数呢?
- 使用initial-state等插件报错
- layout插件中,如何使用onCollapse
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.