Skip to main content
Module

x/appwrite/mod.ts>Locale

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
class Locale
extends Service
Re-export
import { Locale } from "https://deno.land/x/appwrite@0.2.2/mod.ts";

Methods

get<T extends unknown>(): Promise<T>

Get User Locale

Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.

(IP Geolocation by DB-IP)

getContinents<T extends unknown>(): Promise<T>

List Continents

List of all continents. You can use the locale header to get the data in a supported language.

getCountries<T extends unknown>(): Promise<T>

List Countries

List of all countries. You can use the locale header to get the data in a supported language.

getCountriesEU<T extends unknown>(): Promise<T>

List EU Countries

List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.

getCountriesPhones<T extends unknown>(): Promise<T>

List Countries Phone Codes

List of all countries phone codes. You can use the locale header to get the data in a supported language.

getCurrencies<T extends unknown>(): Promise<T>

List Currencies

List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.

getLanguages<T extends unknown>(): Promise<T>

List Languages

List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.