getI18n function

The getI18n function is a quick way to retrieve the i18n instance.
If the i18n instance has not yet been created, getI18n will create a new instance automatically.

// import the function
import { createCustomElement, getI18n, withI18n } from ''

// use it within a component
withI18n(getI18n(), {
/* pass component creation options here */