# node: getDefaultLocale URL: https://generaltranslation.com/en-US/docs/node/api/get-default-locale.mdx --- title: getDefaultLocale description: API reference for the getDefaultLocale function --- ## Overview The `getDefaultLocale` function returns the default locale configured in [`initializeGT`](/docs/node/api/initialize-gt). ```js import { getDefaultLocale } from 'gt-node'; const defaultLocale = getDefaultLocale(); // 'en-US' ``` ## Reference ### Parameters None. ### Returns `string` — The default BCP 47 [locale code](/docs/core/locales) (e.g., `'en-US'`). --- ## Examples ### Basic usage ```js title="handler.js" import { getDefaultLocale } from 'gt-node'; app.get('/api/info', (req, res) => { res.json({ defaultLocale: getDefaultLocale() }); }); ``` --- ## Next steps - See [`getLocale`](/docs/node/api/get-locale) for the current request locale. - See [`getLocales`](/docs/node/api/get-locales) for all supported locales.