feat(desktop): optimize cold development startup (#42722)

This commit is contained in:
Luke Parker
2026-08-20 17:40:50 +10:00
committed by GitHub
parent e2d9376614
commit 2a7d0729d0
113 changed files with 2479 additions and 2656 deletions
-4
View File
@@ -63,22 +63,18 @@ describe("translate app", () => {
expect(targetFiles("fr")).toEqual([
"packages/app/src/i18n/fr.ts",
"packages/ui/src/i18n/fr.ts",
"packages/desktop/src/renderer/i18n/fr.ts",
])
expect(targetFiles("tr")).toEqual([
"packages/app/src/i18n/tr.ts",
"packages/ui/src/i18n/tr.ts",
"packages/desktop/src/renderer/i18n/tr.ts",
])
expect(targetFiles("dv")).toEqual([
"packages/app/src/i18n/dv.ts",
"packages/ui/src/i18n/dv.ts",
"packages/desktop/src/renderer/i18n/dv.ts",
])
expect(targetFiles("he")).toEqual([
"packages/app/src/i18n/he.ts",
"packages/ui/src/i18n/he.ts",
"packages/desktop/src/renderer/i18n/he.ts",
])
})
+1 -6
View File
@@ -81,7 +81,6 @@ type Dictionary = Record<string, string>
type Drift = ReturnType<typeof findDrift>
type Domain = { name: string; source: string; target: string; drift: Drift }
const desktopLocales = new Set<Locale>(locales)
const root = path.resolve(import.meta.dir, "..")
export function parseTranslationArgs(args: string[]) {
@@ -116,11 +115,7 @@ export function parseTranslationArgs(args: string[]) {
}
export function targetFiles(locale: Locale) {
return [
`packages/app/src/i18n/${locale}.ts`,
`packages/ui/src/i18n/${locale}.ts`,
...(desktopLocales.has(locale) ? [`packages/desktop/src/renderer/i18n/${locale}.ts`] : []),
]
return [`packages/app/src/i18n/${locale}.ts`, `packages/ui/src/i18n/${locale}.ts`]
}
export function glossaryFile(locale: Locale) {