この問題を解決するには、言語マッピングを説明するアプリケーション内 SDK の v1.6.1 を使用する必要があります。
デバイスの言語と地域を Salesforce の言語コードに一致させるためのマッピングを作成します。
以下はリリースノートに記載されている例です。
この辞書を UIConfiguration 初期化子の remoteLocaleMap パラメーターに指定すると、リモート
設定サービスの応答が次のように翻訳されます。
1. デバイスの地域情報が英語 (カナダ) に設定されている場合、取得される言語は英語になります。
2. デバイスの地域情報がフランス語 (フランス) に設定されている場合、取得される言語はフランス語になります。
3. その他すべての地域情報はドイツ語になります。
デフォルトのキー値はオプションです。キー値が指定されていない場合はデバイスの地域情報が使用され、Salesforce が対応していない場合、
結果が正しく翻訳されません。
デフォルトパラメーターはオプションです。省略すると、デバイスの地域情報にフォールバックされます。
let localeMap = ["en-ca": "en",
"fr-fr": "fr",
"default": "de"]
let myConfig = UIConfiguration(serviceAPI: "<Your Service API URL>",
organizationId: "<Your Organization Id>",
developerName: "<Your Developer Name>",
remoteLocaleMap: localeMap,
conversationId: "<Your Conversation Id>")
デバイスから送信された地域情報を確認します。
let langStr = Locale.current.languageCode
次に、Salesforce のサポート言語へのマッピングを作成します。
この例では英語 (カナダ) が表示されていますが、たとえばスペインでは、SDK はスペインの地域情報であるスペイン語と共に言語コード es-ES が送信される場合があります。Salesforce はこれが何になるかを認識していません。Salesforce 組織は es のみを理解します。そのため、顧客はマッピングを作成する必要があります。
let localeMap = ["es-ES": "es",
"default": "es"]
003876263

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.