Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-106758

locale keys for translations in Headless APIs should use dashes instead of underscores

    Details

      Description

      Using the X-Accept-All-Languages header, the locale keys are returned in this format:

       
                "value_i18n": {
                  "en_US": 

      {               "data": "<p>whatever</p>"             }

      ,
                  "es_ES": 

      {               "data": "<p>en español</p>"             }

                }
      it should be:
       
                "value_i18n": {
                  "en-US": 

      {               "data": "<p>whatever</p>"             }

      ,
                  "es-ES": 

      {               "data": "<p>en español</p>"             }

                }

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            pablo.agulla Pablo Agulla
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 36 weeks, 1 day ago

                Packages

                Version Package
                7.1.10 DXP FP17
                7.1.10.4 SP4
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.0 CE GA1
                7.3.10 DXP GA1
                Master