Vydané zdroje
Stáhnout zdroje ZIP
CH-J Tools
Procházejte adresáře a soubory konkrétního vydání aplikace.
CH-J / Server Manager
872 souborů
core-20261030T220507Z-61e4558d889f
Přidáno: · Sestaveno:
1
"use strict";2
// Diagnostics translations: data files i18n/diagnostics/<language>.json (keys are the English texts3
// or runtime codes). Injected by the Rust Core; Node tests read the files.4
(function(root, factory) { const api = factory(); if (typeof module === "object" && module.exports) module.exports = api; else root.CHJ_DIAGNOSTICS_I18N = api; })(globalThis, () => {5
function loadCatalogs() {6
const injected = globalThis.__CHJ_I18N__;7
if (injected && injected.catalogs && injected.catalogs.diagnostics) return injected.catalogs.diagnostics;8
if (typeof require === "function" && typeof __dirname === "string") {9
const fs = require("fs"), path = require("path"), dir = path.join(__dirname, "i18n", "diagnostics"), result = {};10
for (const file of fs.readdirSync(dir)) if (file.endsWith(".json")) result[file.slice(0, -5)] = JSON.parse(fs.readFileSync(path.join(dir, file), "utf8"));11
return result;12
}13
return {};14
}15
const catalogs = loadCatalogs();16
// Regional variants (de-at) use their base language when they have no catalog of their own.17
return { catalogs, t(language, key) { return catalogs[language]?.[key] ?? catalogs[String(language).split("-")[0]]?.[key] ?? catalogs.en?.[key] ?? key; } };18
});SHA-256
6a1cb10253d04e8dfe061850ad7b969905c84b9de9f0a057adba857dc1efacf0CH-J Proprietary Software License 1.14 · Zdroje jsou zveřejněny pod CH-J Proprietary Software License 1.14. Jejich dostupnost nemění licenční podmínky ani neposkytuje další oprávnění.
SHA-256 archivu
77380d4805485ffa4027fbe7858b5836f197a4aa9d52358a43e2d12d018744df