ExtJS 4 实时本地化

发布于 2024-12-29 20:30:04 字数 81 浏览 3 评论 0原文

我想知道是否有人可以指导我如何管理 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

恋你朝朝暮暮 2025-01-05 20:30:04

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文