Code Monkey home page Code Monkey logo

bear-react-locale's People

Contributors

imagine10255 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bear-react-locale's Issues

Array locale

The description field needs to be hard-coded. When doing multi-lingual at the front end, the dictionary file can only be processed in the way of 1, 2, and 3. I don’t know if it can be taken out as an array

<DescUl>
    {Array.from({length: 3}).map((row, index) => {
        return <li>
            {
                i18n(`viewModal.checkIn.desc${index}`, {args: {
                        checkInGiftDepositMaxDays: setting?.checkInGiftDepositMaxDays ?? 0,
                        checkInGiftMinValidBet: setting?.checkInGiftMinValidBet ?? 0,
                    }})
            }
        </li>
    })}
</DescUl>

If this method is used, the parameter will be invalid

{
'viewModal.checkIn.desc': `
       <li>需連續簽到七天,只要未簽到,隔天重新算起</li>
        <li>{:checkInGiftMinValidBet}天內須儲值一次</li>
        <li>7天需累計14,000</li>`,
}

 <DescUl dangerouslySetInnerHTML={{__html: i18n('viewModal.checkIn.desc', {args: {
          checkInGiftDepositMaxDays: setting?.checkInGiftDepositMaxDays ?? 0,
          checkInGiftMinValidBet: setting?.checkInGiftMinValidBet ?? 0,
  }})}}/>

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.