Google Business Messages 功能將於 2024 年 7 月 31 日終止服務。請按
這裡瞭解詳情。
語言代碼
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
語言代碼是根據地區設定的語言設定,可決定要顯示哪些對話設定和字串。
使用者會透過裝置上的設定指定語言代碼。他們可以隨時變更這項設定,包括在與 Business Messaging 服務專員對話時。
商家訊息服務的服務專員或地點也可以指定支援哪些語言代碼,並設定通常用於通訊的預設語言代碼。
Business Messages 會比較使用者的語言代碼和服務專員的語言代碼,以找出最相符的語言代碼,稱為「解析語言代碼」。Business Messages 會使用已解析的語言代碼,選取要顯示的對話設定和字串。為維持一致的使用者體驗,建議你讓服務專員以已解析的語言代碼進行通訊。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eLocales are location-based language settings that users set on their devices to determine conversational preferences.\u003c/p\u003e\n"],["\u003cp\u003eBusiness Messages agents can specify supported locales and a default communication language.\u003c/p\u003e\n"],["\u003cp\u003eA resolved locale, determined by comparing user and agent preferences, dictates displayed conversational elements.\u003c/p\u003e\n"],["\u003cp\u003eAgents should communicate using the resolved locale for a consistent and seamless user experience.\u003c/p\u003e\n"]]],[],null,["# Locale\n\nA locale is a location-based language setting that determines which\nconversational settings and strings to display.\n\nThe user specifies their locale using settings on their device. They may change\nthis setting whenever they wish, including during a conversation with a Business\nMessages agent.\n\nA Business Messages agent or location can also specify which locales they\nsupport and set a default locale that they usually communicate in.\n\nBusiness Messages compares the user's locale and the agent's locale to determine\nthe best match, called the *resolved locale*. Business Messages uses the\nresolved locale to select which conversational settings and strings to display.\nIt's best practice for agents to communicate in the resolved locale to maintain\na consistent user experience.\n\nRelated guides\n--------------\n\n- [Localization and locales](/business-communications/business-messages/guides/how-to/agents/localization)\n- [Begin the conversation](/business-communications/business-messages/guides/how-to/agents/begin-conversation)"]]