Files
CherryHQ-cherry-studio/scripts/update-languages.ts
fullex d06302db48 refactor(shared): rename preset & codeLanguages files to camelCase per naming-conventions §3.2
`.ts` files under `src/shared` must use camelCase (naming-conventions §3.2);
kebab-case is only sanctioned under `packages/ui/` and `src/renderer/routes/`.
The `presets/` kebab naming came from best-practice-layered-preset-pattern.md,
which predated and conflicted with the authoritative spec.

- Rename presets/{code-cli,default-assistant,file-processing,mini-apps,
  translate-languages,web-search-providers}.ts and utils/code-languages.ts
  (plus the two matching __tests__ files) to camelCase, and update all importers
- Fix the upstream generator scripts/update-languages.ts to emit
  codeLanguages.ts; otherwise `pnpm update:languages` would recreate the
  kebab-named file
- Correct best-practice-layered-preset-pattern.md (kebab -> camelCase) and link
  it to naming-conventions §3.2 so it cannot drift again
- Fix two stale `types/file` path references in file/architecture.md
2026-06-19 22:08:49 -07:00

4.5 KiB