1
0
Fork 0
mirror of synced 2024-07-16 03:46:02 +12:00
appwrite/app/sdks/server-php/docs/locale.md

53 lines
1.5 KiB
Markdown
Raw Normal View History

2019-05-09 18:54:39 +12:00
# Locale Service
## Get User Locale
```http request
2019-10-09 17:16:38 +13:00
GET https://appwrite.io/v1/locale
2019-05-09 18:54:39 +12:00
```
2020-01-28 10:50:41 +13:00
** 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)) **
2019-10-22 06:15:27 +13:00
2020-05-01 07:16:14 +12:00
## List Continents
2019-10-22 06:15:27 +13:00
```http request
GET https://appwrite.io/v1/locale/continents
```
** List of all continents. You can use the locale header to get the data in a supported language. **
2019-05-09 18:54:39 +12:00
## List Countries
```http request
2019-10-09 17:16:38 +13:00
GET https://appwrite.io/v1/locale/countries
2019-05-09 18:54:39 +12:00
```
2019-10-22 06:15:27 +13:00
** List of all countries. You can use the locale header to get the data in a supported language. **
2019-05-09 18:54:39 +12:00
## List EU Countries
```http request
2019-10-09 17:16:38 +13:00
GET https://appwrite.io/v1/locale/countries/eu
2019-05-09 18:54:39 +12:00
```
2020-01-28 10:50:41 +13:00
** 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. **
2019-05-09 18:54:39 +12:00
## List Countries Phone Codes
```http request
2019-10-09 17:16:38 +13:00
GET https://appwrite.io/v1/locale/countries/phones
2019-05-09 18:54:39 +12:00
```
2019-10-22 06:15:27 +13:00
** List of all countries phone codes. You can use the locale header to get the data in a supported language. **
2019-05-09 18:54:39 +12:00
2019-11-21 07:51:55 +13:00
## List Currencies
2019-08-23 09:10:32 +12:00
```http request
2019-10-09 17:16:38 +13:00
GET https://appwrite.io/v1/locale/currencies
2019-08-23 09:10:32 +12:00
```
2019-10-22 06:15:27 +13:00
** List of all currencies, including currency symol, 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. **
2019-08-23 09:10:32 +12:00