Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: NullLoader

Full name: Azera\Localization\NullLoader

Loader that returns an empty message table.

This is the default loader before a catalogue is configured on a Translator. Each lookup returns an empty table, and untranslated keys are returned as-is. Clarity provides file, array, chain, and Redis-caching loaders; wrap one in a TranslationLoaderBridge to use it with Azera.

Public methods

load() ·

public function load(string $domain, string $locale): array

Parameters

Name Type Default Description
$domain string -
$locale string -

Return value

  • Type: array

Back to the Index