이러한 문제를 해결하기 위해서는 언어 매핑을 설명하는 앱 내 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 Org만 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.