Releases: reZach/i18next-electron-fs-backend
Releases · reZach/i18next-electron-fs-backend
v3.0.2
v3.0.1
v3.0.0
Changes
- The package supports a custom
contextBridge.exposeInMainWorld
apiKey (first parameter) other than "api" now. The previous value ofipcRenderer
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"
},