How the language is chosen
Sleekplan only picks a language the workspace offers. A source that names any other language is skipped, and the next one counts. In the widget- The language set with
$sleek.setLanguage()on the current page load. - The signed-in user’s language, stored on their account.
- The browser’s languages, in the browser’s order, when the workspace has Detect the browser language on.
- The workspace’s default language.
- The signed-in user’s language, stored on their account.
- The language in the URL path, such as
/de/feedback. - The language the visitor picked in the portal’s language menu.
- The browser’s
Accept-Languageheader, when Detect the browser language is on. - The workspace’s default language.
setLanguage(), from the REST API, from the user’s own pick in their account settings, or from an admin on the customer’s page. A user who has none yet gets the language they were using the board in when they sign in or sign up.
Language codes
Every input that takes a language accepts the codes below and the usual tags and locales, in any case and with- or _: de-AT and de_DE mean German, pt and pt-PT mean Portuguese (Brazil), zh-Hant, zh-TW and zh-HK mean Chinese (traditional), zh, zh-Hans and zh-CN mean Chinese (simplified), cs means Czech, and nb and nn mean Norwegian. A value that names none of the 24 languages is ignored.
Stored values and the REST API always use the code. The portal’s URL uses the URL segment, which differs only for Czech and Chinese (traditional).
Arabic is shown right to left, in the widget, on the portal and in emails.
Pass the language with single sign-on
If your users sign in through single sign-on, add alanguage claim to the token. Sleekplan stores it on the user at every sign-in, replacing the language stored before, so your product stays the source of truth.
- Put
languageinside the token. Alanguagepassed next to the token, outside it, is ignored. - Leave the claim out to keep the stored language as it is. An empty or
nullclaim removes it. - The claim counts at sign-in, and the widget signs a user in when it has no session yet. A language change in your product shows up at the user’s next sign-in. To switch at once, also call
$sleek.setLanguage(). - A user who picks another language in their Sleekplan account settings keeps it until their next SSO sign-in.
- The same claim works for the portal and the iframe when you pass the token with
?sso=.
Switch the language at runtime
$sleek.setLanguage(code) sets the widget’s language for the current page load. Use it to keep the widget in step with your product’s own language setting.
One of the 24 languages, as a code or a tag (see Language codes).
true when the value names one of the 24 languages. false otherwise, and then nothing changes.- Before and after opening. Called before the widget is opened, the language is applied as the widget loads, so its first screen is already in it. While the widget is open it switches in place: lists and the open post load again, and text the visitor has typed stays.
- Per page load. The SDK keeps the value in memory only. Call it on every page load, or let the stored language take over.
- Saved for signed-in users. For a signed-in user, the widget also stores the language on their account, so the portal and their emails follow it.
- Only languages the workspace offers are shown. For any other language the widget stays in the language it would show otherwise. A signed-in user’s account still stores it, and it applies as soon as the workspace adds that language.
- The launcher and popups follow. The launcher’s label switches to the workspace’s text for that language, and popups that an admin limited to some languages use it too.
- Widget only. The portal and the iframe take their language from the URL and the signed-in user, never from this method.
Pass the language without single sign-on
$sleek.setUser() and window.SLEEK_USER take a language field. Without a token, it is stored when setUser() signs the user in on its own: on a public board that asks for no email confirmation and doesn’t force single sign-on. With a token, put the language in the token instead.
Choose the language in the iframe or on the portal
The first segment of the path picks the language. The default language has no segment.https://feedback.yourcompany.com/fr/feedback/48121.
- A segment of a language the workspace doesn’t offer redirects to the path without it (302), and the default language’s own segment redirects there too (301).
- Without a segment, a visitor who picked a language in the menu, or whose browser asks for one the workspace offers, is redirected to that language.
- A signed-in user is moved to their own language, whatever the path says.
The iframe runs on a third-party domain inside your page. A browser that blocks third-party cookies forgets a choice made in the language menu at the next load. The path you set and the browser’s language still work.
Read and write it over the REST API
End-user objects carrydata_language: the stored code, or null when the user has none. Create an end-user and Update an end-user accept it:
de-AT is stored as its code, a value that names no language is ignored, and null or an empty string removes the stored language. The user.create and user.update webhook payloads carry data_language too.
The REST API, webhooks and the MCP server always return the original text of posts, comments and changelog entries, never a translation.
Single sign-on
Generate the token that carries the
language claim.User setup
Identify users with
$sleek.setUser().Embed in an iframe
Embed the portal in a page or a mobile webview.
Languages in the Help Center
How admins add languages and edit translations.
