This page describes how to support text internationalization (i18n).
The I18n
interface was developed as a bridge between CraftVentory and any internationalization library. It consists in a single method whose goal is to retrieve a text using a key and the player who requests it.
To support text internationalization, the first step is to create a class that implements this interface and that does the mapping with an internationalization library. Then, the created class can be used in inventory descriptors by redefining the getI18n()
method and everything should be automatically translated.
CraftVentory is not an internationalization library. It only provides a bridge to be mapped with one.