You've already forked tf2wikipricing
fix: print error when untranslated string found
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { logDebug } from "./log";
|
||||
import { logDebug, logError } from "./log";
|
||||
|
||||
const localizations: Record<string, object> = {
|
||||
'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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user