Loading...

`_t` is reserved

AGENTS.md and proposed

I18NMixin and the i18n-manager keep an element's English strings in `this._t` (and its bookkeeping in `__i18n*` names). Never use `_t` for an element's own property, field, method or state; adding English defaults with `this._t = { ...this._t, ...more }` is the one allowed write. ESLint reports the rest (`haxtheweb-i18n/reserved-t`, `scripts/eslint-rules/i18n-reserved.mjs`). In the AGENTS.md of components. Enforced by ESLint. ESLint rule haxtheweb-i18n/reserved-t (scripts/eslint-rules/i18n-reserved.mjs) fails the pull request on an element using _t for its own property, field, method or state.

Connects to

Links