🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🔧 chore: simplify electron workflow by removing i18n codemod steps
Innei48dd92c315d1
diff --git a/.github/workflows/verify-electron-codemod.yml b/.github/workflows/verify-electron-codemod.ymlindex 4ca4d46bb5d..4f15c9edeeb 100644--- a/.github/workflows/verify-electron-codemod.yml+++ b/.github/workflows/verify-electron-codemod.yml@@ -60,50 +60,5 @@ jobs:- name: Install dependenciesrun: pnpm install --node-linker=hoisted- - name: Run i18n codemod in temp workspace- shell: bash- run: |- set -euo pipefail-- TMP_DIR="$(mktemp -d)"- echo "Using TEMP_DIR=$TMP_DIR"- echo "TMP_DIR=$TMP_DIR" >> "$GITHUB_ENV"-- mkdir -p "$TMP_DIR/src/utils/i18n" "$TMP_DIR/src/libs" "$TMP_DIR/src/const" "$TMP_DIR/src/locales/default"-- cp -R scripts "$TMP_DIR/"- cp src/utils/i18n/loadI18nNamespaceModule.ts "$TMP_DIR/src/utils/i18n/"- cp src/libs/getUILocaleAndResources.ts "$TMP_DIR/src/libs/"- cp src/const/locale.ts "$TMP_DIR/src/const/"- cp src/locales/resources.ts "$TMP_DIR/src/locales/"- cp src/locales/default/index.ts "$TMP_DIR/src/locales/default/"- cp -R locales "$TMP_DIR/"-- bun "$TMP_DIR/scripts/electronWorkflow/modifiers/i18nDynamicToStatic.mts" "$TMP_DIR"-- - name: Assert dynamic imports removed- shell: bash- run: |- set -euo pipefail-- test -n "${TMP_DIR:-}"-- if grep -F 'import(`@/locales/default/${ns}`)' "$TMP_DIR/src/utils/i18n/loadI18nNamespaceModule.ts"; then- echo "Found dynamic default locale import in loadI18nNamespaceModule.ts"- exit 1- fi-- if grep -F 'import(`@/../locales/${normalizeLocale(lng)}/${ns}.json`)' "$TMP_DIR/src/utils/i18n/loadI18nNamespaceModule.ts"; then- echo "Found dynamic locale import in loadI18nNamespaceModule.ts"- exit 1- fi-- if grep -F 'await import(`@/../locales/${locale}/ui.json`)' "$TMP_DIR/src/libs/getUILocaleAndResources.ts"; then- echo "Found dynamic ui.json import in getUILocaleAndResources.ts"- exit 1- fi-- if grep -F "await import('@lobehub/ui/es/i18n/resources/index')" "$TMP_DIR/src/libs/getUILocaleAndResources.ts"; then- echo "Found dynamic @lobehub/ui import in getUILocaleAndResources.ts"- exit 1- fi+ - name: Run electron workflow modifiers+ run: bun scripts/electronWorkflow/modifiers/index.mts