Docs
Skip to content
get

Get user locale

Endpoint

gethttps://<REGION>.cloud.appwrite.io/v1/locale

Description

Required scopes

locale.read

Authentication

Initialize the Appwrite client with setProject(). No signed-in user or server API key is required.
Status
Content type
200
application/json

Locale

Name
Type
Description
string
string
string
string
string
boolean
string
string
string
string
number
number
string
string
string
string
string
string
JavaScript
import { Client, Locale } from 'appwrite';
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
const locale = new Locale(client);
const result = await locale.get();
console.log(result);