2022-03-30 15:59:28 +00:00
|
|
|
---
|
2022-11-08 17:03:18 +00:00
|
|
|
toc: false
|
2022-03-30 15:59:28 +00:00
|
|
|
---
|
|
|
|
|
2022-11-08 17:03:18 +00:00
|
|
|
# Locale
|
|
|
|
|
|
|
|
This example shows how to define a locale composable to handle the application's locale, both server and client side.
|
|
|
|
|
2022-03-30 15:59:28 +00:00
|
|
|
::alert{type=info icon=💡}
|
2022-04-16 13:53:36 +00:00
|
|
|
You can right-click to "View Page Source" and see that Nuxt renders the correct date in SSR based on the visitor's locale.
|
2022-03-30 15:59:28 +00:00
|
|
|
::
|
|
|
|
|
|
|
|
::sandbox{repo="nuxt/framework" branch="main" dir="examples/other/locale" file="app.vue"}
|