Method | Description | |
---|---|---|
canonicalize ( string $locale = null ) : string | Canonicalize the given locale. | |
getVariants ( string $locale ) : array | Gets all variants of a locale. | |
match ( string $firstLocale, string $secondLocale ) : boolean | Checks whether the two locales match. |
public static canonicalize ( string $locale = null ) : string | ||
$locale | string | The locale. |
return | string | The canonicalized locale. |
public static getVariants ( string $locale ) : array | ||
$locale | string | The locale (i.e. fr-FR). |
return | array | An array of all variants of a locale. |