From eec80eb402d687161c60c024c5f7cb079599f4a9 Mon Sep 17 00:00:00 2001 From: joshunrau Date: Fri, 20 Feb 2026 15:33:48 -0500 Subject: [PATCH] fix: typo --- src/i18n/translator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/translator.ts b/src/i18n/translator.ts index 0d9309f..9185fbd 100644 --- a/src/i18n/translator.ts +++ b/src/i18n/translator.ts @@ -57,7 +57,7 @@ export class Translator implements TranslatorType { globalObj[globalKey] ??= []; globalObj[globalKey].push(this); - if (globalObj[globalKey].length > 0) { + if (globalObj[globalKey].length > 1) { console.warn(`WARNING: Multiple Translator instances detected (existing: ${globalObj[globalKey].length})`); // Check if prototypes are the same (can occur if multiple library versions are loaded)