[i18n] Use folder mode for locale (#1876)

* [i18n] Use folder mode for locale

* try pipe
This commit is contained in:
Chenlei Hu
2024-12-11 11:29:52 -08:00
committed by GitHub
parent 929e3a5733
commit 0c511d08e6
9 changed files with 9 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ import type { ComfyCommandImpl } from '../src/stores/commandStore'
import type { FormItem, SettingParams } from '../src/types/settingTypes'
import type { ComfyApi } from '../src/scripts/api'
const localePath = './src/locales/en.json'
const localePath = './src/locales/en/main.json'
const extractMenuCommandLocaleStrings = (): Set<string> => {
const labels = new Set<string>()
for (const [category, _] of CORE_MENU_COMMANDS) {