Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 116 additions & 84 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
},
"dependencies": {
"countly-sdk-nodejs": "^20.11.0",
"electron-serve": "^1.1.0",
"electron-serve": "^3.0.1",
"electron-store": "^8.1.0",
"electron-updater": "^6.6.2",
"fix-path": "3.0.0",
"fs-extra": "^10.0.1",
"i18next": "^21.8.14",
"i18next-fs-backend": "1.1.4",
"i18next-icu": "^2.0.3",
"intl-messageformat": "^9.13.0",
"i18next-icu": "^2.4.3",
"intl-messageformat": "^11.1.2",
"ipfs-http-client": "56.0.2",
"ipfs-utils": "^9.0.10",
"ipfsd-ctl": "10.0.6",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { join } = require('path')
const { ipcMain } = require('electron')
const i18n = require('i18next')
const ICU = require('i18next-icu')
const Backend = require('i18next-fs-backend')
const store = require('./common/store')
const ipcMainEvents = require('./common/ipc-main-events')
Expand All @@ -10,6 +9,8 @@ const getCtx = require('./context')

module.exports = async function () {
const ctx = getCtx()
const icuModule = await import('i18next-icu')
const ICU = icuModule.default ?? icuModule
logger.info('[i18n] init...')
const lng = store.get('language')
logger.info(`[i18n] configured language: ${lng}`)
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
const { registerAppStartTime, getSecondsSinceAppStart } = require('./metrics/appStart')
registerAppStartTime()
require('v8-compile-cache')
// v8-compile-cache interferes with dynamic import in this process, so keep it disabled.

const { app, dialog } = require('electron')

Expand Down
Loading
Loading