From ed8a342206c5c2e2b01d93c2c605a0a8e0a3b537 Mon Sep 17 00:00:00 2001 From: rapture-party Date: Wed, 7 May 2025 16:44:34 -0400 Subject: [PATCH] fix: print error when untranslated string found --- src/content/utils/localization.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/utils/localization.ts b/src/content/utils/localization.ts index 4706b8b..0032121 100644 --- a/src/content/utils/localization.ts +++ b/src/content/utils/localization.ts @@ -1,4 +1,4 @@ -import { logDebug } from "./log"; +import { logDebug, logError } from "./log"; const localizations: Record = { 'en': require('../../strings/en'), // English @@ -34,7 +34,7 @@ export function $T(s: string, locale?: Intl.LocalesArgument): string { logDebug(`Translating "${s}" to locale "${code}": ${result}`); return result; } - logDebug(`Untranslated string "${s}" in locale "${code}`); + logError(`Untranslated string "${s}" in locale "${code}"`); return s; }