-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: [DO NOT USE] Forge - Public REST API Coverage
-
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
- Update to or use the @forge/api 5.0.0.
- 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.
- 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'
}
- mentioned in
-
Page Loading...