Translation

Service Name in Container

Webiik\Translation\Translation

Purpose

Translations, text formatting.

Configuration

Not available.

Definition

By default, Translation Service is defined to return translations for the current language.

Webiik utilizes application middleware Webiik\Middleware\Core\LoadTranslations:run to automatically fill the Translation Service with texts from translation files according to the current route and language:

Usual Usage

In controller. Used by LoadTranslations middleware.

Documentation

Read documentation to learn more about Translation component.