Reference

Guide

I18n::translate()

Translates a given message according to the currently set locale

I18n::translate(string|array $key, string|array|null $fallback = null, string $locale = null): string|array|null

Parameters

Name Type Default Description
$key string|array
$fallback string|array|null null
$locale string null

Return type

string|array|null

Source code

kirby/src/Toolkit/I18n.php#L110