bugfix/Fix the function getWebUiPropsValue regarding translation

This commit is contained in:
Marko Milić 2023-03-17 13:15:39 +01:00
parent 38b06dd19b
commit 2186ed97b6

View File

@ -49,7 +49,7 @@ object MappedWebUiPropsProvider extends WebUiPropsProvider {
}
// In case there is a translation we must use it
val language = I18NUtil.currentLocale().getLanguage().toLowerCase()
val language = I18NUtil.currentLocale().toString()
val webUiPropsPropertyName = s"${brandSpecificPropertyName}_${language}"
val translatedAndOrBrandPropertyName = WebUiProps.find(By(WebUiProps.Name, webUiPropsPropertyName)).isDefined match {
case true => webUiPropsPropertyName