@hint/utils-i18n

util for i18n

Usage no npm install needed!

<script type="module">
  import hintUtilsI18n from 'https://cdn.skypack.dev/@hint/utils-i18n';
</script>

README

I18n utils (@hint/utils-i18n)

Set of helpers to print to allow i18n in webhint.

Installation

This package is installed automatically when adding webhint to your project so running the following is enough:

npm install hint --save-dev

Utils

  • format: Format a string given substitutions.
  • getCategoryName: Return the localized category name.
  • getMessage: Get the localized message.