Allows to instantiate a mock implementation of
AxI18n, compatible to "axI18n" injection.
Creates a mock for the "axI18n" injection of a widget.
Custom language tags for locales may be passed on creation, or changed using
Alternatively, pass an AxContext instance to control the feature configuration and/or control the
locale state using events. This is for use by widget test-beds (e.g. LaxarJS Mocks) to connect the i18n
mock to the same event bus and feature configuration as the rest of the test.
||starting locales with language tag(s) for which to simulate
||a context with features and/or eventBus to use. By default (or when set to an empty object), a mock eventBus will be used, and a widget with ID "test-widget" will be assumed, with its feature configuration
||pass a (mock) configuration to control the fallback language tag ("en" by default), using the configuration key
||a mock of