Hey all, we are having some issues with

Hey all, we are having some issues with French translations of the Embed. When the browser is changed to French, we do not see any of the TS menus change to French as expected. Based on the user docs, I don't believe we should need to do anything special for translations to occur. Can anyone provide some troubleshooting, and assistance? The embed snippet is in this thread.
18 Replies
James Lunan
James LunanOP5mo ago
import { PageView, Spinner } from '@newstore/nom-core-components' import { Page } from '@thoughtspot/visual-embed-sdk' import { AppEmbed } from '@thoughtspot/visual-embed-sdk/react' import { useThoughtSpotAuth } from '../hooks/useThoughtSpotAuth' import '../app.css' export default (): JSX.Element => { const isAuthenticated = useThoughtSpotAuth() return ( <PageView.Root className='relative !p-0 h-full'> {isAuthenticated ? <ThoughtspotIframe className='h-screen' /> : ( <div className='flex justify-center items-center h-screen'> <Spinner /> </div> )} </PageView.Root> ) } const ThoughtspotIframe = ({ className = '' }): JSX.Element => { return ( <AppEmbed disableProfileAndHelp showPrimaryNavbar pageId={Page.Home} className={className} hideObjects={[ 'e234d5f6-3145-42ac-8bac-3b61335113ac', // Template - Associate App Sales (Original) '6d1d8a4c-23a1-4a0c-bd29-a4be5d1bee65' // Template - Associate App Sales (Timely) ]} /> ) }
utsav.kapoor
utsav.kapoor5mo ago
@James Lunan - Can you please go throught this ? https://developers.thoughtspot.com/docs/set-locale#_locale_settings_in_the_ui Is the only issue in French ? Can you also put a screenshot ?
Customize locale
You can change the locale settings of your embedded app to display the UI elements in your preferred language
James Lunan
James LunanOP5mo ago
Thanks for responding. We do not allow embed users to see their profile and change the local. Looking at the top of the page you linked, I was under the impression that the browser locale will be honored. Is that incorrect?
James Lunan
James LunanOP5mo ago
We only support French and English. Here is a screenshot showing the base app in French and the TS embed in English
No description
utsav.kapoor
utsav.kapoor5mo ago
@James Lunan - Can you check the Network and see if you are seeing 404 for strings json file ? We do honor browser locale. In some cases broswer might be giving us a dilect which we do not support, in those cases we default back to english. For french, we support the following locale map: 1. fr-CA 2. fr-FR
James Lunan
James LunanOP5mo ago
Browser headers show I am sending "fr-CA"
No description
James Lunan
James LunanOP5mo ago
The only 404's don't seem to be an issue:
James Lunan
James LunanOP5mo ago
No description
utsav.kapoor
utsav.kapoor5mo ago
@James Lunan - Can you send me a HAR file for this ?
James Lunan
James LunanOP5mo ago
Yea, absolutely. I'd prefer not to send it in public (sessions and what-not). Should I open a support case?
utsav.kapoor
utsav.kapoor5mo ago
You can DM me or send it over the email
James Lunan
James LunanOP5mo ago
utsav.kapoor@thoughtspot? sent
utsav.kapoor
utsav.kapoor5mo ago
Will reply in an hour
James Lunan
James LunanOP5mo ago
Thank you
utsav.kapoor
utsav.kapoor5mo ago
@James Lunan - I see the problem now. Can you ask this user to load TS Cluster directly and see what locale is loading ?
James Lunan
James LunanOP5mo ago
I'm the user, so yes The same thing. It does not translate
utsav.kapoor
utsav.kapoor5mo ago
@James Lunan - This is a bug on TS Side where we have stopped respecting browser locale. We have discussed why it is happening and will be providing a fix. Can you please open a ticket so relevant team can start taking a look. In the meantime, as a workaround: Thoughtspot accepts locale. Can you please pass the locale to the SDK ? That way we can unblock you while we work on the fix
James Lunan
James LunanOP5mo ago
Thank you. Case opened: 00374032

Did you find this page helpful?