ExtJS 4 实时本地化
我想知道是否有人可以指导我如何管理 extjs 4 中的本地化。我想知道是否有方法可以实时处理语言更改,而无需刷新页面。
提前致谢。
I would like to know if someone can guide me on the way on how to manage localization in extjs 4. I want to know if there is way to handle the language changing in real time, without the need of refresh the page.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ExtJS 支持的所有内容是,您可以创建特定于语言环境的 JS 文件,并根据应用程序中的某些逻辑(例如,用户配置文件中的语言代码),您必须动态地将脚本标记添加到文档头,以便视图可以针对该用户进行本地化。
您可以参考 ExtJS 文件夹的 locale 文件夹中现有的区域设置特定文件。
All ExtJS supports is that you can create locale specific JS files and based on certain logic in your application (e.g. the language code from your user profile) you will have to, dynamically, add a script tag to the document head so that the view can be localized for that user.
You may refer to the existing locale specific files in locale folder of your ExtJS folder.
请参阅 ExtJS 中的 动态本地化示例文档。
See the dynamic localization example in the ExtJS docs.