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.