Class Internationalization

Application unit to register @extollo/i18n resources.

Hierarchy

  • Unit
    • Internationalization

Constructors

Properties

config: Config
kernel: HTTPKernel
logging: Logging
status: UnitStatus = UnitStatus.Stopped

The current status of the unit.

Accessors

Methods

  • This method is called to stop the unit when the application is shutting down. Here, you should do any teardown required to stop the package cleanly.

    IN PARTICULAR take care to free blocking resources that could prevent the process from exiting without a kill.

    Returns void | Promise<void>

  • Get the method with the given name from this class, bound to this class.

    Returns

    function

    Parameters

    • methodName: string

    Returns ((...args: any[]) => any)

      • (...args: any[]): any
      • Get the method with the given name from this class, bound to this class.

        Returns

        function

        Parameters

        • Rest ...args: any[]

        Returns any

  • Call the make() method on the global container.

    Type Parameters

    • T

    Parameters

    • target: any
    • Rest ...parameters: any[]

    Returns T

  • Registers the locale template and middleware, if enabled by config.

    You can set the "locale.enable" config property to false to disable the InjectRequestLocale HTTP kernel module.

    Returns void