Skip to main content

Validator

This package provides validation for translation files. It validates that the JSON is valid and that it doesn't contain duplicates keys.

Installation#

Usage#

{  "husky": {    "hooks": {      "pre-commit": "lint-staged"    }  },  "lint-staged": {    "src/assets/i18n/*.json": ["transloco-validator"]  }}

This will make sure no one accidentally pushes an invalid translation file.