Skip to content

getLocale

Allows you to retrieve the current locale.

1
---
2
import { getLocale } from "i18n:astro"
3
4
const locale = getLocale()
5
---