Rule: i18n

Ensures following best practices for i18n.

Rationale

Makes the code more maintainable in i18n sense.

Notes:
TS Only

Config

Arguments may be optionally provided:

  • "check-id" Makes sure i18n attributes have ID specified
  • "check-text" Makes sure there are no elements with text content but no i18n attribute
Examples
"i18n": [true, "check-id"]
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "check-id",
      "check-text"
    ]
  },
  "minLength": 0,
  "maxLength": 3
}