Unexpected language change in API Response after updating to @forge/api 5.0.0

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      After updating the @forge/api dependency from version 4.3.0 to 5.0.0, REST API responses began returning text in Chinese instead of English.

      Steps to Reproduce

      1. Update to or use the @forge/api 5.0.0.
      2. Make a request to REST API endpoint. For example, call Get all screen tab fields using the asApp() method. This issue doesn't occur if the API is called using the asUser() method.
      3. Observe that the text in the response are in Chinese.

      Expected Results

      API responses should return text in English, as they did in version 4.3.0.

      Actual Results

      API responses return text in Chinese.

      Workaround

      Add the headers below to API calls, which should fix this translation issue.

      headers: {
                'X-Force-Accept-Language': 'true',
                'Accept-Language': 'en'
              }
      

            Assignee:
            Unassigned
            Reporter:
            Deepak Pandey
            Votes:
            18 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: