Add a new feature: MJRefresh components
will be rerendered automatically with MJRefreshConfig.default.language
setting.
#1527
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New Features 新功能
Dynamic i18n Switching 动态切换多语言模块
Now
MJRefresh components
will be rerendered automatically withMJRefreshConfig.default.language
setting.如果设置了
MJRefreshConfig.default.language
,MJRefresh 模块
将会自动同步刷新.Example 例子
Go
i18n
folder and see lots of cases. Simulator example is behindi18n tab
in right-top corner.在
i18n
目录下可以找到很多例子, 模拟器功能在右上角的i18n
(原示例2) 可以查看相应的部分功能.Setting language 设置语言
Setting i18n file name 设置 i18n 的多语言文件名
Setting i18n language bundle 设置 i18n 的多语言 Bundle
Adopting the feature in your DIY component 在自定义控件引入本次新增功能
Just override
i18nDidChange
function and reset texts.重写
i18nDidChange
方法並且重设多语言内容.