Set the language dashboards open in by default.
Which language is used
When a dashboard opens, Luzmo takes the first of these that applies:
The language property on the embed component, but only if the dashboard was actually built in that language. If it wasn't, Luzmo skips this step.
The locale on the share link ( Share ).
The viewer's own locale ( Users ), again only if the dashboard was actually built in that language. Viewers who don't have a locale of their own fall back to the organization default ( defaultLocale ).
The first language the dashboard was built in.
If you set a locale on a share link that the dashboard was never translated into, each title and label falls back on its own: first to the viewer's language, and then to the first translation the dashboard has.
Roles
Users : pass a user id. Dashboards and datasets open in this language for that user, and new dashboards they create start in this language too.
defaultLocale : pass an organization id. Users who don't have a locale of their own see dashboards in this language.
Share : pass a share id. Everyone who opens that private link sees the dashboard in this language.
Embed tokens
You don't associate a locale with an embed token. Set the language on the component instead. Use the language property on the dashboard component , the locale option on the chart component , or the customization options of the chat component.
For dashboards, the component language is only used if the dashboard was built in that language. Charts follow the same idea with options.locale . The IQ chat component only looks at the locale in its options and otherwise uses English.
npm install @luzmo/nodejs-sdk{
"id": "fr",
"description": "français",
"created_at": "2014-12-14T23:00:00.000Z",
"updated_at": "2014-12-14T23:00:00.000Z"
}