Question
How does Zendesk Support detect a user's language?
Answer
Zendesk Support detects an end user's language in several ways:
- How Support sets a user's language when an agent creates the user
- How auto-detection sets a user's language
- What can I do if a user's language is incorrectly set?
If you support multiple languages, see Adding multiple languages to Zendesk Support.
How Support sets a user's language when an agent creates the user
When an admin or agent creates a user, Support sets the user's language to your account's default language. To change your default language, open Admin Center and go to the Localization page. Under the Localization tab, select your default language. For more information, see Adding multiple languages to Zendesk Support.
How auto-detection sets a user's language
Auto-detection applies only to users who do not yet exist in your Support account:
- Email: If an end user does not exist in your Support account before they submit a ticket, their language is automatically detected from the text in the body of their first email to your Support account. Later emails or tickets do not overwrite this, even if the user writes in another language.
- Help center: An unregistered end user selects a language in the help center menu and submits a request in that locale. When the user is created, their language matches the help center language used at submission.
-
Web Widget: The preferred language can be detected from the user's web browser preference. The Accept-Language header, which is sent through HTTP, contains the user's language preference. If that header is present, the widget can detect the language and set it in Support. You can override the browser preference in Web Widget settings. For more information, see Using Web Widget.
Note: Tickets from the contact form or the offline form in Web Widget (Classic) display your account's default language. - Support software development kits: If you use the latest version of the Support SDKs, the language for new unregistered end users matches their device locale. If you do not support the device locale, the user's language is set to your account's default language.
- Application programming interface: If the user is created through the API, the user's language is the default language of your Support instance. To set a specific language for the user, pass a locale in your API call.
- Social media: Language detection does not work for social media tickets. When an end user sends a ticket from a social media platform such as Facebook Messenger, the default account language is associated with the end-user profile.
- Triggers: Triggers can update a user's language in their profile with the action Requester: Language
- Messaging: The user's language is detected from the web browser setting only if that language is enabled in Support. Variant languages default to the main language, and main languages do not map to variant languages.
What can I do if a user's language is incorrect?
Support sets a user's language only when it adds a user, so the user's language can be wrong. Use one of the options below to fix it:
- Manually change the user's language. This changes one user at a time.
- Create a script with the Create or Update Many Users call in the API