Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: complete Italian locale coverage

nash_su4d70fe3631e9
diff --git a/src/i18n/i18n-parity.test.ts b/src/i18n/i18n-parity.test.ts
index 3c0740bf..233d62a0 100644
--- a/src/i18n/i18n-parity.test.ts
+++ b/src/i18n/i18n-parity.test.ts
@@ -31,10 +31,13 @@ function flattenKeys(obj: unknown, prefix = ""): string[] {
return out
}
-function valueAtPath(bundle: unknown, path: string): string {
+function valueAtPath(bundle: unknown, path: string): unknown {
let value = bundle
- for (const part of path.split(".")) value = (value as Record<string, unknown>)[part]
- return value as string
+ for (const part of path.split(".")) {
+ if (value === null || typeof value !== "object") return undefined
+ value = (value as Record<string, unknown>)[part]
+ }
+ return value
}
function interpolationVariables(value: string): string[] {
@@ -106,10 +109,14 @@ describe("i18n bundle parity", () => {
it("translated strings preserve English interpolation variables", () => {
for (const [locale, bundle] of Object.entries(locales)) {
for (const path of enKeys) {
+ const translated = valueAtPath(bundle, path)
+ // Missing/non-string values are reported by the structural tests with
+ // a clearer diagnostic; do not turn them into an unrelated TypeError.
+ if (typeof translated !== "string") continue
expect(
- interpolationVariables(valueAtPath(bundle, path)),
+ interpolationVariables(translated),
`${locale}.json changes interpolation variables for ${path}`,
- ).toEqual(interpolationVariables(valueAtPath(en, path)))
+ ).toEqual(interpolationVariables(valueAtPath(en, path) as string))
}
}
})
diff --git a/src/i18n/it.json b/src/i18n/it.json
index d78539ca..d4355f3c 100644
--- a/src/i18n/it.json
+++ b/src/i18n/it.json
@@ -26,6 +26,7 @@
"review": "Revisione",
"skills": "Skill",
"settings": "Impostazioni",
+ "settingsShortcut": " (Cmd/Ctrl+,)",
"switchProject": "Cambia progetto",
"updateAvailable": "Aggiornamento disponibile",
"updateAvailableSuffix": " · aggiorna"
@@ -185,6 +186,8 @@
"refreshFolderHint": "Riesamina la cartella delle fonti ed elabora i file nuovi, modificati o eliminati.",
"refreshFolderTooltip": "Riesamina la cartella delle fonti del progetto con le stesse regole del monitoraggio automatico. I file consentiti nuovi o modificati vengono messi in coda per l'elaborazione; le fonti eliminate avviano la normale pulizia di wiki e indice; infine l'albero dei file viene ricostruito.",
"refreshFailed": "Impossibile aggiornare le fonti: {{error}}",
+ "openExternal": "Apri nell'app predefinita",
+ "openExternalFailed": "Impossibile aprire {{name}}: {{error}}",
"ingest": "Elabora",
"ingestStatus": {
"not-ingested": "Da elaborare",