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
JavaScript
import { Client, Locale } from "appwrite";
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
const promise = locale.get();
promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});