From 181007f1f16940c23c5c060bb7b6955fdd06b882 Mon Sep 17 00:00:00 2001 From: "J.T. Sage" Date: Sat, 24 Aug 2024 11:17:12 -0400 Subject: [PATCH] Fail $l10n missing filltypes in a better way --- lib/modUtilLib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modUtilLib.js b/lib/modUtilLib.js index 60eb0e02..1b4e6880 100644 --- a/lib/modUtilLib.js +++ b/lib/modUtilLib.js @@ -430,7 +430,7 @@ class translator { i18nObject.entry ??= baseGameLang?.[this.#currentLocale]?.[baseKey] i18nObject.entry ??= baseGameLang.en?.[baseKey] - i18nObject.entry ??= `~~${baseKey}~~` + i18nObject.entry ??= baseKey.startsWith('filltype_') ? `F:${baseKey.replace('filltype_', '')}` : `~~${baseKey}~~` return i18nObject }