仅用于扩展的区域设置切换
是否可以只为一个扩展程序切换区域设置,而不能为整个浏览器 Firefox 切换区域设置? 是否有任何带有扩展语言切换功能的扩展示例。我的意思是在不更改浏览器区域设置的情况下更改语言?
有没有带有自己的本地化机制的扩展示例?
Is it possible to switch locale only for one extension but not for whole browser firefox?
if there are any exanples of extensions with extension language switchig. I mean to change the language without changing the browser locale?
Are there any examples of extensions with its own localization mechanism?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知 - 不,至少不使用内置机制。您可以更改 General.useragent.locale 首选项(对于调试很有用),这通常对浏览器没有影响,因为浏览器通常只安装一种区域设置。但它会影响所有扩展,而不仅仅是一个。如果您希望在单个扩展中进行区域设置切换,您将必须实现自己的本地化机制。
As far as I know - no, at least not using built-in mechanisms. You can change
general.useragent.locale
preference (useful for debugging), this will usually have no effect on the browser because the browser typically has only one locale installed. But it will affect all extensions, not just one. If you want locale switching in a single extension you will have to implement your own localization mechanism.