[null,null,["最后更新时间 (UTC):2025-07-24。"],[[["\u003cp\u003eCustomize your Actions for different languages and locales to enhance user experiences.\u003c/p\u003e\n"],["\u003cp\u003eActions can be restricted based on the user's region or physical location.\u003c/p\u003e\n"],["\u003cp\u003eAccess the supported languages and locales, along with their corresponding TTS voices, through provided documentation.\u003c/p\u003e\n"],["\u003cp\u003ePublish localized Actions with language-specific information, location targeting, and TTS voice customization using the Actions console.\u003c/p\u003e\n"],["\u003cp\u003eLeverage Dialogflow, templates, and fulfillment to build and manage localized responses and interactions for your Actions.\u003c/p\u003e\n"]]],[],null,["# Build localized actions (Dialogflow)\n\nYou can localize your Actions for the Google Assistant to provide customized\nexperiences for different languages and locales that users can set on their\ndevices. In addition, you can restrict access to your Actions based on regions,\nor the physical location of your users.\n\nBefore moving on, it's useful to know a few terms to understand how you can cater\nyour Actions to different users:\n\n- **Language** - An agreed upon, spoken and written mode of communication\n- **Region** - A defined physical area that's usually associated with a country\n- **Locale** - The combination of a language and region\n\nNow that you understand some basic terms, here's how you can cater your Actions for\ndifferent languages, regions, and locales in the Actions Console, Dialogflow, or\nfulfillment.\n\nSupported languages and locales\n-------------------------------\n\nSee the [languages and locales](/assistant/console/languages-locales) document for information on which locales your\nAction projects can support and the corresponding TTS voices for these locales. Users must\nset their Assistant locale setting to a supported locale to use your Actions.\n\nPublishing\n----------\n\nThe [Actions console](https://console.actions.google.com)\nlets you customize the following information when publishing\nyour Actions project:\n\n- **Language- and locale-specific information**: You can specify different Action information details (such as name and description) at the language and locale level for each of your projects.\n- **Location targeting**: You can specify the regions where your Action is available. By default, your Action supports all regions, as long as your users have set their Assistant locale to one your Action supports.\n- **TTS voice customization** : By default, your Action automatically uses a set of [TTS voices](/assistant/console/languages-locales) that corresponds to the user's Assistant locale. You can override this behavior and choose a specific TTS voice that doesn't change based on the user's Assistant locale.\n\n| **Note:** Any changes to locale-specific settings in the Actions Console requires resubmitting your Actions project for approval.\n\nSee [Publish localized Actions](/assistant/console/publish-localized) for more\ninformation on how to localize Action distribution.\n\nDialogflow agents\n-----------------\n\nDialogflow lets you create agents that support multiple languages and locales.\nFor every language or locale, you can specify customizations such as different\n**User says** phrases and **Responses**.\n\nSee [Dialogflow agents](/assistant/df-asdk/localization/agents)\nfor more information on how to create localized agents.\n\nLocalized templates\n-------------------\n\nTemplate Actions can be built to support a number of different languages, or\nmultiple languages in the same Action by uploading a localized Google Sheet for\neach new language.\n\nDifferent templates are available in different languages and locales. See the [Templates](/assistant/templates)\ndocumentation for more information about supported languages and locales for each template.\n\nFulfillment\n-----------\n\nWhen building your fulfillment, you can provide:\n\n- **Language- and locale-specific responses** : You receive the user's Assistant locale setting in each request to your fulfillment. You can use this string (for example, `en-GB`) to figure out how to return different responses based on a user's language or locale.\n- **Region-specific responses** - You can [request permission to access the\n physical location of the device from the user](/assistant/df-asdk/helpers#user_information). With this information you can further customize responses for regions.\n\nSee [Fulfillment](/assistant/df-asdk/localization/fulfillment)\nfor more information on how to localize responses.\n\nTesting\n-------\n\nDuring development, you can test your localized Action with hardware devices or\nthe Actions simulator with the following features:\n\n- Language simulation lets you set the locale of a device to test out locale-specific responses and logic in your Action.\n- Location simulation lets you set the physical location of the device to test out location targeting and any region-specific responses in fulfillment.\n\nSee the [Actions simulator documentation](/assistant/console/simulator)\nfor more information on how to test localized Actions with the Actions\nsimulator."]]