Moved date/time formatters to utils class

This commit is contained in:
Erik C. Thauvin 2023-03-21 07:21:24 -07:00
parent 05c1bd3f2a
commit 5ea5727a4a
15 changed files with 66 additions and 48 deletions

View file

@ -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);
}
}