Skip to content

Commit a81ace8

Browse files
committed
Update i18n scripts
1 parent 238e412 commit a81ace8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/collect-i18n-general.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import * as fs from 'fs'
22

33
import { comfyPageFixture as test } from '../browser_tests/fixtures/ComfyPage'
4+
import {
5+
formatCamelCase,
6+
normalizeI18nKey
7+
} from '../packages/shared-frontend-utils/src/formatUtil'
48
import { CORE_MENU_COMMANDS } from '../src/constants/coreMenuCommands'
59
import { DESKTOP_DIALOGS } from '../src/constants/desktopDialogs'
610
import { SERVER_CONFIG_ITEMS } from '../src/constants/serverConfig'
711
import type { FormItem, SettingParams } from '../src/platform/settings/types'
812
import type { ComfyCommandImpl } from '../src/stores/commandStore'
9-
import { formatCamelCase, normalizeI18nKey } from '../src/utils/formatUtil'
1013

1114
const localePath = './src/locales/en/main.json'
1215
const commandsPath = './src/locales/en/commands.json'

scripts/collect-i18n-node-defs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as fs from 'fs'
33
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
44

55
import { comfyPageFixture as test } from '../browser_tests/fixtures/ComfyPage'
6+
import { normalizeI18nKey } from '../packages/shared-frontend-utils/src/formatUtil'
67
import type { ComfyNodeDefImpl } from '../src/stores/nodeDefStore'
7-
import { normalizeI18nKey } from '../src/utils/formatUtil'
88

99
const localePath = './src/locales/en/main.json'
1010
const nodeDefsPath = './src/locales/en/nodeDefs.json'

0 commit comments

Comments
 (0)