Skip to content

Commit

Permalink
MID-7442 localization service, polystring translation improvement - n…
Browse files Browse the repository at this point in the history
…ow key as default translation (previous was null)
  • Loading branch information
1azyman committed Feb 21, 2022
1 parent 29f703c commit fcb9e8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ private String translate(PolyStringTranslationType translation, Locale locale) {
String result;
List<PolyStringTranslationArgumentType> arguments = translation.getArgument();
if (arguments == null) {
result = translate(key, null, locale, null);
result = translate(key, null, locale, key);
} else {
result = translate(key, arguments.toArray(), locale, null);
result = translate(key, arguments.toArray(), locale, key);
}
if (result != null) {
return result;
Expand Down

0 comments on commit fcb9e8a

Please sign in to comment.