Skip to content

Locale v1

Reference for the Locale v1 endpoints on Roblox.

Base URL: https://locale.roblox.com

MethodPathName
GET/v1/country-regionsgetCountryRegions
GET/v1/localesgetLocales
POST/v1/locales/set-show-roblox-translationspostLocalesSetShowRobloxTranslations
POST/v1/locales/set-user-supported-localepostLocalesSetUserSupportedLocale
GET/v1/locales/supported-localesgetLocalesSupportedLocales
GET/v1/locales/supported-locales-for-creatorsgetLocalesSupportedLocalesForCreators
GET/v1/locales/user-localegetLocalesUserLocale
GET/v1/locales/user-localization-locus-supported-localesgetLocalesUserLocalizationLocusSupportedLocales

GET /v1/country-regions

Get list of country regions sorted by localized name

Usage
import { fetchApi } from 'rozod';
import { getCountryRegions } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(getCountryRegions, {
locale: /* string? */
});
NameTypeRequiredDescription
localestring?No
FieldTypeDescription
countryRegionListobject[]See below

countryRegionList[] item fields:

FieldTypeDescription
codestring
namestring
displayNamestring
StatusDescription
4002: Invalid supported locale code.
4037: Feature is disabled

GET /v1/locales

Get list of Supported locales with user locus information.

Usage
import { fetchApi } from 'rozod';
import { getLocales } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(getLocales, {
displayValueLocale: /* string? */
});
NameTypeRequiredDescription
displayValueLocalestring?No
FieldTypeDescription
dataobject[]See below

data[] item fields:

FieldTypeDescription
localeobjectSee below
isEnabledForFullExperienceboolean
isEnabledForSignupAndLoginboolean
isEnabledForInGameUgcboolean

locale fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean
StatusDescription
403Feature is turned off temporary
500Internal server error

POST /v1/locales/set-show-roblox-translations

Sets whether translations suggested by Roblox will be shown to the user.

Usage
import { fetchApi } from 'rozod';
import { postLocalesSetShowRobloxTranslations } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(postLocalesSetShowRobloxTranslations, {
body: { /* ... */ }
});
FieldTypeDescription
showRobloxTranslationsboolean
FieldTypeDescription
successboolean
StatusDescription
400Bad Request
401Unauthorized
0: Authorization has been denied for this request.
403Feature is turned off temporary
0: Token Validation Failed
500Internal server error

POST /v1/locales/set-user-supported-locale

Sets user’s supported locale.

Usage
import { fetchApi } from 'rozod';
import { postLocalesSetUserSupportedLocale } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(postLocalesSetUserSupportedLocale, {
body: { /* ... */ }
});
FieldTypeDescription
supportedLocaleCodestring
FieldTypeDescription
successboolean
StatusDescription
400Bad Request
401Unauthorized
0: Authorization has been denied for this request.
403Feature is turned off temporary
0: Token Validation Failed
500Internal server error

GET /v1/locales/supported-locales

Get list of supported locales sorted by the Native Name property.

Usage
import { fetchApi } from 'rozod';
import { getLocalesSupportedLocales } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(getLocalesSupportedLocales, undefined);
FieldTypeDescription
supportedLocalesobject[]See below

supportedLocales[] item fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean
StatusDescription
403Feature is turned off temporary
500Internal server error

GET /v1/locales/supported-locales-for-creators

Usage
import { fetchApi } from 'rozod';
import { getLocalesSupportedLocalesForCreators } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(getLocalesSupportedLocalesForCreators, {
displayValueLocale: /* string? */
});
NameTypeRequiredDescription
displayValueLocalestring?No
FieldTypeDescription
dataobject[]See below

data[] item fields:

FieldTypeDescription
localeobjectSee below
isEnabledForFullExperienceboolean
isEnabledForSignupAndLoginboolean
isEnabledForInGameUgcboolean

locale fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean

GET /v1/locales/user-locale

Gets user locale. If user is absent returns, locale from http request object.

Usage
import { fetchApi } from 'rozod';
import { getLocalesUserLocale } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(getLocalesUserLocale, undefined);
FieldTypeDescription
supportedLocaleobjectSee below
nativeLanguageobjectSee below

supportedLocale fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean

nativeLanguage fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean
StatusDescription
500Internal server error

getLocalesUserLocalizationLocusSupportedLocales

Section titled “getLocalesUserLocalizationLocusSupportedLocales”

GET /v1/locales/user-localization-locus-supported-locales

Gets each of a user’s localization locus supported locales. A localization locus supported locale is a page (or group of pages) that

Usage
import { fetchApi } from 'rozod';
import { getLocalesUserLocalizationLocusSupportedLocales } from 'rozod/lib/endpoints/localev1';
const data = await fetchApi(getLocalesUserLocalizationLocusSupportedLocales, undefined);
FieldTypeDescription
signupAndLoginobjectSee below
generalExperienceobjectSee below
ugcobjectSee below
showRobloxTranslationsboolean

signupAndLogin fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean

generalExperience fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean

ugc fields:

FieldTypeDescription
idnumber
localestring
namestring
nativeNamestring
languageobjectSee below

language fields:

FieldTypeDescription
idnumber
namestring
nativeNamestring
languageCodestring
isRightToLeftboolean
StatusDescription
500Internal server error