feat(i18n): force Spanish as the only language across all tenants
Some checks failed
CI / lint-and-test (3.11) (push) Has been cancelled
CI / lint-and-test (3.13) (push) Has been cancelled

- i18n.js now locks currentLang to 'es' and overwrites pos_lang in localStorage.

- Disabled setLang language switching.

- Removed ES/EN toggle from sidebar.

- Bumped i18n.js and sidebar.js cache version on all templates.
This commit is contained in:
2026-06-30 18:13:43 +00:00
parent 37b7f94f54
commit b539c92daf
18 changed files with 36 additions and 47 deletions

View File

@@ -317,7 +317,9 @@ var I18N = {
}
};
var currentLang = localStorage.getItem('pos_lang') || 'es';
// Spanish is mandatory for all tenants; ignore any previously stored language.
var currentLang = 'es';
localStorage.setItem('pos_lang', 'es');
/**
* Translate a key to the current language.
@@ -328,12 +330,11 @@ window.t = function(key) {
};
/**
* Switch the UI language and reload.
* Language switcher is disabled; the system stays in Spanish.
*/
window.setLang = function(lang) {
currentLang = lang;
localStorage.setItem('pos_lang', lang);
location.reload();
currentLang = 'es';
localStorage.setItem('pos_lang', 'es');
};
/**