I need to create an extension that would change my browser locale on a mouse click.
I'm developing a bilingual web app, and I'm setting the i18n messages according to the browser locale. But this requires me to get to the wrench, then under the hood, then languages, then the drag&drop thing to switch the locale. Searching the chrome extensions didn't bring any results. I'm now trying to make a chrome extension which would make this a click or two closer, but I'm having troubles doing that.
I can get to the list of accepted languages with chrome.i18n.getAcceptLanguages(callback)
, but I don't know how to set the locale (or reorder or whatever).
Can somebody tell me which function ot use or even if there already is such an extension?