Understanding how a user's language is set and detected

<body>
<div class="article-banners">
<div id="docs-wmp-link">
<a href="https://support.zendesk.com/hc/en-us/articles/5411234991258-plan" rel="noopener" target="_blank">What's my plan?</a>
</div>

<div class="article-banner" id="suite_gpee">
<table>
<tbody>
<tr>
<td>
<strong>All Suites</strong>
</td>
<td>Growth, Professional, Enterprise, or Enterprise Plus</td>
</tr>
</tbody>
</table>
</div>

<div class="article-banner" id="support_pe">
<table>
<tbody>
<tr>
<td>
<strong>Support</strong>
</td>
<td>Professional or Enterprise</td>
</tr>
</tbody>
</table>
</div>

</div>
<div id="docs-ai-summary">
<p id="docs-ai-summary-toggle">Verified AI summary <span id="up-triangle">◀</span><span id="down-triangle">▼</span></p>
<p id="docs-ai-summary-content">Set a user's language by default or let them choose it in their profile. Detect language for unregistered or logged-out users via email, Help Center, or Web Widget. Agents can update language settings manually or through business rules. Use language settings in business rules to manage ticket routing and dynamic content effectively.</p>
</div>

<div class="body">

<p class="p">A user's language is set as the account's default language when the user is created, but users
can set their preferred language in their profile. If a user does not have
an account or is not logged in, their language can be detected in several
ways.</p>
<p class="p">This article contains the following sections:</p>
<div class="p">
<ul class="ul" id="topic-1__ul_2gf_zbj_1y">
<li class="li"><a class="xref" href="#topic_aom_yxz_ye">How a user's
language is set</a></li>
<li class="li"><a class="xref" href="#topic_gdx_55b_n3c">How a user's
language is detected</a></li>
</ul>
</div>
<div class="p">Related article:<ul class="ul" id="topic-1__ul_lzh_gwc_43c">
<li class="li"><a class="xref" href="https://support.zendesk.com/hc/en-us/articles/10395046998170" target="_blank">Using an end user's
language in business rules</a></li>
</ul>
</div>
</div>
<div aria-labelledby="ariaid-title2" class="topic nested1" id="topic_tmu_gno_ze">
<h2 class="title topictitle2" id="ariaid-title2">How a user's language is set</h2>
<div class="body">
<p class="p">When a user is created in Zendesk, the user's language is set to <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408887059866" target="_blank">the default language</a>
for your account. </p>
<p class="p">A user's preferred language can be set in the following ways:</p>
<div class="p">
<ul class="ul" id="topic_tmu_gno_ze__ul_lmb_yop_ze">
<li class="li">Agents and end users can set their own language in their
profile. See <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408835022490" target="_blank">Viewing and editing
your user profile</a>.</li>
<li class="li">Agents with user management permission can set a user's
language in the user's profile. See <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408822762650" target="_blank">Viewing an end
user's profile</a>.</li>
<li class="li">A business rule can set a user's language using the
<em class="ph i">Set requester's language</em> action. See <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/10395046998170#topic_elc_xfw_b" target="_blank">Setting a user's
language preference with an automation or
trigger</a>.</li>
</ul>
</div>
<p class="p"><img class="image img-screenshot" id="topic_tmu_gno_ze__image_gkr_wyv_bf" src="https://zen-marketing-documentation.s3.amazonaws.com/docs/en/user_lang_select.png" width="300"></p>
<p class="p">For end users, the list of available languages is the same as the <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408888770714" target="_blank">languages you selected to
support</a>. If the end user's language is not supported,
they can't select it. Agents always see the <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408821324826" target="_blank">complete list of supported
languages</a> for the Support UI, regardless of your
account's language settings.</p>
<p class="p">If language is present, this setting can be used in your business rules
to, for example, determine which dynamic content language variant is
used or to route tickets to specific groups or agents. See <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/10395046998170" target="_blank">Using an end user’s language
in business rules</a>.</p>
</div>
</div>
<div aria-labelledby="ariaid-title3" class="topic nested1" id="topic_gdx_55b_n3c">
<h2 class="title topictitle2" id="ariaid-title3">How a user's language is detected</h2>
<div class="body">
<p class="p">For unregistered end users (those who do not yet have an account), or
registered users who are not logged in, the language can be detected
in several ways:</p>
<div class="p">
<ul class="ul" id="topic_gdx_55b_n3c__ul_otq_gqt_lx">
<li class="li">
<strong class="ph b">Email</strong>: The language used in an end user's email
support request is automatically detected. See <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408882016666" target="_blank">Detecting an end user's
language from an email message</a>. </li>
<li class="li">
<strong class="ph b">Help center</strong> (if you have <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4408827609882" target="_blank">enabled your languages in your
help center</a>): When an unregistered end user
has selected a language in the help center, the
support request submit form, like the rest of the
help center, is set to that language. Then, when the
end user submits a support request, the language is
identified, and their profile is flagged with the
language.</li>
<li class="li">
<strong class="ph b">Web Widget</strong>: Zendesk can detect a user's preferred
language from their web browser's preference setting.
The accept-language header in the HTTP request contains information about the user's language
preference. If that is present, the language can be
detected. </li>
</ul>
The auto-detection mechanism is performed on unregistered users
only. If the user profile language was previously set, it can be
updated manually by an agent, the end user, or automatically with an
API call. If the user is created through the Zendesk Support agent
interface or an API call (which doesn't set user language), the
default system language will be used.</div>
<p class="p">Ticket attributes from system fields are automatically translated into
the detected language. If you want the attributes to be
displayed in your default language, you can use dynamic content.
</p>
</div>
</div>
<script id="ai-summary-script">
//<![CDATA[
const ai_summary_style = document.createElement('style');
ai_summary_style.innerHTML = `#styled-article-body{padding:0 0 0}#article-body #docs-ai-summary{background-color:#f3f3f3;border:1px solid #d3d3d3;padding:10px 10px 6px;margin-bottom:16px}#article-body #docs-ai-summary #docs-ai-summary-toggle{font-size:.9em;font-weight:700;margin-bottom:4px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}#article-body #docs-ai-summary #docs-ai-summary-toggle #up-triangle{margin-left:auto;padding-right:10px;display:none}#article-body #docs-ai-summary #docs-ai-summary-toggle #down-triangle{margin-left:auto;padding-right:10px}#article-body #docs-ai-summary #docs-ai-summary-content{font-size:.9em;padding-left:25px;padding-right:25px;margin-bottom:12px}`;
document.head.appendChild(ai_summary_style);

const toggleAISummary = () => {
const summary = document.getElementById("docs-ai-summary-content");
const upTriangle = document.getElementById("up-triangle");
const downTriangle = document.getElementById("down-triangle");
if (summary.style.display === "none") {
summary.style.display = "block";
upTriangle.style.display = "none";
downTriangle.style.display = "inline";
} else {
summary.style.display = "none";
upTriangle.style.display = "inline";
downTriangle.style.display = "none";
}
};

document.getElementById("docs-ai-summary-toggle").addEventListener("click", toggleAISummary);
//]]>
</script>
</body>