The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
Specifies the language of the labels returned.
describeSObject(), describeSObjects(), describeDataCategoryGroups(), describeDataCategoryGroupStructures()
Type: string
Description: Specifies the language of the labels returned. The value must be a valid user locale (language and country), such as de_DE or en_GB. For more information on locales, see the Language field on the CategoryNodeLocalization object.
This sample sets the LocaleOptions header to the locale of the logged-in user, and then performs a describe on Account.
1public void localeOptionsExample() {
2 try {
3 connection.setLocaleOptions("en_US");
4 connection.describeSObject("Account");
5 } catch (ConnectionException ce) {
6 ce.printStackTrace();
7 }
8}