Debug: Add warning for missing translation keys
All checks were successful
BotUI CI / build (push) Successful in 4m13s

This commit is contained in:
Rodrigo Rodriguez 2026-02-14 12:25:53 +00:00
parent be802201fd
commit fb66708cdc

View file

@ -126,6 +126,10 @@
function t(key, params) {
let text = translations[key] || MINIMAL_FALLBACK[key] || key;
if (!translations[key] && !MINIMAL_FALLBACK[key]) {
console.warn(`i18n: Missing translation key: ${key}`);
}
if (params && typeof params === "object") {
Object.keys(params).forEach((param) => {
text = text.replace(