@lazyingart/agintiflow 0.20.115 → 0.20.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazyingart/agintiflow",
3
- "version": "0.20.115",
3
+ "version": "0.20.116",
4
4
  "type": "module",
5
5
  "description": "AgInTiFlow is a project-aware agent workspace for hybrid wet-dry R&D, hardware-aware intelligence, software automation, and industrial workflows.",
6
6
  "license": "Apache-2.0",
@@ -230,6 +230,9 @@ try {
230
230
  if (!launchHeader.includes("█████") || !launchHeader.includes("v0.0.0") || launchHeader.split("\n").length < 9) {
231
231
  throw new Error("large launch header did not render a centered multi-line title");
232
232
  }
233
+ if (launchHeader.includes("launchTagline")) {
234
+ throw new Error("empty launch tagline should not render the i18n key name");
235
+ }
233
236
  if (
234
237
  formatElapsedDuration(0) !== "00:00" ||
235
238
  formatElapsedDuration(65_000) !== "01:05" ||
package/src/i18n.js CHANGED
@@ -729,7 +729,8 @@ export function languageLabel(language = "en") {
729
729
 
730
730
  export function t(key, language = "en", values = {}) {
731
731
  const normalized = normalizeLanguage(language);
732
- const text = TRANSLATIONS[normalized]?.[key] || TRANSLATIONS.en[key] || key;
732
+ const localized = TRANSLATIONS[normalized] || {};
733
+ const text = Object.hasOwn(localized, key) ? localized[key] : Object.hasOwn(TRANSLATIONS.en, key) ? TRANSLATIONS.en[key] : key;
733
734
  return Object.entries(values).reduce((result, [name, value]) => result.replaceAll(`{${name}}`, String(value)), text);
734
735
  }
735
736