UNPKG

ngx-appwrite

Version:

A wrapper around the Appwrite WebSDK for easier implementation in Angular 16+ projects. The goal is to make the whole SDK accessible as well as provide some convenience functionality like RxJS streams where appropriate.

83 lines (82 loc) 2.6 kB
import { Models } from 'appwrite'; import * as i0 from "@angular/core"; export declare class LocalizationService { private _locale; /** * 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](https://db-ip.com)) * * @throws {AppwriteException} * @returns {Promise} */ get(): Promise<Models.Locale>; /** * List Continents * * List of all continents. You can use the locale header to get the data in a * supported language. * * @throws {AppwriteException} * @returns {Promise} */ listContinents(): Promise<Models.ContinentList>; /** * List Countries * * List of all countries. You can use the locale header to get the data in a * supported language. * * @throws {AppwriteException} * @returns {Promise} */ listCountries(): Promise<Models.CountryList>; /** * 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. * * @throws {AppwriteException} * @returns {Promise} */ listCountriesEU(): Promise<Models.CountryList>; /** * List Countries Phone Codes * * List of all countries phone codes. You can use the locale header to get the * data in a supported language. * * @throws {AppwriteException} * @returns {Promise} */ listCountriesPhones(): Promise<Models.PhoneList>; /** * 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. * * @throws {AppwriteException} * @returns {Promise} */ listCurrencies(): Promise<Models.CurrencyList>; /** * List Languages * * List of all languages classified by ISO 639-1 including 2-letter code, name * in English, and name in the respective language. * * @throws {AppwriteException} * @returns {Promise} */ listLanguages(): Promise<Models.LanguageList>; static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>; }