Comments (9)
想起来了,因为taro3使用了原生的react,所以您可以直接安装 @i18n-chain/react
。
以及如果您有使用 hack()
方法,taro3也不再需要这个方法了
from i18n-chain.
发个新版吧,兼容taro3
from i18n-chain.
问卷调查一下,您在用这个库的适合,是否会经常忘记写 useI18n(...)
from i18n-chain.
问卷调查一下,您在用这个库的适合,是否会经常忘记写 useI18n(...)
确实,不过我发现有时我不写也可以动态切换,有时就不可以,不太理解原理。
from i18n-chain.
能动态切换是因为你有其他的state导致了重渲染。加useI18n()的唯一作用就是为了及时重渲染。
我等下先发个兼容taro3的。
然后在下一个主版本中,升级对useI18n()的新用法。大概思路是,const t = useI18n(i18n)
,use完才能使用,就是说const i18n = createI18n()
不能直接走链式,只能使用一些公共接口
from i18n-chain.
@i18n-chain/taro 后面就直接废弃了
from i18n-chain.
想起来了,因为taro3使用了原生的react,所以您可以直接安装
@i18n-chain/react
。
以及如果您有使用hack()
方法,taro3也不再需要这个方法了
对哦!谢谢~
from i18n-chain.
2.0尝鲜。https://github.com/fwh1990/i18n-chain/releases
新加的字符串模板生成工具我感觉很棒
from i18n-chain.
2.0尝鲜。https://github.com/fwh1990/i18n-chain/releases
新加的字符串模板生成工具我感觉很棒
Nice!
有空我尝试一下。
from i18n-chain.
Related Issues (5)
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 i18n-chain.