Translation

Service Name in Container

Webiik\Translation\Translation

Purpose

Translations and text parsing.

Definition

It is defined in private/config/container/services.php. By default, the service Translation is defined to return translations related to WEBIIK_LANG.

Webiik uses application middleware that automatically fills the Translation with content from translation files according to the current route and language:

Usual Usage

In route controller. Also, it is used by the application middleware LoadTranslations.

Documentation

Read documentation to learn more about Translation component.