diff --git a/src/main/resources/props/sample.props.template b/src/main/resources/props/sample.props.template index b3c8ab8a..e8c1aeb6 100644 --- a/src/main/resources/props/sample.props.template +++ b/src/main/resources/props/sample.props.template @@ -178,4 +178,8 @@ dev.port=8082 # oauth2.jws_alg=ES256 # oauth2.jwk_private_key= # Example of the above value: {"kty":"EC","d":"mQ6yDqYB84z027rZoKnr9JIloX7QqyM0QDScHmWIb-s","use":"sig","crv":"P-256","kid":"c14e9b43-d69b-431e-a90b-eac0dd2e59f8","x":"mNBOFk1w7EYZ194LPCKlNn-NbflCkdxPHGh3VmCj13U","y":"4oXertw5ECdy_ApfG_LG5n92Q9-QlPr9Bt3eM_Z9DeI","alg":"ES256"} -# ------------------------------ Identity Provider OAuth2 Props end -------------------------- \ No newline at end of file +# ------------------------------ Identity Provider OAuth2 Props end -------------------------- + + +# Please note that depricated name ot this props is: language_tag +default_locale = en_GB \ No newline at end of file diff --git a/src/main/scala/code/util/I18NUtil.scala b/src/main/scala/code/util/I18NUtil.scala index 649dd130..84ac20c8 100644 --- a/src/main/scala/code/util/I18NUtil.scala +++ b/src/main/scala/code/util/I18NUtil.scala @@ -17,7 +17,7 @@ object I18NUtil { } def getLocale(): Locale = Locale.getAvailableLocales().toList.filter { l => - l.toLanguageTag == Props.get("language_tag", "en-GB") + l.toLanguageTag == Props.get("default_locale", "en-GB") }.headOption.getOrElse(Locale.ENGLISH) def currentLocale() : Locale = {