Translations_Loader::override_locale( string $locale )
A proxy method to return the current override locale if set, or the input locale otherwise.
Contents
Used during filter application.
Parameters
- $locale
-
(string) (Required) The locale to override.
Return
(string) The overridden locale.
Source
File: src/Common/Translations_Loader.php
public function override_locale( $locale ) { return $this->override_locale ?: $locale; }
Changelog
Version | Description |
---|---|
5.0.8 | Introduced. |