현지화된 텍스트 지정
Actions Center Appointments 엔드 투 엔드 통합에서 현지화를 지원하는 것이 좋습니다. 사용자의 언어 설정에 따라 현지화된 환경이 표시됩니다. 현지화가 설정되지 않은 경우 사용자에게 기본 텍스트가 표시될 수 있습니다. 서비스 이름, 설명 등 통합의 여러 입력란에 현지화된 텍스트를 제공할 수 있습니다. Text
메시지를 사용하여 현지화할 수 있는 필드의 전체 목록은 피드 사양을 참고하세요.
현지화 구현
// A possibly-localized text payload. Some Text fields may contain marked-up
// content.
message Text {
// Required. Text value in an unknown locale, which will be displayed if
// `localized_value` for the user locale is empty or missing. The locale for
// this value may depend on the partner or service provider, and it should not
// be assumed to be any specific language.
string value = 1;
// Per-locale text values. Required.
repeated LocalizedString localized_value = 2;
}
Text
메시지를 사용하는 피드의 모든 필드는 지원되는 각 언어에 localized_value
를 제공하여 현지화할 수 있습니다.
value
및 localized_value
를 모두 지정해야 합니다.
- 사용자의 언어 브라우저 설정에 설정된 사용자 언어를 기반으로
localized_value
가 표시됩니다.
- 사용자의 언어가 지원되는 현지화 목록에 없으면 이 값이 기본값으로 사용됩니다.
- 값을 정의하지 않았고 사용자 언어가 지원되는 언어 목록에 없는 경우 localized_value에 있는 첫 번째 값이 사용됩니다. 이 대체 방법을 사용할 수 있지만 기본값을 명시적으로 지정하는 것이 좋습니다.
시스템에서 현지화를 지원하지 않는 경우 localized_value
를 설정하고 지원하는 유일한 언어로 locale
를 설정하세요. 기본값으로 사용될 수 있는 value
도 설정합니다.
서비스 피드 스니펫의 예
"localized_service_name": {
"value": "Chocolate Tasting",
"localized_value": [
{
"locale": "en",
"value": "Chocolate Tasting"
},
{
"locale": "fr",
"value": "Dégustation de chocolats"
}
]
}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-26(UTC)
[null,null,["최종 업데이트: 2024-11-26(UTC)"],[[["Localization is highly recommended for the Actions Center Appointments End-to-End integration to provide users with a personalized experience based on their language settings."],["You can provide localized text for various fields like service names and descriptions using the `Text` message format, ensuring both a default `value` and locale-specific `localized_value` are provided."],["If localization is not supported, set `localized_value` and `locale` with your supported language and `value` as a default, promoting a consistent user experience."],["The system prioritizes displaying the `localized_value` based on the user's browser language settings, using the default `value` if the locale isn't supported or if `localized_value` is missing for the given locale."]]],["Localization is recommended in the Actions Center Appointments integration, allowing users to see content in their preferred language. Fields using the `Text` message can be localized by providing a `localized_value` for each supported language. Both `value` (default text) and `localized_value` (locale-specific text) are required. The `localized_value` displays based on the user's locale; `value` acts as a fallback. If localization is unsupported, a single language can be set for both `localized_value` and `value`.\n"]]