I have implemented internationalization using i18n. I know i can't change language at runtime using chrome.i18n. Is there any way I can change Chrome language programmatically using JS? Any lib or custom code.
-
I certainly hope you're not able to. Otherwise any extension might decide to change my browser's language to something I don't speak and changing back would be very hard or impossible. Especially if the extension changes is back.VLAZ– VLAZ2019-08-26 13:46:31 +00:00Commented Aug 26, 2019 at 13:46
-
You can write a separate utility that changes the user profile preferences file and restarts the browser. Such utility can be written in any language and is to be installed separately so then your extension can launch it via nativeMessaging. Practically though, extensions that want to provide independent language setting have to use an independent localization library, there are lots.woxxom– woxxom2019-08-26 13:59:36 +00:00Commented Aug 26, 2019 at 13:59
Add a comment
|