I18nKeyGenerator
which provides a number of helper methods to generate keys.I18nizer
mechanism.I18nText
.LocaleProvider
which uses Context.getLocale()
to provide the current Locale."^/[^/]+/i18n/"
and
.DefaultMessageBundlesLoader.DefaultMessageBundlesLoader(info.magnolia.resourceloader.ResourceOrigin)
instead.I18nKeyGenerator#keysFor(String, T, java.lang.reflect.AnnotatedElement)
.#ByteBuddyI18nizer
.LocaleProvider
provider that simply returns the Locale it was passed in its constructor.GeneratorResult
s for a given Locale.I18nKeyGenerator
s corresponding to the parent objects of the given object.I18nParentable
interface
when the object was decorated by I18nizer
.getId()
or getName()
on a root object of unknown type.I18nKeyGenerator
s corresponding to the given object.I18nParentable
interface
when the object was decorated by I18nizer
.I18nParentable
hierarchy.I18nKeyGenerator
s corresponding to the root object of the given object.I18nKeyGenerator
is responsible for deriving i18n keys for any given instance of T.I18nKeyGenerator
for object annotated with I18nable
.#ByteBuddyI18nizer
.#ByteBuddyI18nizer
.I18nKeyGenerator.keysFor(String, Object, java.lang.reflect.AnnotatedElement)
, which sets
the undecoratedResult value if it is not null, and delegates to AbstractI18nKeyGenerator.keysFor(java.util.List, Object, java.lang.reflect.AnnotatedElement)
.TranslationService
.Locale
objects.#ByteBuddyI18nizer
.I18nText.fallback()
explicitly specified, TranslationServiceImpl
use the longest i18n key if translation key is not found as fallback.I18nKeyGenerator
which essentially just returns the undecorated value,
and warns that no I18nKeyGenerator was set for the given object.#ByteBuddyI18nizer
.DefaultMessageBundlesLoader
is responsible for reloading message bundles.DefaultMessageBundlesLoader
directly.#ByteBuddyI18nizer
.TranslationServiceImpl.defaultMessageBundlesLoaderProvider
directly or setup message bundles in DefaultMessageBundlesLoader
.TranslationService
and LocaleProvider
for getting messages based on a single, well-known, key.I18nizer
which keeps track of translation attempts and figures out new/replacement keys (for example if a configured key exists, it can suggest to remove the configuration and replace the key with a generated one).GenerateTranslationFilesImpl
.DefaultMessageBundlesLoader
.#TranslationServiceImpl(javax.inject.Provider, javax.inject.Provider)
instead.#TranslationServiceImpl(javax.inject.Provider, javax.inject.Provider)
instead.#TranslationServiceImpl(javax.inject.Provider, javax.inject.Provider)
instead.Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.