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
Swift
import Appwrite
func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let locale = Locale(client)
let locale = try await locale.get()
print(String(describing: locale)
}