Search
Search
getActiveLocale
getActiveLocale
getActiveLocale
Get the currently active Locale.
const activeLocale = await framer.getActiveLocale()
Returns
Promise<Locale>
– The currently active Locale.
Caveats
In "localization" mode, the active locale is the locale selected in the Localizations panel.
In "canvas" mode, the active locale is the locale selected in the toolbar, or the default locale.