Skip to content

Commit 1b4c619

Browse files
author
under_moon
committed
feat: i18n & appearance switch
1 parent d256363 commit 1b4c619

19 files changed

Lines changed: 453 additions & 79 deletions

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
- name: Setup NodeJs
2828
uses: actions/setup-node@v3
2929
with:
30-
node-version: 18
30+
node-version: 20.6.1
3131

3232
- name: setup pnpm
3333
uses: pnpm/action-setup@v2.4.0
3434
with:
35-
version: 7
35+
version: 7.33.6
3636
run_install: true
3737

3838
# - name: build windows app
@@ -47,6 +47,7 @@ jobs:
4747
run: |
4848
pnpm run build
4949
env:
50+
NODE_OPTIONS: '--max_old_space_size=4096'
5051
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5152

5253
# - name: cleanup artifacts for windows

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Build with `Electron`, simple Application for Google indexing-api usage.
88

99
- [x] Mac release
1010
- [ ] Windows release
11-
- [ ] i18n
11+
- [x] i18n
1212

1313
### Screenshots
1414

locales/en.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"nav_root": "Index Tools",
3+
"nav_auth": "Auth",
4+
"nav_indexing": "Indexing",
5+
"page_auth_load_file": "Load JSON Auth File",
6+
"page_auth_button": "AUTHORIZE",
7+
"page_indexing_input_placeholder": "Please Input URL",
8+
"page_indexing_update_button": "update url indexing",
9+
"page_indexing_get_button": "get metadata",
10+
"page_indexing_del_confirm_title": "Please type {url} to Confirm.",
11+
"page_indexing_del_confirm_button": "Confirm Delete Indexing"
12+
}

locales/zh.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"nav_root": "索引工具",
3+
"nav_auth": "授权",
4+
"nav_indexing": "推送",
5+
"page_auth_load_file": "加载授权配置文件",
6+
"page_auth_button": "授权",
7+
"page_indexing_input_placeholder": "请输入链接",
8+
"page_indexing_update_button": "更新索引",
9+
"page_indexing_get_button": "获取推送状态",
10+
"page_indexing_del_confirm_title": "请输入 {url} 来确认",
11+
"page_indexing_del_confirm_button": "确认删除索引"
12+
}

md/00.png

4.76 KB
Loading

md/01.png

-2.46 KB
Loading

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-index-tools",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"main": "dist/main/index.js",
55
"private": true,
66
"productName": "Google Index Tools",
@@ -40,18 +40,25 @@
4040
},
4141
"dependencies": {
4242
"@electron/remote": "^2.0.11",
43+
"@intlify/unplugin-vue-i18n": "^1.0.1",
4344
"@unocss/preset-attributify": "^0.55.7",
4445
"@vicons/ionicons5": "^0.12.0",
46+
"@vicons/material": "^0.12.0",
4547
"@vitejs/plugin-vue": "^4.3.4",
4648
"@vueuse/core": "^10.4.1",
4749
"date-fns": "^2.30.0",
4850
"googleapis": "^126.0.1",
4951
"ofetch": "^1.3.3",
5052
"pinia": "^2.1.6",
5153
"vue": "^3.3.4",
54+
"vue-i18n": "9",
5255
"vue-json-pretty": "^2.2.4",
5356
"vue-router": "^4.2.4",
5457
"winston": "^3.10.0",
5558
"yup": "^1.2.0"
59+
},
60+
"volta": {
61+
"node": "20.6.1",
62+
"pnpm": "7.33.6"
5663
}
5764
}

0 commit comments

Comments
 (0)