Framer
Solutions
Platform
Community
Resources
Enterprise
Pricing
Log in
Sign up
Copy logo SVG
Brand guidelines
Search...
Get Started
Overview
Compare
FAQ
Plugins
Introduction
Quick Start
Publishing
Changelog
Reference
Guides
Server API
Fetch
Examples
Components
Asset Sharing
Auto-Sizing
Property Controls
Overrides
Developers
Search
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.
null
Promise<Locale | null>
getDefaultLocale
getLocalizationGroups