Piwik\Intl\Data\Provider\
Provides language data.
The class defines the following methods:
getLanguageList()
— Returns the list of valid language codes.getLanguageToCountryList()
— Returns the list of language to country mappings.getLanguageList()
Returns the list of valid language codes.
string[]
—
Array of 2 letter ISO code => language name (in english).
E.g. array('en' => 'English', 'ja' => 'Japanese')
.getLanguageToCountryList()
Returns the list of language to country mappings.
string[]
—
Array of 2 letter ISO language code => 2 letter ISO country code.
E.g. array('fr' => 'fr') // French => France
.