> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipthing.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use locale in API endpoints

> Learn how to use the users locale in your ShipThing API endpoints.

Sometimes you need to use the users locale in your API endpoints. For example, you might want to fetch data from a database that is localized or if you want to send an email in the users locale.

To make the users locale available in your endpoint handler, you can use the [`languageDetector`](https://hono.dev/docs/middleware/builtin/language#language-middleware).
