Moved date/time formatters to utils class
This commit is contained in:
parent
05c1bd3f2a
commit
5ea5727a4a
15 changed files with 66 additions and 48 deletions
|
@ -42,6 +42,9 @@ public class Uncapitalize implements ValueRenderer {
|
|||
@Override
|
||||
public String render(Template template, String valueId, String differentiator) {
|
||||
var value = template.getValueOrAttribute(differentiator);
|
||||
if (value == null || value.isBlank()) {
|
||||
return value;
|
||||
}
|
||||
return value.substring(0, 1).toLowerCase(Localization.getLocale()) + value.substring(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue