- Openclerk\DefaultLocale
class Openclerk \ DefaultLocale
- All implemented interfaces:
- Locale
Method Summary
Name | Description |
---|---|
getKey() | By default, the default locale is English. |
getTitle() | |
load() | Load the locale data at runtime. This method should only be called once per request at most. |
public function getKey()
By default, the default locale is English.
- Returns:
a string representing the locale, e.g. ISO code
public function getTitle()
- Returns:
the English name for this locale, e.g. 'French'
public function load()
Load the locale data at runtime. This method should only be called once per request at most. (from load)
- Returns:
an array of (keys => values) which can be cached.