GithubHelp home page GithubHelp logo

Comments (5)

Leemin0311 avatar Leemin0311 commented on June 14, 2024 1

any update ?

from plugins.

vinhtnguyen avatar vinhtnguyen commented on June 14, 2024

I'm having the same issue. Please update. Thank you.

from plugins.

vinhtnguyen avatar vinhtnguyen commented on June 14, 2024

I think I figured this out. It was working with umi 3.0.x previously. After upgrading to umi 3.2.x it breaks.
According to the example from umi : https://github.com/umijs/plugins/blob/master/example/pages/index.tsx
It seems that some changes were made, so I followed the example and use addLocale in useEffect.
It's working for me again now. Below is an extract of my code:

const [languages, setLanguages] = useState(getAllLocales());
useEffect(() => {
addLocale('fr-FR');
addLocale('en-US');
setLanguages(getAllLocales());
}, []);

selectedKeys={[getLocale()]}
onClick={({ key }) => setLocale(key, false)}

from plugins.

Troynew avatar Troynew commented on June 14, 2024

@sorrycc ,您好,这个BUG,麻烦关注下,请尽快修复,setLocale('fr-FR',false),会复现,yarn create umi antDesignPro_Prov4_typescript_simple_antd@4官方demo就会复现

from plugins.

nkHub avatar nkHub commented on June 14, 2024

addLocale后,部分antd组件的国际化变成默认的英文了

from plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.