The language resolution is based on the user preferred languages and the languages
supported by the application. The method will try to find the best match.
public getPreferredLanguage ( array $languages = [] ) : string | ||
$languages | array | a list of the languages supported by the application. If this is empty, the current application language will be returned without further processing. |
리턴 | string | the language that the application should use. |