Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17157

Add a translations REST endpoint

    XMLWordPrintable

    Details

      Description

      Applications relying on REST endpoints would benefit from translations provided to the nuxeo.war messages files.

      Adapting this behaviour to REST applications would require to avoid sending all translation keys to the client, if only a small subset is needed.

      This could be done in several steps:

      • allow to declare messages to another bundle than the one named "messages"
      • still contribute these messages to the main "messages" one
      • add a rest endpoint to serve a json map of translation labels, for a given bundle
      • add javascript helpers to perform parameters replacement on these labels

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: