Skip to content

Commit 59da3d9

Browse files
feat: support i18n, add russian local (massCodeIO#152)
1 parent e30a174 commit 59da3d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+814
-187
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"fs-extra": "^10.0.1",
4747
"highlight.js": "^11.5.1",
4848
"html2canvas": "^1.4.1",
49+
"i18next": "^21.8.14",
50+
"i18next-fs-backend": "^1.1.4",
4951
"interactjs": "^1.10.11",
5052
"lodash": "^4.17.21",
5153
"lowdb": "^3.0.0",
@@ -71,6 +73,7 @@
7173
"@tsconfig/node14": "^1.0.1",
7274
"@types/ace": "^0.0.48",
7375
"@types/estree": "^0.0.51",
76+
"@types/i18next-fs-backend": "^1.1.2",
7477
"@types/lowdb": "^1.0.11",
7578
"@types/marked": "^4.0.3",
7679
"@types/mermaid": "^8.2.9",

pnpm-lock.yaml

Lines changed: 24 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ ipcMain.handle('main:restart-api', () => {
7777
apiServer.restart()
7878
})
7979

80+
ipcMain.handle('main:restart', () => {
81+
app.relaunch()
82+
app.quit()
83+
})
84+
8085
ipcMain.handle('main:open-url', (event, payload) => {
8186
shell.openExternal(payload as string)
8287
})

0 commit comments

Comments
 (0)