# gt-next: General Translation Next.js SDK: isLocaleSupported
URL: https://generaltranslation.com/en-GB/docs/next/api/helpers/is-locale-supported.mdx
---
title: isLocaleSupported
description: API reference for the isLocaleSupported server-side method
---
## Overview
The `isLocaleSupported` function checks whether a locale is valid and supported by your app's current gt-next configuration.
Use it when a route param or other request input should be explicitly rejected rather than silently falling back to the default locale. A common pattern is to validate the `[locale]` segment in a dynamic route and call `notFound()` when the value is not supported.
Locale: {locale}
; } ``` *** ## Notes * `isLocaleSupported` is server-side only. * Without this check, an invalid or unsupported request locale falls back to the default locale rather than throwing. See [`getLocale`](/docs/next/api/helpers/get-locale) for the fallback behaviour. * The set of supported locales is configured in [`withGTConfig`](/docs/next/api/config/with-gt-config). See also [`gt.config.json`](/docs/next/api/config/gt-config-json). ## Next steps * See [`getLocale`](/docs/next/api/helpers/get-locale) to retrieve the user's current locale. * Learn how to configure supported locales with [`withGTConfig()`](/docs/next/api/config/with-gt-config).