Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2316

Support for message catalogs for JS modules

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 5.4
    • None
    • tapestry-core

    Description

      Content that is rendered in the client from JavaScript modules is quite hard to internationalize.
      Either you can manually create a messages JSON object and pass it to the client via data attributes or the init function or you can add all the strings to the core message catalog and require that.
      The latter is not possible for component libraries though as they do not have a message catalog.
      The former is not possible for "utility" modules that do not have an associated Java class.
      This could be solved by creating a virtual message module for every JavaScript module that has a corresponding .properties file next to it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jkemnade Jochen Kemnade
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: