Issue
Parameterized property values, a combination of dynamic and static values such as SLA status message "in hours" (“Due in 2 hours” or “2 hours ago”) are not localized.
Symptoms and Impact
Dynamic Time and Date expressions like “ago” and “in x hours" (“Due in 2 hours”) are not localized. .
Steps to reproduce
- Configure an SLA on a case type, stage, flow, or assignment, or configure a wait step on a case type.
- Process a case until it reaches the defined scope of the SLA.
- View the SLA step.
- The relative time element "12 hours ago" is not localized.
Another variation of the same symptom:
Root Cause
This is a product functionality gap.
SLADeadLine text is a parameter/dynamic strings-based text.
In the below image the text is generated with "In {no_of_days} days
" where no_of_days
can vary from 1 to many.
The library "dayjs" has a built-in support for translating the text "in 2 hours" or "in 3 days".
There is currently no way to dynamically import locales which would allow the use of built-in support of dayjs to localize.
For reference see Changing locales locally.
Solution
An enhancement request has been logged but has not yet been assigned to a specific release. This Known Issue document will be updated with release details when the enhancement for this issue is available.