Basic use

We just simply pass the key.

Interpolation

Interpolation is done by passing the params attribute. The value of the attribute must be a JSON string. The keys of the JSON string must match the keys of the interpolation values

Nested key/values

Different levels of depth are accepted

Localizing attributes

For accessibility and good practices reasons, we can also localize different attributes like aria-label or title. The way it is a bit different, we are passing props inside the attribute data-i18n

Error handling

If the key is not available, i.e., not to be found on the data file of the defaultLanguage, then a error message will be shown

A google