We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef2717 commit 007410bCopy full SHA for 007410b
packages/electron-chrome-extensions/src/renderer/index.ts
@@ -329,10 +329,16 @@ export const injectExtensionAPIs = () => {
329
},
330
331
i18n: {
332
+ shouldInject: () => manifest.manifest_version === 3,
333
factory: (base) => {
334
+ // Electron configuration prevented this API from being available.
335
+ // https://github.com/electron/electron/pull/45031
336
+ if (base.getMessage) {
337
+ return base
338
+ }
339
+
340
return {
341
...base,
- // TODO(mv3): implement
342
getUILanguage: () => 'en-US',
343
getAcceptLanguages: (callback: any) => {
344
const results = ['en-US']
0 commit comments