📆 Don't miss our Sanity Showcase virtual meetup on March 20th!
@public
function

useCurrentLocale()

Returns the currently active locale

Import

import {useCurrentLocale} from 'sanity'

Signature

function useCurrentLocale(): Locale_2
function useCurrentLocale(): Locale_2

Returns

Locale_2
Locale_2
sanity@3.79.0