Function registerTranslationProvider

  • Register a global translation provider that will be used to translate strings when using _ and _n. By default DummyTranslationProvider is used as the translation provider. It doesn't actually translate string, but does interpolate parameters and it can be used as a base class for implementing other providers.

    Parameters

    Returns TranslationProvider

    The previous translation provider.