# gt-next: General Translation Next.js SDK: getDefaultLocale
URL: https://generaltranslation.com/zh/docs/next/api/helpers/get-default-locale.mdx
---
title: getDefaultLocale
description: getDefaultLocale 服务端方法的 API 参考文档
---
## 概述
`getDefaultLocale` 函数用于获取应用的默认区域设置。
该区域设置会在服务器启动时确定,并作为翻译的后备语言使用。
它会返回一个[区域设置代码](/docs/core/locales),例如 `'en'`。
Default locale: {defaultLocale}
; } ``` *** ## 说明 * `getDefaultLocale` 返回在 [`withGTConfig`](/docs/next/api/config/with-gt-config) 中设置的默认区域设置。 * `getDefaultLocale` 仅可在服务端使用。 * 返回的区域设置符合[区域设置代码](/docs/core/locales)格式。 ## 后续步骤 * 请参阅 [`useLocale`](/docs/next/api/helpers/use-locale) 和 [`getLocale`](/docs/next/api/helpers/get-locale) 来获取用户的区域设置。