getActiveLocale

getActiveLocale

Get the currently active locale.

const activeLocale = await framer.getActiveLocale()
  • 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.

  • Otherwise, the active locale is null.

Returns