---
title: "Locale"
description: "This example shows how to define a locale composable to handle the application's locale, both server and client side."
canonical_url: "https://nuxt.com/docs/4.x/examples/advanced/locale"
---
# Locale

> This example shows how to define a locale composable to handle the application's locale, both server and client side.

<code-explorer default-value="composables/locale.ts" path="examples/advanced/locale">



</code-explorer>

<browser src="https://locale.example.nuxt.space">



</browser>

---

- [Source](https://github.com/nuxt/examples/tree/main/examples/advanced/locale)


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
