Details
-
New Feature
-
Resolution: Fixed
-
Major
-
12.10.5, 13.2-rc-1
-
None
-
Unit, Integration
-
Medium
-
Pull Request accepted
-
Description
The main goal is to allow JavaScript code use localized messages without having to rely on Velocity code. The JavaScript module that needs to use some translation keys would fetch them using an URL like this:
/xwiki/rest/wikis/{wikiName}/localization/translations?locale=en&prefix=livedata.&key=one&key=two&...
The locale and prefix parameters should be optional. The client side should provide the list of translations keys it needs to use. The output will be a "list" of (key, value) associations, where the value is the raw translation source. This means the client side will be responsible for applying (interpolating) translation parameters.
Attachments
Issue Links
- blocks
-
XWIKI-18571 The tooltips for the date time picker are not localized
- Open
-
XWIKI-18535 The date time picker is not localized
- Closed
-
XWIKI-17428 Live Data UI is not localized
- Closed
-
XWIKI-18973 Simplify the way JavaScript code loads translation messages
- Closed
- relates to
-
XWIKI-18604 Expose the Icon Theme through the REST API
- Closed