# gt-next: General Translation Next.js SDK: getDefaultLocale
URL: https://generaltranslation.com/en-US/docs/next/api/helpers/get-default-locale.mdx
---
title: getDefaultLocale
description: API reference for the getDefaultLocale server-side method
---
## Overview
The `getDefaultLocale` function retrieves the application's default locale.
This locale is determined when the server starts and is used as the fallback language for translations.
It returns a [locale code](/docs/core/locales), e.g., `'en-US'`.
Default locale: {defaultLocale}
; } ``` --- ## Notes - The `getDefaultLocale` returns the default locale set in [`withGTConfig`](/docs/next/api/config/with-gt-config). - `getDefaultLocale` is server-side only. - The returned locale adheres to the [locale code](/docs/core/locales) format. ## Next steps - See [`useLocale`](/docs/next/api/helpers/use-locale) and [`getLocale`](/docs/next/api/helpers/get-locale) to retrieve the user's locale.