Skip to content

v3.0.0

Compare
Choose a tag to compare
@reZach reZach released this 27 Jul 03:45
· 7 commits to master since this release

Changes

  • The package supports a custom contextBridge.exposeInMainWorld apiKey (first parameter) other than "api" now. The previous value of ipcRenderer was not used and confusing

Before

backend: {
    loadPath: "./app/localization/locales/{{lng}}/{{ns}}.json",
    addPath: "./app/localization/locales/{{lng}}/{{ns}}.missing.json",
    ipcRenderer: window.api.i18nextElectronBackend // important!
},

After

backend: {
    loadPath: "./app/localization/locales/{{lng}}/{{ns}}.json",
    addPath: "./app/localization/locales/{{lng}}/{{ns}}.missing.json",
    contextBridgeApiKey: "api" // needs to match first parameter of contextBridge.exposeInMainWorld in preload file; defaults to "api"
},