Skip to content

Commit 4350fea

Browse files
committed
fix: replace lobe-i18n with source-aware in-house locale pipeline
1 parent cb2b7c6 commit 4350fea

42 files changed

Lines changed: 1522 additions & 1161 deletions

Some content is hidden

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

.github/workflows/i18n-update-core.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
uses: actions/checkout@v7
2020
with:
2121
token: ${{ secrets.PR_GH_TOKEN }}
22+
# Full history so the locale pipeline can read the English sources
23+
# recorded in src/locales/.source-manifest.json
24+
fetch-depth: 0
2225

2326
# Setup playwright environment
2427
- name: Setup ComfyUI Frontend

.github/workflows/i18n-update-custom-nodes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v7
26+
with:
27+
# Full history so the locale pipeline can read the English sources
28+
# recorded in src/locales/.source-manifest.json
29+
fetch-depth: 0
2630

2731
# Setup playwright environment with custom node repository
2832
- name: Setup ComfyUI Server (without launching)

.github/workflows/i18n-update-nodes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v7
18+
with:
19+
# Full history so the locale pipeline can read the English sources
20+
# recorded in src/locales/.source-manifest.json
21+
fetch-depth: 0
1822
# Setup playwright environment
1923
- name: Setup ComfyUI Server (and start)
2024
uses: ./.github/actions/setup-comfyui-server

.i18nrc.cjs

Lines changed: 0 additions & 49 deletions
This file was deleted.

.oxlintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
33
"ignorePatterns": [
4-
".i18nrc.cjs",
54
"**/vite.config.*.timestamp*",
65
"**/vitest.config.*.timestamp*",
76
"components.d.ts",

eslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const useVirtualListRestriction = {
7575
export default defineConfig([
7676
{
7777
ignores: [
78-
'.i18nrc.cjs',
7978
'**/vite.config.*.timestamp*',
8079
'**/vitest.config.*.timestamp*',
8180
'components.d.ts',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"lint:unstaged": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache",
4444
"lint": "pnpm stylelint && oxlint src browser_tests --type-aware && eslint src --cache",
4545
"lint:desktop": "pnpm --filter @comfyorg/desktop-ui run lint",
46-
"locale": "lobe-i18n locale",
46+
"locale": "tsx scripts/i18n/update-locales.ts",
47+
"locale:check": "tsx scripts/i18n/update-locales.ts --check",
4748
"oxlint": "oxlint src browser_tests --type-aware",
4849
"prepare": "pnpm exec husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true",
4950
"preview": "vite preview --config vite.config.mts",
@@ -140,7 +141,6 @@
140141
"@comfyorg/ingest-types": "workspace:*",
141142
"@eslint/js": "catalog:",
142143
"@intlify/eslint-plugin-vue-i18n": "catalog:",
143-
"@lobehub/i18n-cli": "catalog:",
144144
"@pinia/testing": "catalog:",
145145
"@playwright/test": "catalog:",
146146
"@sentry/vite-plugin": "catalog:",

0 commit comments

Comments
 (0)