private String getDefaultLanguage ( List < String > applicationLanguages ) { if ( applicationLanguages . isEmpty ( ) ) { String NO_LANGUAGES_TEXT = "Please specify the supported languages in 'application.properties'." + " For example 'application.languages=en, ro, de, pt-BR' makes 'en' your default language." ; log . error ( NO_LANGUAGES_TEXT ) ; return "en" ; } // the first language specified is the default language return applicationLanguages . get ( 0 ) ; }
Returns the default language as derived from PippoSettings .