diff --git a/CHANGES.md b/CHANGES.md
index 135facb846..3f97b37063 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,3 +1,16 @@
+# Version 0.3.0 (PRE-RELEASE)
+
+## Planned Issues
+
+* Added 7 new locales for locale service and email templates (af, ar, cz, hu, lt, no, ru, si, sv, ta, vi, zh-cn, zh-tw)
+* New users service routes to allow updates pref and name update
+* 2 stage Docker build
+* New database rule validation options
+* Update docs example with auth info
+* Limit HTTP origin check only to browser integrations
+* Allow electron apps to not pass origin header
+* New OAuth adapters (Amazon, Dropbox, Microsoft, Slack, VK)
+
# Version 0.2.0 (PRE-RELEASE)
## Features
@@ -5,7 +18,7 @@
* Added option to limit access to the Appwrite console
* Added option to disable abuse check and rate limits
* Added input field with the server API endpoint for easy access
-* Added new OAuth providers for Google and Gitlab
+* Added new OAuth providers for Google, Bitbucket and GitLab
* Added 15 new locales for locale service and email templates (cat, de, es, fi, fr, gr, hi, id, it, nl, pt-br, pt-pt, ro, tr, ua)
* Improved test coverage for the project and synced DEV & CI environments settings
@@ -20,4 +33,4 @@
* Changed auth service 'redirect' param to 'confirm' for better clarity
* Updated all SDKs to sync with API changes
-# Version 0.1.15 (NOT-RELEASED)
\ No newline at end of file
+# Version 0.1.15 (NOT-RELEASED)
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index e07b9c1595..5dba194a2b 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -3,9 +3,9 @@
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
-contributors and maintainers pledge to making participation in our project and
+contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
-size, disability, ethnicity, sex characteristics, gender identity and expression,
+size, disability, ethnicity, sex characteristics, gender identity, expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f985e7c6da..e7b28d8bba 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,6 @@
# Contributing
-We would ❤️ for you to contribute to Appwrite and help make it better! As a contributor, here are the guidelines we would like you to follow:
+We would ❤️ for you to contribute to Appwrite and help make it better! As a contributor, here are the guidelines we would like you to follow:
## Code of Conduct
@@ -8,7 +8,7 @@ Help us keep Appwrite open and inclusive. Please read and follow our [Code of Co
## Technology Stack
-To start helping us to improve Appwrite server, prior knowledge of Appwrite technology stack can help you with getting started.
+To start helping us to improve Appwrite server, prior knowledge of Appwrite's technology stack can help you with getting started.
Appwrite stack is combined from a variety of open-source technologies and tools. Appwrite backend API is written primarily with PHP version 7 and above on top of the Utopia PHP framework. Appwrite frontend is built with tools like gulp, less and litespeed.js. We use Docker as the container technology to package the Appwrite server for easy integration on cloud, on-premise or local hosts.
@@ -26,9 +26,9 @@ Appwrite stack is combined from a variety of open-source technologies and tools.
## Package Managers
-Appwrite is using a package manager for managing code dependencies for both backend and frontend development. We try our best to avoid creating any unnecessary and any new dependency to the project is subjected to a lead developer review and approval.
+Appwrite uses a package manager for managing code dependencies for both backend and frontend development. We try our best to avoid creating any unnecessary and any new dependency to the project is subjected to a lead developer review and approval.
-Many of Appwrite internal modules are also used as dependencies to allow other Appwrite's projects to reuse them and as a way to contribute them back to the community.
+Many of Appwrite's internal modules are also used as dependencies to allow other Appwrite's projects to reuse them and as a way to contribute them back to the community.
Appwrite uses PHPs Composer for managing dependencies on the server-side and JS NPM for managing dependencies on the frontend side.
@@ -42,9 +42,9 @@ We use prettier for our JS coding standards and for auto-formatting our code.
Appwrite is built to scale. Please keep in mind that the Appwrite stack can run in different environments and different scales.
-We wish Appwrite will be as easy to set up and in a single, local host and easy to grow to a large environment with thousands and even hundreds of instances.
+We wish Appwrite will be as easy to set up and in a single, localhost and easy to grow to a large environment with thousands and even hundreds of instances.
-When contributing code please take into account the following considerations:
+When contributing code, please take into account the following considerations:
* Response Time
* Throughput
@@ -57,17 +57,17 @@ When contributing code please take into account the following considerations:
## Architecture
-Appwrite current structure is a combination of both Monolithic and Microservice architectures, but our final goal, as we grow is to be using only microservices.
+Appwrite's current structure is a combination of both Monolithic and Microservice architectures, but our final goal, as we grow is to be using only microservices.
### The Monolithic Part
-Appwrite main API container is designed as a monolithic app. This is a decision we made to allow us to develop the project faster while still being a very small team.
+Appwrite's main API container is designed as a monolithic app. This is a decision we made to allow us to develop the project faster while still being a very small team.
Although the Appwrite API is a monolithic app, it has a very clear separation of concern as each internal service or worker is separated by its container which will allow us as we grow to start breaking services for better maintenance and scalability.
### The Microservice Part
-Each container in Appwrite is a microservice by its own. Each service is an independent process which can scale without regard to any of the other services.
+Each container in Appwrite is a microservice on its own. Each service is an independent process that can scale without regard to any of the other services.
Currently, all of the Appwrite microservices are intended to communicate using TCP protocol over a private network. You should be aware to not expose any of the services to the public-facing network, besides the public port 80 and 443 who by default are used to expose the Appwrite HTTP API.
@@ -93,10 +93,10 @@ This is also important for the Appwrite lead developers to be able to give techn
## Setup
-To set up a working development environment just clone the project git repository and install the backend and frontend dependencies using the proper package manager and create run the docker-compose stack.
+To set up a working development environment just fork the project git repository and install the backend and frontend dependencies using the proper package manager and create run the docker-compose stack.
```bash
-git clone git@github.com:appwrite/appwrite.git
+git clone git@github.com:[YOUR_FORK_HERE]/appwrite.git
cd appwrite
@@ -121,6 +121,6 @@ Before running the command make sure you have proper write permissions to Appwri
## Tutorials
-From time to time our team will add tutorials that will help contributors find there way in the Appwrite source code. Below is a list of currently available tutorials:
+From time to time our team will add tutorials that will help contributors find their way in the Appwrite source code. Below is a list of currently available tutorials:
-* [Adding Support for a New OAuth Provider](./docs/AddOAuthProvider.md)
+* [Adding Support for a New OAuth Provider](./docs/tutorials/add-oauth-provider.md)
diff --git a/README.md b/README.md
index 5133e967d4..4afc72376d 100644
--- a/README.md
+++ b/README.md
@@ -11,14 +11,15 @@
[](https://gitter.im/appwrite/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
[](https://travis-ci.org/appwrite/appwrite)
[](https://stackshare.io/appwrite)
+[](https://app.releasly.co/sites/appwrite/appwrite?utm_source=github_badge)
---
Appwrite is a simple self-hosted backend server for web and mobile developers with a shiny dashboard and a very easy to use REST API.
-Appwrite API services aims to make developers life a lot easier by hiding the complexity of common and repetitive software development tasks.
+Appwrite API services aim to make developer's life a lot easier by hiding the complexity of common and repetitive software development tasks.
-Using Appwrite you can easily manage user authentication with multiple sign-in methods, database for storing and querying user and teams data, storage and file management, image manipulation and cropping, scheduled cron tasks and many other features to help you get more results in faster times and with a lot less code.
+Using Appwrite you can easily manage user authentication with multiple sign-in methods, a database for storing and querying user and teams data, storage and file management, image manipulation and cropping, scheduled cron tasks and many other features to help you get more results in faster times and with a lot less code.
[https://appwrite.io](https://appwrite.io)
@@ -26,9 +27,9 @@ Using Appwrite you can easily manage user authentication with multiple sign-in m
## Installation
-Appwrite backend server is designed to run in a container environment. Running your server is as easy as running one command from your terminal. You can run Appwrite on your localhost using docker-compose or on any other container orchestration tool like Kubernetes, Docker Swarm or Rancher.
+Appwrite backend server is designed to run in a container environment. Running your server is as easy as running one command from your terminal. You can either run Appwrite on your localhost using docker-compose or on any other container orchestration tool like Kubernetes, Docker Swarm or Rancher.
-The easiest way to start running your Appwrite server is by running our docker compose file:
+The easiest way to start running your Appwrite server is by running our docker-compose file:
```bash
mkdir appwrite-ce && \
@@ -41,7 +42,7 @@ docker-compose up -d --remove-orphans
Once the Docker installation completes, go to http://localhost to access the Appwrite console from your browser. Please notice that on non-linux native hosts, the server might take a few minutes to start after installation completes.
-For advanced, production and custom installation, check out our Docker [environment variables](/docs/EnviornementVariables.md) docs.
+For advanced, production and custom installation, check out our Docker [environment variables](docs/tutorials/environment-variables.md) docs.
### Changing Port Number
@@ -59,15 +60,15 @@ Getting started with Appwrite is as easy as creating a new project, choosing you
### Services
* [**Auth**](https://appwrite.io/docs/auth) - Manage user authentication using multiple sign-in methods and account recovery.
-* [**Account**](https://appwrite.io/docs/account) - Manage current user account. Track and manage the user sessions, devices and security audit log.
+* [**Account**](https://appwrite.io/docs/account) - Manage current user account. Track and manage the user sessions, devices, and security audit log.
* [**Users**](https://appwrite.io/docs/users) - Manage and list all project users when in admin mode.
-* [**Teams**](https://appwrite.io/docs/teams) - Manage and group users in teams. Manage memberships, invites and users roles within a team.
-* [**Database**](https://appwrite.io/docs/database) - Manage database collections and document. Read, create, update and delete documents and filter lists of documents collections using advanced filter with graph like capabilities.
-* [**Storage**](https://appwrite.io/docs/storage) - Manage storage files. Read, create, delete and preview files. Manipulate your files preview to fit your app perfectly. All files are scanned by ClamAV and stored in a secure and encrypted way.
-* [**Locale**](https://appwrite.io/docs/locale) - Track users location, and manage your app locale based data.
-* [**Avatars**](https://appwrite.io/docs/avatars) - Manage your users avatars, countries flags, browser icons, credit card symbols and generate QR codes.
+* [**Teams**](https://appwrite.io/docs/teams) - Manage and group users in teams. Manage memberships, invites and user roles within a team.
+* [**Database**](https://appwrite.io/docs/database) - Manage database collections and document. Read, create, update and delete documents and filter lists of documents collections using an advanced filter with graph-like capabilities.
+* [**Storage**](https://appwrite.io/docs/storage) - Manage storage files. Read, create, delete and preview files. Manipulate the preview of your files to fit your app perfectly. All files are scanned by ClamAV and stored in a secure and encrypted way.
+* [**Locale**](https://appwrite.io/docs/locale) - Track user's location, and manage your app locale-based data.
+* [**Avatars**](https://appwrite.io/docs/avatars) - Manage your user's avatars, country's flags, browser icons, credit card symbols and generate QR codes.
-For the complete API documentation, visit [https://appwrite.io/docs](https://appwrite.io/docs). For more tutorials, news and announcments checkout our [blog](https://medium.com/appwrite-io).
+For the complete API documentation, visit [https://appwrite.io/docs](https://appwrite.io/docs). For more tutorials, news and announcements check out our [blog](https://medium.com/appwrite-io).
### SDKs
@@ -94,32 +95,34 @@ Join our growing community around the world! Follow us on [Twitter](https://twit
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
-We really ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md).
+We truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md).
## Credits
Created by [Eldad Fux](https://twitter.com/eldadfux) with the amazing help of our **amazing contributors:**
-* 🇺🇸 Justin Dorfman ([Github](https://github.com/jdorfman), [Twitter](https://twitter.com/jdorfman))
-* 🇺🇳 0xflotus ([Github](https://github.com/0xflotus))
-* 🇳🇴 Petter Charles Redfern ([Github](https://github.com/Chaaarles))
-* 🇧🇷 Jessé Souza ([Github](https://github.com/jessescn))
-* 🇪🇸 Esther Álvarez Feijoo ([Github](https://github.com/EstherAF))
-* 🇮🇳 Christy Jacob ([Github](https://github.com/christyjacob4), [Linkedin](https://www.linkedin.com/in/christyjacob4/))
-* 🇺🇦 Dmitriy Danilov ([Github](https://github.com/daniloff200), [Twitter](https://twitter.com/daniloff200))
-* 🇮🇩 Zeet ([Github](https://github.com/Kiy4h))
-* 🇫🇮 Pessi Päivärinne ([Github](https://github.com/pessip))
-* 🇺🇳 Sergi Vos ([Github](https://github.com/sergivb01), [Twitter](https://twitter.com/sergivb01), [Linkedin](https://www.linkedin.com/in/sergivb01/))
-* 🇮🇱 Tomer Cohen ([Github](https://github.com/tomer), [Twitter](https://twitter.com/tomer))
-* 🇮🇹 Tatiana ([Github](https://github.com/tacoelho))
-* 🇬🇷 Panagiotis Skarlas ([Github](https://github.com/1qk1), [Twitter](https://twitter.com/qktweets))
-* 🇷🇺 Alexey Pyltsyn ([Github](https://github.com/lex111))
-* 🇩🇪 Robin C ([Github](https://github.com/Taminoful))
-* 🇮🇳 Parikshit Hooda ([Github](https://github.com/Parikshit-Hooda))
-* 🇫🇷 Corentin Le Fur ([Github](https://github.com/crtlf))
-* 🇬🇧 Callum Lowry ([Github](https://github.com/Girxffe))
-* 🇷🇴 Bogdan Covrig ([Github](https://github.com/BogDAAAMN), [Twitter](https://twitter.com/BogdanCovrig))
-* 🇳🇱 Kolkies ([Github](https://github.com/kolkies.dev))
-* 🇹🇷 Mustafa Dur ([Github](https://github.com/tosbaha))
-* 🇵🇹 Luís Pinto ([Github](https://github.com/LiTO773))
-* 🇮🇳 Saksham Saxena ([Github](https://github.com/sakkshm))
+* 🇺🇸 Justin Dorfman ([GitHub](https://github.com/jdorfman), [Twitter](https://twitter.com/jdorfman))
+* 🇺🇳 0xflotus ([GitHub](https://github.com/0xflotus))
+* 🇳🇴 Petter Charles Redfern ([GitHub](https://github.com/Chaaarles))
+* 🇧🇷 Jessé Souza ([GitHub](https://github.com/jessescn))
+* 🇪🇸 Esther Álvarez Feijoo ([GitHub](https://github.com/EstherAF))
+* 🇮🇳 Christy Jacob ([GitHub](https://github.com/christyjacob4), [LinkedIn](https://www.linkedin.com/in/christyjacob4/))
+* 🇺🇦 Dmitriy Danilov ([GitHub](https://github.com/daniloff200), [Twitter](https://twitter.com/daniloff200))
+* 🇮🇩 Zeet ([GitHub](https://github.com/Kiy4h))
+* 🇫🇮 Pessi Päivärinne ([GitHub](https://github.com/pessip))
+* 🇺🇳 Sergi Vos ([GitHub](https://github.com/sergivb01), [Twitter](https://twitter.com/sergivb01), [LinkedIn](https://www.linkedin.com/in/sergivb01/))
+* 🇮🇱 Tomer Cohen ([GitHub](https://github.com/tomer), [Twitter](https://twitter.com/tomer))
+* 🇮🇹 Tatiana ([GitHub](https://github.com/tacoelho))
+* 🇬🇷 Panagiotis Skarlas ([GitHub](https://github.com/1qk1), [Twitter](https://twitter.com/qktweets))
+* 🇷🇺 Alexey Pyltsyn ([GitHub](https://github.com/lex111))
+* 🇩🇪 Robin C ([GitHub](https://github.com/Taminoful))
+* 🇮🇳 Parikshit Hooda ([GitHub](https://github.com/Parikshit-Hooda))
+* 🇫🇷 Corentin Le Fur ([GitHub](https://github.com/crtlf))
+* 🇬🇧 Callum Lowry ([GitHub](https://github.com/Girxffe))
+* 🇷🇴 Bogdan Covrig ([GitHub](https://github.com/BogDAAAMN), [Twitter](https://twitter.com/BogdanCovrig))
+* 🇳🇱 Kolkies ([GitHub](https://github.com/kolkies.dev))
+* 🇹🇷 Mustafa Dur ([GitHub](https://github.com/tosbaha))
+* 🇵🇹 Luís Pinto ([GitHub](https://github.com/LiTO773))
+* 🇮🇳 Saksham Saxena ([GitHub](https://github.com/sakkshm))
+* 🇮🇱 Dima Vishnevetsky ([GitHub](https://github.com/dimshik100), [Twitter](https://twitter.com/dimshik100))
+* 🇭🇺 lacexd ([GitHub](https://github.com/lacexd))
diff --git a/app/app.php b/app/app.php
index 4e4af39873..02637ccec1 100644
--- a/app/app.php
+++ b/app/app.php
@@ -435,14 +435,10 @@ $utopia->get('/v1/proxy')
$utopia->get('/v1/open-api-2.json')
->label('scope', 'public')
->label('docs', false)
- ->param('platform', 'client', function () {
- return new WhiteList(['client', 'server']);
- }, 'Choose target platform.', true)
- ->param('extensions', 0, function () {
- return new Range(0, 1);
- }, 'Show extra data.', true)
+ ->param('platform', 'client', function () {return new WhiteList(['client', 'server']);}, 'Choose target platform.', true)
+ ->param('extensions', 0, function () {return new Range(0, 1);}, 'Show extra data.', true)
->action(
- function ($platform, $extensions) use ($response, $request, $utopia, $domain, $version, $services) {
+ function ($platform, $extensions) use ($response, $request, $utopia, $domain, $services) {
function fromCamelCase($input)
{
preg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $input, $matches);
@@ -480,7 +476,7 @@ $utopia->get('/v1/open-api-2.json')
$output = [
'swagger' => '2.0',
'info' => [
- 'version' => $version,
+ 'version' => APP_VERSION_STABLE,
'title' => APP_NAME,
'description' => 'Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)',
'termsOfService' => 'https://appwrite.io/policy/terms',
@@ -494,7 +490,7 @@ $utopia->get('/v1/open-api-2.json')
'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE',
],
],
- 'host' => $domain,
+ 'host' => $request->getServer('_APP_HOME', $domain),
'basePath' => '/v1',
'schemes' => ['https'],
'consumes' => ['application/json', 'multipart/form-data'],
diff --git a/app/config/collections.php b/app/config/collections.php
index 524eaaa80b..122b722f90 100644
--- a/app/config/collections.php
+++ b/app/config/collections.php
@@ -197,7 +197,7 @@ $collections = [
'key' => 'name',
'type' => 'text',
'default' => '',
- 'required' => true,
+ 'required' => false,
'array' => false,
],
[
diff --git a/app/config/locale/af.continents.php b/app/config/locale/af.continents.php
new file mode 100644
index 0000000000..0d465620c4
--- /dev/null
+++ b/app/config/locale/af.continents.php
@@ -0,0 +1,11 @@
+ 'Afrika',
+ 'AN' => 'Antarktika',
+ 'AS' => 'Asië',
+ 'EU' => 'Europa',
+ 'NA' => 'Noord-Amerika',
+ 'OC' => 'Oseanië',
+ 'SA' => 'Suid-Amerika',
+];
diff --git a/app/config/locale/af.countries.php b/app/config/locale/af.countries.php
new file mode 100644
index 0000000000..b3c4838f36
--- /dev/null
+++ b/app/config/locale/af.countries.php
@@ -0,0 +1,198 @@
+ 'Afghanistan',
+ 'AO' => 'Angola',
+ 'AL' => 'Albanië',
+ 'AD' => 'Andorra',
+ 'AE' => 'Verenigde Arabiese Emirate',
+ 'AR' => 'Argentinië',
+ 'AM' => 'Armenië',
+ 'AG' => 'Antigua en Barbuda',
+ 'AU' => 'Australië',
+ 'AT' => 'Oostenryk',
+ 'AZ' => 'Azerbaijan',
+ 'BI' => 'Burundi',
+ 'BE' => 'België',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladesj',
+ 'BG' => 'Bulgarye',
+ 'BH' => 'Bahrain',
+ 'BS' => 'Bahamas',
+ 'BA' => 'Bosnië en Herzegovina',
+ 'BY' => 'Belarus',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolivia',
+ 'BR' => 'Brasilië',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brunei',
+ 'BT' => 'Bhoetan',
+ 'BW' => 'Botswana',
+ 'CF' => 'Central African Republic',
+ 'CA' => 'Kanada',
+ 'CH' => 'Switserland',
+ 'CL' => 'Chile',
+ 'CN' => 'Sjina',
+ 'CI' => 'Ivoorkus',
+ 'CM' => 'Kameroen',
+ 'CD' => 'Demokratiese Republiek van die Kongo',
+ 'CG' => 'Republiek van die Kongo',
+ 'CO' => 'Colombia',
+ 'KM' => 'Comoros',
+ 'CV' => 'Kaap Verde',
+ 'CR' => 'Costa Rica',
+ 'CU' => 'Kuba',
+ 'CY' => 'Ciprus',
+ 'CZ' => 'Tsjeggiese Republiek',
+ 'DE' => 'Duitsland',
+ 'DJ' => 'Djiboeti',
+ 'DM' => 'Dominica',
+ 'DK' => 'Denemarke',
+ 'DO' => 'Dominikaanse Republiek',
+ 'DZ' => 'Algerië',
+ 'EC' => 'Ecuador',
+ 'EG' => 'Egipte',
+ 'ER' => 'Eritrea',
+ 'ES' => 'Spanje',
+ 'EE' => 'Estland',
+ 'ET' => 'Ethiopië',
+ 'FI' => 'Finland',
+ 'FJ' => 'Fidji',
+ 'FR' => 'Frankryk',
+ 'FM' => 'Mikronesië',
+ 'GA' => 'Gaboen',
+ 'GB' => 'Verenigde Koninkryk',
+ 'GE' => 'Georgia',
+ 'GH' => 'Ghana',
+ 'GN' => 'Guinee',
+ 'GM' => 'Gambië',
+ 'GW' => 'Guinee-Bissau',
+ 'GQ' => 'Ekwatoriaal-Guinee',
+ 'GR' => 'Griekeland',
+ 'GD' => 'Grenada',
+ 'GT' => 'Guatemala',
+ 'GY' => 'Guyana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Kroasië',
+ 'HT' => 'Haiti',
+ 'HU' => 'Hongarye',
+ 'ID' => 'Indonesië',
+ 'IN' => 'Indië',
+ 'IE' => 'Ireland',
+ 'IR' => 'Iran',
+ 'IQ' => 'Irak',
+ 'IS' => 'Ysland',
+ 'IL' => 'Israel',
+ 'IT' => 'Italië',
+ 'JM' => 'Jamaica',
+ 'JO' => 'Jordan',
+ 'JP' => 'Japan',
+ 'KZ' => 'Kazakstan',
+ 'KE' => 'Kenia',
+ 'KG' => 'Kyrgyzstan',
+ 'KH' => 'Kambodja',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Saint Kitts en Nevis',
+ 'KR' => 'Suid-Korea',
+ 'KW' => 'Kuwait',
+ 'LA' => 'Laos',
+ 'LB' => 'Libanon',
+ 'LR' => 'Liberië',
+ 'LY' => 'Libië',
+ 'LC' => 'Saint Lucia',
+ 'LI' => 'Liechtenstein',
+ 'LK' => 'Sri Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Litaue',
+ 'LU' => 'Luxemburg',
+ 'LV' => 'Latvia',
+ 'MA' => 'Marokko',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldawië',
+ 'MG' => 'Madagaskar',
+ 'MV' => 'Maldives',
+ 'MX' => 'Meksiko',
+ 'MH' => 'Marshall-eilande',
+ 'MK' => 'Macedonië',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Myanmar',
+ 'ME' => 'Montenegro',
+ 'MN' => 'Mongolië',
+ 'MZ' => 'Mosambiek',
+ 'MR' => 'Mauritanië',
+ 'MU' => 'Mauritius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Maleisië',
+ 'NA' => 'Namibië',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigerië',
+ 'NI' => 'Nicaragua',
+ 'NL' => 'Nederland',
+ 'NO' => 'Noorweë',
+ 'NP' => 'Nepal',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Nieu-Seeland',
+ 'OM' => 'Oman',
+ 'PK' => 'Pakistan',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filippyne',
+ 'PW' => 'Palau',
+ 'PG' => 'Papoea-Nieu-Guinee',
+ 'PL' => 'Pole',
+ 'KP' => 'Noord-Korea',
+ 'PT' => 'Portugal',
+ 'PY' => 'Paraguay',
+ 'QA' => 'Katar',
+ 'RO' => 'Roemenië',
+ 'RU' => 'Rusland',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Saoedi-Arabië',
+ 'SD' => 'Soedan',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapore',
+ 'SB' => 'Salomo-eilande',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'El Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalië',
+ 'RS' => 'Serwië',
+ 'SS' => 'Suid-Soedan',
+ 'ST' => 'São Tomé en Príncipe',
+ 'SR' => 'Suriname',
+ 'SK' => 'Slowakye',
+ 'SI' => 'Slowenië',
+ 'SE' => 'Swede',
+ 'SZ' => 'Swaziland',
+ 'SC' => 'Seychelle',
+ 'SY' => 'Sirië',
+ 'TD' => 'Chad',
+ 'TG' => 'Togo',
+ 'TH' => 'Thailand',
+ 'TJ' => 'Tadjikistan',
+ 'TM' => 'Turkmenistan',
+ 'TL' => 'Oos-Timor',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad en Tobago',
+ 'TN' => 'Tunisië',
+ 'TR' => 'Turkye',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzanië',
+ 'UG' => 'Uganda',
+ 'UA' => 'Oekraïne',
+ 'UY' => 'Uruguay',
+ 'US' => 'Verenigde State',
+ 'UZ' => 'Oesbekistan',
+ 'VA' => 'Vatikaanstad',
+ 'VC' => 'Sint Vincent en die Grenadines',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Viëtnam',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Jemen',
+ 'ZA' => 'Suid-Afrika',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
\ No newline at end of file
diff --git a/app/config/locale/af.php b/app/config/locale/af.php
new file mode 100644
index 0000000000..ae66ae30ea
--- /dev/null
+++ b/app/config/locale/af.php
@@ -0,0 +1,21 @@
+ '"Wie nie waag nie, sal nie wen nie."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'af',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s span',
+ 'auth.emails.confirm.title' => 'Profiel Bevestiging',
+ 'auth.emails.confirm.body' => 'af.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Verander Wagwoord',
+ 'auth.emails.recovery.body' => 'af.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Uitnodiging na %s span by %s',
+ 'auth.emails.invitation.body' => 'af.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Onbekend',
+
+ 'countries' => include 'af.countries.php',
+ 'continents' => include 'af.continents.php',
+];
diff --git a/app/config/locale/ar.continents.php b/app/config/locale/ar.continents.php
new file mode 100644
index 0000000000..8b1c3132f7
--- /dev/null
+++ b/app/config/locale/ar.continents.php
@@ -0,0 +1,11 @@
+ 'أفريقيا',
+ 'AN' => 'القارة القطبية الجنوبية',
+ 'AS' => 'آسيا',
+ 'EU' => 'أوروبا',
+ 'NA' => 'امريكا الشمالية',
+ 'OC' => 'أوقيانوسيا',
+ 'SA' => 'امريكا الجنوبية',
+];
diff --git a/app/config/locale/ar.countries.php b/app/config/locale/ar.countries.php
new file mode 100644
index 0000000000..a7f4a02228
--- /dev/null
+++ b/app/config/locale/ar.countries.php
@@ -0,0 +1,198 @@
+ 'أفغانستان',
+ 'AO' => 'أنغولا',
+ 'AL' => 'ألبانيا',
+ 'AD' => 'أندورا',
+ 'AE' => 'الإمارات العربية المتحدة',
+ 'AR' => 'الأرجنتين',
+ 'AM' => 'أرمينيا',
+ 'AG' => 'أنتيغوا وبربودا',
+ 'AU' => 'أستراليا',
+ 'AT' => 'النمسا',
+ 'AZ' => 'أذربيجان',
+ 'BI' => 'بوروندي',
+ 'BE' => 'بلجيكا',
+ 'BJ' => 'بنين',
+ 'BF' => 'بوركينا فاسو',
+ 'BD' => 'بنغلاديش',
+ 'BG' => 'بلغاريا',
+ 'BH' => 'البحرين',
+ 'BS' => 'جزر البهاما',
+ 'BA' => 'البوسنة والهرسك',
+ 'BY' => 'بيلاروسيا',
+ 'BZ' => 'بليز',
+ 'BO' => 'بوليفيا',
+ 'BR' => 'البرازيل',
+ 'BB' => 'بربادوس',
+ 'BN' => 'بروناي',
+ 'BT' => 'بوتان',
+ 'BW' => 'بوتسوانا',
+ 'CF' => 'جمهورية إفريقيا الوسطى',
+ 'CA' => 'كندا',
+ 'CH' => 'سويسرا',
+ 'CL' => 'تشيلي',
+ 'CN' => 'الصين',
+ 'CI' => 'ساحل العاج',
+ 'CM' => 'الكاميرون',
+ 'CD' => 'جمهورية الكونغو الديمقراطية',
+ 'CG' => 'جمهورية الكونغو',
+ 'CO' => 'كولومبيا',
+ 'KM' => 'جزر القمر',
+ 'CV' => 'الرأس الأخضر',
+ 'CR' => 'كوستاريكا',
+ 'CU' => 'كوبا',
+ 'CY' => 'قبرص',
+ 'CZ' => 'تشيكيا',
+ 'DE' => 'ألمانيا',
+ 'DJ' => 'جيبوتي',
+ 'DM' => 'دومينيكا',
+ 'DK' => 'الدنمارك',
+ 'DO' => 'جمهورية الدومينيكان',
+ 'DZ' => 'الجزائر',
+ 'EC' => 'إكوادور',
+ 'EG' => 'مصر',
+ 'ER' => 'إريتريا',
+ 'ES' => 'إسبانيا',
+ 'EE' => 'إستونيا',
+ 'ET' => 'إثيوبيا',
+ 'FI' => 'فنلندا',
+ 'FJ' => 'فيجي',
+ 'FR' => 'فرنسا',
+ 'FM' => 'ميكرونيزيا',
+ 'GA' => 'الغابون',
+ 'GB' => 'المملكة المتحدة',
+ 'GE' => 'جورجيا',
+ 'GH' => 'غانا',
+ 'GN' => 'غينيا',
+ 'GM' => 'غامبيا',
+ 'GW' => 'غينيا بيساو',
+ 'GQ' => 'غينيا الاستوائية',
+ 'GR' => 'اليونان',
+ 'GD' => 'غرينادا',
+ 'GT' => 'غواتيمالا',
+ 'GY' => 'غيانا',
+ 'HN' => 'هندوراس',
+ 'HR' => 'كرواتيا',
+ 'HT' => 'هايتي',
+ 'HU' => 'المجر',
+ 'ID' => 'إندونيسيا',
+ 'IN' => 'الهند',
+ 'IE' => 'أيرلندا',
+ 'IR' => 'إيران',
+ 'IQ' => 'العراق',
+ 'IS' => 'أيسلندا',
+ 'IL' => 'إسرائيل',
+ 'IT' => 'إيطاليا',
+ 'JM' => 'جامايكا',
+ 'JO' => 'الأردن',
+ 'JP' => 'اليابان',
+ 'KZ' => 'كازاخستان',
+ 'KE' => 'كينيا',
+ 'KG' => 'قيرغيزستان',
+ 'KH' => 'كمبوديا',
+ 'KI' => 'كيريباتي',
+ 'KN' => 'سانت كيتس ونيفيس',
+ 'KR' => 'كوريا الجنوبية',
+ 'KW' => 'الكويت',
+ 'LA' => 'لاوس',
+ 'LB' => 'لبنان',
+ 'LR' => 'ليبيريا',
+ 'LY' => 'ليبيا',
+ 'LC' => 'سانت لوسيا',
+ 'LI' => 'ليختنشتاين',
+ 'LK' => 'سري لانكا',
+ 'LS' => 'ليسوتو',
+ 'LT' => 'ليتوانيا',
+ 'LU' => 'لوكسمبورغ',
+ 'LV' => 'لاتفيا',
+ 'MA' => 'المغرب',
+ 'MC' => 'موناكو',
+ 'MD' => 'مولدوفا',
+ 'MG' => 'مدغشقر',
+ 'MV' => 'جزر المالديف',
+ 'MX' => 'المكسيك',
+ 'MH' => 'جزر مارشال',
+ 'MK' => 'مقدونيا',
+ 'ML' => 'مالي',
+ 'MT' => 'مالطا',
+ 'MM' => 'ميانمار',
+ 'ME' => 'الجبل الأسود',
+ 'MN' => 'منغوليا',
+ 'MZ' => 'موزمبيق',
+ 'MR' => 'موريتانيا',
+ 'MU' => 'موريشيوس',
+ 'MW' => 'ملاوي',
+ 'MY' => 'ماليزيا',
+ 'NA' => 'ناميبيا',
+ 'NE' => 'النيجر',
+ 'NG' => 'نيجيريا',
+ 'NI' => 'نيكاراغوا',
+ 'NL' => 'هولندا',
+ 'NO' => 'النرويج',
+ 'NP' => 'نيبال',
+ 'NR' => 'ناورو',
+ 'NZ' => 'نيوزيلندا',
+ 'OM' => 'عمان',
+ 'PK' => 'باكستان',
+ 'PA' => 'بنما',
+ 'PE' => 'بيرو',
+ 'PH' => 'الفلبين',
+ 'PW' => 'بالاو',
+ 'PG' => 'بابوا غينيا الجديدة',
+ 'PL' => 'بولندا',
+ 'KP' => 'كوريا الشمالية',
+ 'PT' => 'البرتغال',
+ 'PY' => 'باراجواي',
+ 'QA' => 'قطر',
+ 'RO' => 'رومانيا',
+ 'RU' => 'روسيا',
+ 'RW' => 'رواندا',
+ 'SA' => 'المملكة العربية السعودية',
+ 'SD' => 'السودان',
+ 'SN' => 'السنغال',
+ 'SG' => 'سنغافورة',
+ 'SB' => 'جزر سليمان',
+ 'SL' => 'سيراليون',
+ 'SV' => 'السلفادور',
+ 'SM' => 'سان مارينو',
+ 'SO' => 'الصومال',
+ 'RS' => 'صربيا',
+ 'SS' => 'جنوب السودان',
+ 'ST' => 'ساو تومي وبرينسيبي',
+ 'SR' => 'سورينام',
+ 'SK' => 'سلوفاكيا',
+ 'SI' => 'سلوفينيا',
+ 'SE' => 'السويد',
+ 'SZ' => 'سوازيلند',
+ 'SC' => 'سيشيل',
+ 'SY' => 'سوريا',
+ 'TD' => 'تشاد',
+ 'TG' => 'توغو',
+ 'TH' => 'تايلاند',
+ 'TJ' => 'طاجيكستان',
+ 'TM' => 'تركمانستان',
+ 'TL' => 'تيمور الشرقية',
+ 'TO' => 'تونجا',
+ 'TT' => 'ترينيداد وتوباغو',
+ 'TN' => 'تونس',
+ 'TR' => 'تركيا',
+ 'TV' => 'توفالو',
+ 'TZ' => 'تنزانيا',
+ 'UG' => 'أوغندا',
+ 'UA' => 'أوكرانيا',
+ 'UY' => 'أوروغواي',
+ 'UK' => 'الولايات المتحدة',
+ 'UZ' => 'أوزبكستان',
+ 'VA' => 'مدينة الفاتيكان',
+ 'VC' => 'سانت فنسنت وجزر غرينادين',
+ 'VE' => 'فنزويلا',
+ 'VN' => 'فيتنام',
+ 'VU' => 'فانواتو',
+ 'WS' => 'ساموا',
+ 'YE' => 'اليمن',
+ 'ZA' => 'جنوب إفريقيا',
+ 'ZM' => 'زامبيا',
+ 'ZW' => 'زيمبابوي',
+];
diff --git a/app/config/locale/ar.php b/app/config/locale/ar.php
new file mode 100644
index 0000000000..623df549d3
--- /dev/null
+++ b/app/config/locale/ar.php
@@ -0,0 +1,21 @@
+ '"فن الحكمة هو فن معرفة ما يجب التغاضي عنه."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'ar',
+ 'settings.direction' => 'rtl',
+
+ // Service - Users
+ 'auth.emails.team' => 'فريق %s',
+ 'auth.emails.confirm.title' => 'تأكيد الحساب',
+ 'auth.emails.confirm.body' => 'ar.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'إعادة تعيين كلمة المرور',
+ 'auth.emails.recovery.body' => 'ar.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'دعوة لفريق %s في %s',
+ 'auth.emails.invitation.body' => 'ar.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'مجهول',
+
+ 'countries' => include 'ar.countries.php',
+ 'continents' => include 'ar.continents.php',
+];
diff --git a/app/config/locale/cz.continents.php b/app/config/locale/cz.continents.php
new file mode 100644
index 0000000000..d1e5bc36fd
--- /dev/null
+++ b/app/config/locale/cz.continents.php
@@ -0,0 +1,11 @@
+ 'Afrika',
+ 'AN' => 'Antarktida',
+ 'AS' => 'Asie',
+ 'EU' => 'Evropa',
+ 'NA' => 'Severní Amerika',
+ 'OC' => 'Oceánie',
+ 'SA' => 'Jižní Amerika',
+];
diff --git a/app/config/locale/cz.countries.php b/app/config/locale/cz.countries.php
new file mode 100644
index 0000000000..93393c30d3
--- /dev/null
+++ b/app/config/locale/cz.countries.php
@@ -0,0 +1,198 @@
+ 'Afghánistán',
+ 'AO' => 'Angola',
+ 'AL' => 'Albánie',
+ 'AD' => 'Andorra',
+ 'AE' => 'Spojené arabské emiráty',
+ 'AR' => 'Argentina',
+ 'AM' => 'Arménie',
+ 'AG' => 'Antigua a Barbuda',
+ 'AU' => 'Austrálie',
+ 'AT' => 'Rakousko',
+ 'AZ' => 'Ázerbájdžán',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgie',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladesh',
+ 'BG' => 'Bulharsko',
+ 'BH' => 'Bahrain',
+ 'BS' => 'Bahamy',
+ 'BA' => 'Bosna a Hercegovina',
+ 'BY' => 'Belarus',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolívie',
+ 'BR' => 'Brazílie',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brunej',
+ 'BT' => 'Bhútán',
+ 'BW' => 'Botswana',
+ 'CF' => 'Středoafrická republika',
+ 'CA' => 'Canada',
+ 'CH' => 'Švýcarsko',
+ 'CL' => 'Chile',
+ 'CN' => 'China',
+ 'CI' => 'Pobřeží slonoviny',
+ 'CM' => 'Kamerun',
+ 'CD' => 'DR Kongo',
+ 'CG' => 'Konžská republika',
+ 'CO' => 'Colombia',
+ 'KM' => 'Komory',
+ 'CV' => 'Cape Verde',
+ 'CR' => 'Kostarika',
+ 'CU' => 'Kuba',
+ 'CY' => 'Cyprus',
+ 'CZ' => 'Česko',
+ 'DE' => 'Německo',
+ 'DJ' => 'Djibouti',
+ 'DM' => 'Dominika',
+ 'DK' => 'Denmark',
+ 'DO' => 'Dominikánská republika',
+ 'DZ' => 'Alžírsko',
+ 'EC' => 'Ekvádor',
+ 'EG' => 'Egypt',
+ 'ER' => 'Eritrea',
+ 'ES' => 'Španělsko',
+ 'EE' => 'Estonsko',
+ 'ET' => 'Etiopie',
+ 'FI' => 'Finsko',
+ 'FJ' => 'Fidži',
+ 'FR' => 'France',
+ 'FM' => 'Mikronésie',
+ 'GA' => 'Gabun',
+ 'GB' => 'Spojené království',
+ 'GE' => 'Georgia',
+ 'GH' => 'Ghana',
+ 'GN' => 'Guinea',
+ 'GM' => 'Gambia',
+ 'GW' => 'Guinea-Bissau',
+ 'GQ' => 'Rovníková Guinea',
+ 'GR' => 'Řecko',
+ 'GD' => 'Grenada',
+ 'GT' => 'Guatemala',
+ 'GY' => 'Guyana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Chorvatsko',
+ 'HT' => 'Haiti',
+ 'HU' => 'Maďarsko',
+ 'ID' => 'Indonésie',
+ 'IN' => 'India',
+ 'IE' => 'Irsko',
+ 'IR' => 'Iran',
+ 'IQ' => 'Irák',
+ 'IS' => 'Island',
+ 'IL' => 'Israel',
+ 'IT' => 'Itálie',
+ 'JM' => 'Jamajka',
+ 'JO' => 'Jordan',
+ 'JP' => 'Japan',
+ 'KZ' => 'Kazachstán',
+ 'KE' => 'Keňa',
+ 'KG' => 'Kyrgyzstán',
+ 'KH' => 'Kambodža',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Svatý Kryštof a Nevis',
+ 'KR' => 'Jižní Korea',
+ 'KW' => 'Kuvajt',
+ 'LA' => 'Laos',
+ 'LB' => 'Lebanon',
+ 'LR' => 'Libérie',
+ 'LY' => 'Libya',
+ 'LC' => 'Svatá Lucie',
+ 'LI' => 'Lichtenštejnsko',
+ 'LK' => 'Srí Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Litva',
+ 'LU' => 'Luxembourg',
+ 'LV' => 'Latvia',
+ 'MA' => 'Maroko',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldavsko',
+ 'MG' => 'Madagaskar',
+ 'MV' => 'Maledivy',
+ 'MX' => 'Mexico',
+ 'MH' => 'Marshallovy ostrovy',
+ 'MK' => 'Macedonia',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Myanmar',
+ 'ME' => 'Montenegro',
+ 'MN' => 'Mongolia',
+ 'MZ' => 'Mozambik',
+ 'MR' => 'Mauritania',
+ 'MU' => 'Mauricius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Malajsie',
+ 'NA' => 'Namibie',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigeria',
+ 'NI' => 'Nikaragua',
+ 'NL' => 'Netherlands',
+ 'NO' => 'Norway',
+ 'NP' => 'Nepál',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Nový Zéland',
+ 'OM' => 'Omán',
+ 'PK' => 'Pákistán',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filipíny',
+ 'PW' => 'Palau',
+ 'PG' => 'Papua Nová Guinea',
+ 'PL' => 'Polsko',
+ 'KP' => 'Severní Korea',
+ 'PT' => 'Portugal',
+ 'PY' => 'Paraguay',
+ 'QA' => 'Katar',
+ 'RO' => 'Rumunsko',
+ 'RU' => 'Russia',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Saúdská Arábie',
+ 'SD' => 'Súdán',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapur',
+ 'SB' => 'Šalamounovy ostrovy',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalia',
+ 'RS' => 'Srbsko',
+ 'SS' => 'Jižní Súdán',
+ 'ST' => 'São Tomé a Príncipe',
+ 'SR' => 'Surinam',
+ 'SK' => 'Slovakia',
+ 'SI' => 'Slovinsko',
+ 'SE' => 'Švédsko',
+ 'SZ' => 'Svazijsko',
+ 'SC' => 'Seychely',
+ 'SY' => 'Sýrie',
+ 'TD' => 'Čad',
+ 'TG' => 'Togo',
+ 'TH' => 'Thajsko',
+ 'TJ' => 'Tádžikistán',
+ 'TM' => 'Turkmenistán',
+ 'TL' => 'Timor-Leste',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad a Tobago',
+ 'TN' => 'Tunisko',
+ 'TR' => 'Turecko',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzanie',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraine',
+ 'UY' => 'Uruguay',
+ 'US' => 'United States',
+ 'UZ' => 'Uzbekistán',
+ 'VA' => 'Vatikán',
+ 'VC' => 'Svatý Vincenc a Grenadiny',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Vietnam',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Jemen',
+ 'ZA' => 'Jižní Afrika',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
diff --git a/app/config/locale/cz.php b/app/config/locale/cz.php
new file mode 100644
index 0000000000..4162906ca2
--- /dev/null
+++ b/app/config/locale/cz.php
@@ -0,0 +1,21 @@
+ '"Umění moudrosti je umění vědět, co přehlédnout."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'cz',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s tým',
+ 'auth.emails.confirm.title' => 'Potvrzení účtu',
+ 'auth.emails.confirm.body' => 'cz.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Resetovat heslo',
+ 'auth.emails.recovery.body' => 'cz.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Pozvánka do týmu% s na% s',
+ 'auth.emails.invitation.body' => 'cz.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Neznámý',
+
+ 'countries' => include 'cz.countries.php',
+ 'continents' => include 'cz.continents.php',
+];
diff --git a/app/config/locale/es.countries.php b/app/config/locale/es.countries.php
index a0c11ae5c6..18fe488c17 100644
--- a/app/config/locale/es.countries.php
+++ b/app/config/locale/es.countries.php
@@ -37,14 +37,14 @@ return [
'CI' => 'Costa de Marfil',
'CM' => 'Camerún',
'CD' => 'República Democrática del Congo',
- 'CG' => 'República del congo',
+ 'CG' => 'República del Congo',
'CO' => 'Colombia',
'KM' => 'Comoras',
'CV' => 'Cabo Verde',
'CR' => 'Costa Rica',
'CU' => 'Cuba',
'CY' => 'Chipre',
- 'CZ' => 'Chequia',
+ 'CZ' => 'República Checa',
'DE' => 'Alemania',
'DJ' => 'Yibuti',
'DM' => 'Dominica',
@@ -80,7 +80,7 @@ return [
'ID' => 'Indonesia',
'IN' => 'India',
'IE' => 'Irlanda',
- 'IR' => 'Iran',
+ 'IR' => 'Irán',
'IQ' => 'Irak',
'IS' => 'Islandia',
'IL' => 'Israel',
@@ -115,7 +115,7 @@ return [
'MX' => 'Mexico',
'MH' => 'Islas Marshall',
'MK' => 'Macedonia',
- 'ML' => 'Mali',
+ 'ML' => 'Malí',
'MT' => 'Malta',
'MM' => 'Myanmar',
'ME' => 'Montenegro',
diff --git a/app/config/locale/es.php b/app/config/locale/es.php
index 0a56743689..cc8e82b7bd 100644
--- a/app/config/locale/es.php
+++ b/app/config/locale/es.php
@@ -6,7 +6,7 @@ return [
'settings.direction' => 'ltr',
// Service - Users
- 'auth.emails.team' => '%s Equipo',
+ 'auth.emails.team' => 'Equipo %s',
'auth.emails.confirm.title' => 'Confirmación de la cuenta',
'auth.emails.confirm.body' => 'es.email.auth.confirm.tpl',
'auth.emails.recovery.title' => 'Reestablecer contraseña',
diff --git a/app/config/locale/hi.php b/app/config/locale/hi.php
index 95dced4f53..f48dcdb70a 100644
--- a/app/config/locale/hi.php
+++ b/app/config/locale/hi.php
@@ -1,7 +1,7 @@
'"बुद्धिमान होने कला यह जानने की कला है कि क्या अनदेखी करना चाहिए।"', // This is the line printed in the homepage and console 'view-source'
+ 'settings.inspire' => '"यह जान लेना की क्या अनदेखा किया जा सकता है, ही बुद्धिमता का प्रतीक है |"', // This is the line printed in the homepage and console 'view-source'
'settings.locale' => 'hi',
'settings.direction' => 'ltr',
@@ -14,7 +14,7 @@ return [
'auth.emails.invitation.title' => 'इनविटेशन %s टीम %s',
'auth.emails.invitation.body' => 'hi.email.auth.invitation.tpl',
- 'locale.country.unknown' => 'Unknown',
+ 'locale.country.unknown' => 'अज्ञात',
'countries' => include 'hi.countries.php',
'continents' => include 'hi.continents.php',
diff --git a/app/config/locale/hu.continents.php b/app/config/locale/hu.continents.php
new file mode 100644
index 0000000000..57a88d6f7c
--- /dev/null
+++ b/app/config/locale/hu.continents.php
@@ -0,0 +1,11 @@
+ 'Afrika',
+ 'AN' => 'Antarktika',
+ 'AS' => 'Ázsia',
+ 'EU' => 'Európa',
+ 'NA' => 'Észak-Amerika',
+ 'OC' => 'Óceánia',
+ 'SA' => 'Dél-Amerika',
+];
diff --git a/app/config/locale/hu.countries.php b/app/config/locale/hu.countries.php
new file mode 100644
index 0000000000..949313c35a
--- /dev/null
+++ b/app/config/locale/hu.countries.php
@@ -0,0 +1,198 @@
+ 'Afganisztán',
+ 'AO' => 'Angola',
+ 'AL' => 'Albánia',
+ 'AD' => 'Andorra',
+ 'AE' => 'Egyesült Arab Emírségek',
+ 'AR' => 'Argentína',
+ 'AM' => 'Örményország',
+ 'AG' => 'Antigua és Barbuda',
+ 'AU' => 'Ausztrália',
+ 'AT' => 'Ausztria',
+ 'AZ' => 'Azerbajdzsán',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgium',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Banglades',
+ 'BG' => 'Bulgaria',
+ 'BH' => 'Bahrein',
+ 'BS' => 'Bahamák',
+ 'BA' => 'Bosznia-Hercegovina',
+ 'BY' => 'Fehéroroszország',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolívia',
+ 'BR' => 'Brazília',
+ 'BB' => 'Barbadosz',
+ 'BN' => 'Brunei',
+ 'BT' => 'Bhután',
+ 'BW' => 'Botswana',
+ 'CF' => 'Közép-afrikai Köztársaság',
+ 'CA' => 'Kanada',
+ 'CH' => 'Svájc',
+ 'CL' => 'Chile',
+ 'CN' => 'Kína',
+ 'CI' => 'Elefántcsontpart',
+ 'CM' => 'Kamerun',
+ 'CD' => 'Kongói Demokratikus Köztársaság',
+ 'CG' => 'Kongói Köztársaság',
+ 'CO' => 'Kolumbia',
+ 'KM' => 'Comoros',
+ 'CV' => 'Zöld-foki Köztársaság',
+ 'CR' => 'Costa Rica',
+ 'CU' => 'Kuba',
+ 'CY' => 'Ciprus',
+ 'CZ' => 'Csehország',
+ 'DE' => 'Németország',
+ 'DJ' => 'Djibouti',
+ 'DM' => 'Dominika',
+ 'DK' => 'Dánia',
+ 'DO' => 'Dominikai Köztársaság',
+ 'DZ' => 'Algíria',
+ 'EC' => 'Ecuador',
+ 'EG' => 'Egyiptom',
+ 'ER' => 'Eritrea',
+ 'ES' => 'Spanyolország',
+ 'EE' => 'Észtország',
+ 'ET' => 'Etiópia',
+ 'FI' => 'Finnország',
+ 'FJ' => 'Fidzsi-szigetek',
+ 'FR' => 'Franciaország',
+ 'FM' => 'Mikronéziai Szövetségi Államok',
+ 'GA' => 'Gabon',
+ 'GB' => 'Egyesült Királyság',
+ 'GE' => 'Grúzia',
+ 'GH' => 'Ghána',
+ 'GN' => 'Guinea',
+ 'GM' => 'Gambia',
+ 'GW' => 'Guinea-Bissau',
+ 'GQ' => 'Egyenlítői-Guinea',
+ 'GR' => 'Görögország',
+ 'GD' => 'Grenada',
+ 'GT' => 'Guatemala',
+ 'GY' => 'Guyana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Horvátország',
+ 'HT' => 'Haiti',
+ 'HU' => 'Magyarország',
+ 'ID' => 'Indonézia',
+ 'IN' => 'India',
+ 'IE' => 'Írország',
+ 'IR' => 'Irán',
+ 'IQ' => 'Iraq',
+ 'IS' => 'Izland',
+ 'IL' => 'Izrael',
+ 'IT' => 'Olaszország',
+ 'JM' => 'Jamaika',
+ 'JO' => 'Jordánia',
+ 'JP' => 'Japán',
+ 'KZ' => 'Kazakhsztán',
+ 'KE' => 'Kenya',
+ 'KG' => 'Kirgizisztán',
+ 'KH' => 'Kambodzsa',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Saint Kitts és Nevis',
+ 'KR' => 'Dél Korea',
+ 'KW' => 'Kuwait',
+ 'LA' => 'Laosz',
+ 'LB' => 'Libanon',
+ 'LR' => 'Libéria',
+ 'LY' => 'Líbia',
+ 'LC' => 'Saint Lucia',
+ 'LI' => 'Liechtenstein',
+ 'LK' => 'Sri Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Litvánia',
+ 'LU' => 'Luxembourg',
+ 'LV' => 'Lettország',
+ 'MA' => 'Marokkó',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldova',
+ 'MG' => 'Madagaszkár',
+ 'MV' => 'Maldív-szigetek',
+ 'MX' => 'Mexikó',
+ 'MH' => 'Marshall-szigetek',
+ 'MK' => 'Macedónia',
+ 'ML' => 'Mali',
+ 'MT' => 'Málta',
+ 'MM' => 'Mianmar',
+ 'ME' => 'Montenegró',
+ 'MN' => 'Mongólia',
+ 'MZ' => 'Mozambik',
+ 'MR' => 'Mauritánia',
+ 'MU' => 'Mauritius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Malajzia',
+ 'NA' => 'Namíbia',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigeria',
+ 'NI' => 'Nikaragua',
+ 'NL' => 'Hollandia',
+ 'NO' => 'Norvégia',
+ 'NP' => 'Nepál',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Új-Zéland',
+ 'OM' => 'Omán',
+ 'PK' => 'Pakisztán',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Fülöp-szigetek',
+ 'PW' => 'Palau',
+ 'PG' => 'Pápua Új-Guinea',
+ 'PL' => 'Lengyelország',
+ 'KP' => 'Észak-Korea',
+ 'PT' => 'Portugália',
+ 'PY' => 'Paraguay',
+ 'QA' => 'Qatar',
+ 'RO' => 'Románia',
+ 'RU' => 'Oroszország',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Szaúd-Arábia',
+ 'SD' => 'Szudán',
+ 'SN' => 'Szenegál',
+ 'SG' => 'Szingapúr',
+ 'SB' => 'Salamon-szigetek',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'El Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Szomália',
+ 'RS' => 'Szerbia',
+ 'SS' => 'Dél-Szudán',
+ 'ST' => 'São Tomé és Príncipe',
+ 'SR' => 'Szurinám',
+ 'SK' => 'Szlovákia',
+ 'SI' => 'Szlovénia',
+ 'SE' => 'Svédország',
+ 'SZ' => 'Swaziland',
+ 'SC' => 'Seychelles-szigetek',
+ 'SY' => 'Szíria',
+ 'TD' => 'Csád',
+ 'TG' => 'Togo',
+ 'TH' => 'Tájföld',
+ 'TJ' => 'Tádzsikisztán',
+ 'TM' => 'Türkmenisztán',
+ 'TL' => 'Timor-Leste',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad és Tobago',
+ 'TN' => 'Tunézia',
+ 'TR' => 'Törökország',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzania',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraina',
+ 'UY' => 'Uruguay',
+ 'US' => 'Egyesült Államok',
+ 'UZ' => 'Üzbegisztán',
+ 'VA' => 'Vatikánváros',
+ 'VC' => 'Saint Vincent és a Grenadine-szigetek',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Vietnám',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Szamoa',
+ 'YE' => 'Yemen',
+ 'ZA' => 'Dél-Afrikai Köztársaság',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
diff --git a/app/config/locale/hu.php b/app/config/locale/hu.php
new file mode 100644
index 0000000000..a4ca49b5c2
--- /dev/null
+++ b/app/config/locale/hu.php
@@ -0,0 +1,21 @@
+ '"The art of being wise is the art of knowing what to overlook."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'hu',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s Csapat',
+ 'auth.emails.confirm.title' => 'Fiók megerősítés',
+ 'auth.emails.confirm.body' => 'hu.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Jelszó Visszaállítás',
+ 'auth.emails.recovery.body' => 'hu.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Meghívás a %s Csapathoz %s',
+ 'auth.emails.invitation.body' => 'hu.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Ismeretlen',
+
+ 'countries' => include 'hu.countries.php',
+ 'continents' => include 'hu.continents.php',
+];
diff --git a/app/config/locale/id.php b/app/config/locale/id.php
index 09f3775118..3997a4c50b 100644
--- a/app/config/locale/id.php
+++ b/app/config/locale/id.php
@@ -1,7 +1,7 @@
'"The art of being wise is the art of knowing what to overlook."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.inspire' => '"Seni menjadi bijak adalah seni mengetahui apa yang harus diabaikan."', // This is the line printed in the homepage and console 'view-source'
'settings.locale' => 'id',
'settings.direction' => 'ltr',
diff --git a/app/config/locale/it.countries.php b/app/config/locale/it.countries.php
index cf8a339b1b..ce4e56349d 100644
--- a/app/config/locale/it.countries.php
+++ b/app/config/locale/it.countries.php
@@ -29,22 +29,22 @@ return [
'BN' => 'Brunei',
'BT' => 'Bhutan',
'BW' => 'Botswana',
- 'CF' => 'Repubblica centrafricana',
+ 'CF' => 'Repubblica Centrafricana',
'CA' => 'Canada',
'CH' => 'Svizzera',
'CL' => 'Cile',
'CN' => 'Cina',
'CI' => 'Costa d\'Avorio',
'CM' => 'Camerun',
- 'CD' => 'DR Congo',
+ 'CD' => 'Repubblica Democratica del Congo',
'CG' => 'Repubblica del Congo',
'CO' => 'Colombia',
- 'KM' => 'Comore',
+ 'KM' => 'Unione delle Comore',
'CV' => 'Capo Verde',
'CR' => 'Costa Rica',
'CU' => 'Cuba',
'CY' => 'Cipro',
- 'CZ' => 'Czechia',
+ 'CZ' => 'Repubblica Ceca',
'DE' => 'Germania',
'DJ' => 'Gibuti',
'DM' => 'Dominica',
@@ -59,7 +59,7 @@ return [
'ET' => 'Etiopia',
'FI' => 'Finlandia',
'FJ' => 'Figi',
- 'FR' => 'France',
+ 'FR' => 'Francia',
'FM' => 'Micronesia',
'GA' => 'Gabon',
'GB' => 'Regno Unito',
@@ -140,7 +140,7 @@ return [
'PE' => 'Perù',
'PH' => 'Filippine',
'PW' => 'Palau',
- 'PG' => 'Papua New Guinea',
+ 'PG' => 'Papua Nuova Guinea',
'PL' => 'Polonia',
'KP' => 'Corea del Nord',
'PT' => 'Portogallo',
@@ -160,7 +160,7 @@ return [
'SO' => 'Somalia',
'RS' => 'Serbia',
'SS' => 'Sudan del Sud',
- 'ST' => 'São Tomé and Príncipe',
+ 'ST' => 'São Tomé e Príncipe',
'SR' => 'Suriname',
'SK' => 'Slovacchia',
'SI' => 'Slovenia',
diff --git a/app/config/locale/it.php b/app/config/locale/it.php
index dfc8d11976..3cccea78eb 100644
--- a/app/config/locale/it.php
+++ b/app/config/locale/it.php
@@ -4,15 +4,18 @@ return [
'settings.inspire' => '"L\'arte di essere saggi è l\'arte di sapere cosa trascurare."', // Questa è la riga stampata nella homepage e nella console 'view-source'
'settings.locale' => 'it',
'settings.direction' => 'ltr',
+
// Servizio - Utenti
- 'auth.emails.team' => '%s Squadra',
+ 'auth.emails.team' => 'Team %s',
'auth.emails.confirm.title' => 'Conferma dell\'account',
'auth.emails.confirm.body' => 'en.email.auth.confirm.tpl',
- 'auth.emails.recovery.title' => 'Reimpostazione della password',
+ 'auth.emails.recovery.title' => 'Recupero password',
'auth.emails.recovery.body' => 'en.email.auth.recovery.tpl',
- 'auth.emails.invitation.title' => 'Invito a %s squadra %s',
+ 'auth.emails.invitation.title' => 'Invito al team %s di %s',
'auth.emails.invitation.body' => 'en.email.auth.invitation.tpl',
+
'locale.country.unknown' => 'Sconosciuto',
+
'countries' => include 'it.countries.php',
'continents' => include 'it.continents.php',
];
diff --git a/app/config/locale/jv.continents.php b/app/config/locale/jv.continents.php
new file mode 100644
index 0000000000..0170466ce4
--- /dev/null
+++ b/app/config/locale/jv.continents.php
@@ -0,0 +1,11 @@
+ 'Afrika',
+ 'AN' => 'Antartika',
+ 'AS' => 'Asia',
+ 'EU' => 'Eropa',
+ 'NA' => 'Amérika Lor',
+ 'OC' => 'Oseania',
+ 'SA' => 'Amérika Kidul',
+];
diff --git a/app/config/locale/jv.countries.php b/app/config/locale/jv.countries.php
new file mode 100644
index 0000000000..fd48dfa891
--- /dev/null
+++ b/app/config/locale/jv.countries.php
@@ -0,0 +1,198 @@
+ 'Afghanistan',
+ 'AO' => 'Angola',
+ 'AL' => 'Albania',
+ 'AD' => 'Andorra',
+ 'AE' => 'Uni Emirat Arab',
+ 'AR' => 'Argentina',
+ 'AM' => 'Armenia',
+ 'AG' => 'Antigua lan Barbuda',
+ 'AU' => 'Australia',
+ 'AT' => 'Austria',
+ 'AZ' => 'Azerbaijan',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgia',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladesh',
+ 'BG' => 'Bulgaria',
+ 'BH' => 'Bahrain',
+ 'BS' => 'Bahamas',
+ 'BA' => 'Bosnia lan Herzegovina',
+ 'BY' => 'Belarus',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolivia',
+ 'BR' => 'Brasil',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brunei',
+ 'BT' => 'Bhutan',
+ 'BW' => 'Botswana',
+ 'CF' => 'Republik Afrika Tengah',
+ 'CA' => 'Kanada',
+ 'CH' => 'Swiss',
+ 'CL' => 'Chile',
+ 'CN' => 'China',
+ 'CI' => 'Pantai Gading',
+ 'CM' => 'Kamerun',
+ 'CD' => 'DR Kongo',
+ 'CG' => 'Republik Kongo',
+ 'CO' => 'Kolombia',
+ 'KM' => 'Comoros',
+ 'CV' => 'Cape Verde',
+ 'CR' => 'Costa Rica',
+ 'CU' => 'Kuba',
+ 'CY' => 'Siprus',
+ 'CZ' => 'Czechia',
+ 'DE' => 'Jerman',
+ 'DJ' => 'Djibouti',
+ 'DM' => 'Dominika',
+ 'DK' => 'Denmark',
+ 'DO' => 'Republik Dominika',
+ 'DZ' => 'Algeria',
+ 'EC' => 'Ekuador',
+ 'EG' => 'Mesir',
+ 'ER' => 'Eritrea',
+ 'ES' => 'Spanyol',
+ 'EE' => 'Estonia',
+ 'ET' => 'Ethiopia',
+ 'FI' => 'Finlandia',
+ 'FJ' => 'Fiji',
+ 'FR' => 'Prancis',
+ 'FM' => 'Mikronesia',
+ 'GA' => 'Gabon',
+ 'GB' => 'Inggris',
+ 'GE' => 'Georgia',
+ 'GH' => 'Ghana',
+ 'GN' => 'Guinea',
+ 'GM' => 'Gambia',
+ 'GW' => 'Guinea-Bissau',
+ 'GQ' => 'Guinea Khatulistiwa',
+ 'GR' => 'Yunani',
+ 'GD' => 'Grenada',
+ 'GT' => 'Guatemala',
+ 'GY' => 'Guyana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Croatia',
+ 'HT' => 'Haiti',
+ 'HU' => 'Hongaria',
+ 'ID' => 'Indonesia',
+ 'IN' => 'India',
+ 'IE' => 'Irlandia',
+ 'IR' => 'Iran',
+ 'IQ' => 'Irak',
+ 'IS' => 'Islandia',
+ 'IL' => 'Israel',
+ 'IT' => 'Italia',
+ 'JM' => 'Jamaika',
+ 'JO' => 'Yordania',
+ 'JP' => 'Jepang',
+ 'KZ' => 'Kazakhstan',
+ 'KE' => 'Kenya',
+ 'KG' => 'Kyrgyzstan',
+ 'KH' => 'Kamboja',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Saint Kitts lan Nevis',
+ 'KR' => 'Korea Kidul',
+ 'KW' => 'Kuwait',
+ 'LA' => 'Laos',
+ 'LB' => 'Libanon',
+ 'LR' => 'Liberia',
+ 'LY' => 'Libya',
+ 'LC' => 'Saint Lucia',
+ 'LI' => 'Liechtenstein',
+ 'LK' => 'Sri Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Lithuania',
+ 'LU' => 'Luksemburg',
+ 'LV' => 'Latvia',
+ 'MA' => 'Maroko',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldova',
+ 'MG' => 'Madagascar',
+ 'MV' => 'Maldives',
+ 'MX' => 'Meksiko',
+ 'MH' => 'Kepulauan Marshall',
+ 'MK' => 'Makedonia',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Myanmar',
+ 'ME' => 'Montenegro',
+ 'MN' => 'Mongolia',
+ 'MZ' => 'Mozambique',
+ 'MR' => 'Mauritania',
+ 'MU' => 'Mauritius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Malaysia',
+ 'NA' => 'Namibia',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigeria',
+ 'NI' => 'Nikaragua',
+ 'NL' => 'Belanda',
+ 'NO' => 'Norwegia',
+ 'NP' => 'Nepal',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Selandia Anyar',
+ 'OM' => 'Oman',
+ 'PK' => 'Pakistan',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filipina',
+ 'PW' => 'Palau',
+ 'PG' => 'Papua Nugini',
+ 'PL' => 'Polandia',
+ 'KP' => 'Korea Lor',
+ 'PT' => 'Portugal',
+ 'PY' => 'Paraguay',
+ 'QA' => 'Qatar',
+ 'RO' => 'Romania',
+ 'RU' => 'Rusia',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Arab Saudi',
+ 'SD' => 'Sudan',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapura',
+ 'SB' => 'Kepulauan Solomon',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'El Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalia',
+ 'RS' => 'Serbia',
+ 'SS' => 'Sudan Kidul',
+ 'ST' => 'São Tomé lan Príncipe',
+ 'SR' => 'Suriname',
+ 'SK' => 'Slowakia',
+ 'SI' => 'Slovenia',
+ 'SE' => 'Swedia',
+ 'SZ' => 'Swaziland',
+ 'SC' => 'Seychelles',
+ 'SY' => 'Suriah',
+ 'TD' => 'Chad',
+ 'TG' => 'Togo',
+ 'TH' => 'Thailand',
+ 'TJ' => 'Tajikistan',
+ 'TM' => 'Turkmenistan',
+ 'TL' => 'Timor-Leste',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad lan Tobago',
+ 'TN' => 'Tunisia',
+ 'TR' => 'Turki',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzania',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraina',
+ 'UY' => 'Uruguay',
+ 'US' => 'Amerika Serikat',
+ 'UZ' => 'Uzbekistan',
+ 'VA' => 'Kota Vatikan',
+ 'VC' => 'Saint Vincent lan Grenadines',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Vietnam',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Yaman',
+ 'ZA' => 'Afrika Kidul',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
diff --git a/app/config/locale/jv.php b/app/config/locale/jv.php
new file mode 100644
index 0000000000..2326430e57
--- /dev/null
+++ b/app/config/locale/jv.php
@@ -0,0 +1,21 @@
+ '"Kesenian sing wicaksana yaiku seni sing ngerti apa sing kudu dilalekake."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'jv',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => 'Tim %s',
+ 'auth.emails.confirm.title' => 'Konfirmasi akun',
+ 'auth.emails.confirm.body' => 'jv.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Reset Sandi',
+ 'auth.emails.recovery.body' => 'jv.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Undangan menyang %s Tim ing %s',
+ 'auth.emails.invitation.body' => 'jv.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Ora dingerteni',
+
+ 'countries' => include 'jv.countries.php',
+ 'continents' => include 'jv.continents.php',
+];
diff --git a/app/config/locale/lt.continents.php b/app/config/locale/lt.continents.php
new file mode 100644
index 0000000000..0fb4f37b72
--- /dev/null
+++ b/app/config/locale/lt.continents.php
@@ -0,0 +1,10 @@
+ 'Afrika',
+ 'AN' => 'Antarktida',
+ 'AS' => 'Azija',
+ 'EU' => 'Europa',
+ 'NA' => 'Šiaurės Amerika',
+ 'OC' => 'Okeanija',
+ 'SA' => 'Pietų Amerika',
+];
diff --git a/app/config/locale/lt.countries.php b/app/config/locale/lt.countries.php
new file mode 100644
index 0000000000..b34622c071
--- /dev/null
+++ b/app/config/locale/lt.countries.php
@@ -0,0 +1,198 @@
+ 'Afganistanas',
+ 'AO' => 'Angola',
+ 'AL' => 'Albanija',
+ 'AD' => 'Andora',
+ 'AE' => 'Jungtiniai Arabų Emyratai',
+ 'AR' => 'Argentina',
+ 'AM' => 'Armėnija',
+ 'AG' => 'Antigva ir Barbuda',
+ 'AU' => 'Australija',
+ 'AT' => 'Austrija',
+ 'AZ' => 'Azerbaidžanas',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgija',
+ 'BJ' => 'Beninas',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladešas',
+ 'BG' => 'Bulgarija',
+ 'BH' => 'Bahreinas',
+ 'BS' => 'Bahamai',
+ 'BA' => 'Bosnija ir Hercegovina',
+ 'BY' => 'Baltarusija',
+ 'BZ' => 'Baileys',
+ 'BO' => 'Bolivija',
+ 'BR' => 'Brazilija',
+ 'BB' => 'Barbadosas',
+ 'BN' => 'Brunėjus',
+ 'BT' => 'Butanas',
+ 'BW' => 'Botsvana',
+ 'CF' => 'Centrinės Afrikos Respublika',
+ 'CA' => 'Kanada',
+ 'CH' => 'Šveicarija',
+ 'CL' => 'Čilė',
+ 'CN' => 'Kinija',
+ 'CI' => 'Dramblio Kaulo Krantas',
+ 'CM' => 'Kamerūnas',
+ 'CD' => 'Kongo Demokratinė Respublika',
+ 'CG' => 'Kongo Respublika',
+ 'CO' => 'Kolumbija',
+ 'KM' => 'Komorai',
+ 'CV' => 'Žaliasis Kyšulys',
+ 'CR' => 'Kosta Rika',
+ 'CU' => 'Kuba',
+ 'CY' => 'Kipras',
+ 'CZ' => 'Čekija',
+ 'DE' => 'Vokietija',
+ 'DJ' => 'Džibutis',
+ 'DM' => 'Dominika',
+ 'DK' => 'Danija',
+ 'DO' => 'Dominikos Respublika',
+ 'DZ' => 'Alžyras',
+ 'EC' => 'Ekvadoras',
+ 'EG' => 'Egiptas',
+ 'ER' => 'Eritrėja',
+ 'ES' => 'Ispanija',
+ 'EE' => 'Estija',
+ 'ET' => 'Etiopija',
+ 'FI' => 'Suomija',
+ 'FJ' => 'Fidžis',
+ 'FR' => 'Prancūzija',
+ 'FM' => 'Mikronezija',
+ 'GA' => 'Gabonas',
+ 'GB' => 'Jungtinė Karalystė',
+ 'GE' => 'Gruzija',
+ 'GH' => 'Gana',
+ 'GN' => 'Gvinėja',
+ 'GM' => 'Gambija',
+ 'GW' => 'Bisau Gvinėja',
+ 'GQ' => 'Pusiaujo Gvinėja',
+ 'GR' => 'Graikija',
+ 'GD' => 'Grenada',
+ 'GT' => 'Gvatemala',
+ 'GY' => 'Gajana',
+ 'HN' => 'Hondūras',
+ 'HR' => 'Kroatija',
+ 'HT' => 'Haitis',
+ 'HU' => 'Vengrija',
+ 'ID' => 'Indonezija',
+ 'IN' => 'Indija',
+ 'IE' => 'Airija',
+ 'IR' => 'Iranas',
+ 'IQ' => 'Irakas',
+ 'IS' => 'Islandija',
+ 'IL' => 'Izraelis',
+ 'IT' => 'Italija',
+ 'JM' => 'Jamaika',
+ 'JO' => 'Jordanija',
+ 'JP' => 'Japonija',
+ 'KZ' => 'Kazachstanas',
+ 'KE' => 'Kenija',
+ 'KG' => 'Kirgizija',
+ 'KH' => 'Kambodža',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Sent Kitsas ir Nevis',
+ 'KR' => 'Pietų Korėja',
+ 'KW' => 'Kuveitas',
+ 'LA' => 'Laosas',
+ 'LB' => 'Libanas',
+ 'LR' => 'Liberija',
+ 'LY' => 'Libija',
+ 'LC' => 'Sent Lusija',
+ 'LI' => 'Lichtenšteinas',
+ 'LK' => 'Šri Lanka',
+ 'LS' => 'Lesotas',
+ 'LT' => 'Lietuva',
+ 'LU' => 'Liuksemburgas',
+ 'LV' => 'Latvija',
+ 'MA' => 'Marokas',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldova',
+ 'MG' => 'Madagaskaras',
+ 'MV' => 'Maldyvai',
+ 'MX' => 'Meksika',
+ 'MH' => 'Maršalo salos',
+ 'MK' => 'Makedonija',
+ 'ML' => 'Malis',
+ 'MT' => 'Malta',
+ 'MM' => 'Mianmaras',
+ 'ME' => 'Juodkalnija',
+ 'MN' => 'Mongolija',
+ 'MZ' => 'Mozambikas',
+ 'MR' => 'Mauritanija',
+ 'MU' => 'Mauricijus',
+ 'MW' => 'Malavis',
+ 'MY' => 'Malaizija',
+ 'NA' => 'Namibija',
+ 'NE' => 'Nigeris',
+ 'NG' => 'Nigerija',
+ 'NI' => 'Nikaragva',
+ 'NL' => 'Nyderlandai',
+ 'NE' => 'Norvegija',
+ 'NP' => 'Nepalas',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Naujoji Zelandija',
+ 'OM' => 'Omanas',
+ 'PK' => 'Pakistanas',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filipinai',
+ 'PW' => 'Palau',
+ 'PG' => 'Papua Naujoji Gvinėja',
+ 'PL' => 'Lenkija',
+ 'KP' => 'Šiaurės Korėja',
+ 'PT' => 'Portugalija',
+ 'PY' => 'Paragvajus',
+ 'QA' => 'Qatar',
+ 'RO' => 'Rumunija',
+ 'RU' => 'Rusija',
+ 'RW' => 'Ruanda',
+ 'SA' => 'Saudo Arabija',
+ 'SD' => 'Sudanas',
+ 'SN' => 'Senegalas',
+ 'SG' => 'Singapūras',
+ 'SB' => 'Saliamono Salos',
+ 'SL' => 'Siera Leonė',
+ 'SV' => 'Salvadoras',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalis',
+ 'RS' => 'Serbija',
+ 'SS' => 'Pietų Sudanas',
+ 'ST' => 'San Tomė ir Prinsipė',
+ 'SR' => 'Surinamas',
+ 'SK' => 'Slovakija',
+ 'SI' => 'Slovėnija',
+ 'SE' => 'Švedija',
+ 'SZ' => 'Svazilandas',
+ 'SC' => 'Seišeliai',
+ 'SY' => 'Sirija',
+ 'TD' => 'Chadas',
+ 'TG' => 'Togo',
+ 'TH' => 'Tailandas',
+ 'TJ' => 'Tadžikistanas',
+ 'TM' => 'Turkmėnistanas',
+ 'TL' => 'Rytų Timoras',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidadas ir Tobagas',
+ 'TN' => 'Tunisas',
+ 'TR' => 'Turkija',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzanija',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraina',
+ 'UY' => 'Urugvajus',
+ 'US' => 'JAV',
+ 'UZ' => 'Uzbekistanas',
+ 'VA' => 'Vatikanas',
+ 'VC' => 'Sent Vinsentas ir Grenadinai',
+ 'VE' => 'Venesuela',
+ 'VN' => 'Vietnamas',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Jemenas',
+ 'ZA' => 'Pietų Afrika',
+ 'ZM' => 'Zambija',
+ 'ZW' => 'Zimbabvė',
+];
diff --git a/app/config/locale/lt.php b/app/config/locale/lt.php
new file mode 100644
index 0000000000..0ff7ab770e
--- /dev/null
+++ b/app/config/locale/lt.php
@@ -0,0 +1,16 @@
+ '"Menas būti išmintingu — tai menas žinoti, ką galima paniekti."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'lt',
+ 'settings.direction' => 'ltr',
+ 'auth.emails.team' => 'Komanda %s',
+ 'auth.emails.confirm.title' => 'Paskyros patvirtinimas',
+ 'auth.emails.confirm.body' => 'lt.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Atnaujinti slaptažodį',
+ 'auth.emails.recovery.body' => 'lt.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Pakeisti į komandą %s projektui %s',
+ 'auth.emails.invitation.body' => 'lt.email.auth.invitation.tpl',
+ 'locale.country.unknown' => 'Nežinoma',
+ 'countries' => include 'lt.countries.php',
+ 'continents' => include 'lt.continents.php',
+];
diff --git a/app/config/locale/no.php b/app/config/locale/no.php
new file mode 100644
index 0000000000..c09fe5d521
--- /dev/null
+++ b/app/config/locale/no.php
@@ -0,0 +1,21 @@
+ '"Kunsten å være klok er kunsten å vite hva man skal overse."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'no',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s Team',
+ 'auth.emails.confirm.title' => 'Bekreftelse av konto',
+ 'auth.emails.confirm.body' => 'no.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Reset passord',
+ 'auth.emails.recovery.body' => 'no.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Invitasjon til %s Team på %s',
+ 'auth.emails.invitation.body' => 'no.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Ukjent',
+
+ 'countries' => include 'no.countries.php',
+ 'continents' => include 'no.continents.php',
+];
diff --git a/app/config/locale/pl.continents.php b/app/config/locale/pl.continents.php
new file mode 100644
index 0000000000..a3ab2b28f9
--- /dev/null
+++ b/app/config/locale/pl.continents.php
@@ -0,0 +1,11 @@
+ 'Afryka',
+ 'AN' => 'Antarktyda',
+ 'AS' => 'Azja',
+ 'EU' => 'Europa',
+ 'NA' => 'Ameryka Północna',
+ 'OC' => 'Oceania',
+ 'SA' => 'Ameryka południowa',
+];
diff --git a/app/config/locale/pl.countries.php b/app/config/locale/pl.countries.php
new file mode 100644
index 0000000000..a0b4183c13
--- /dev/null
+++ b/app/config/locale/pl.countries.php
@@ -0,0 +1,198 @@
+ 'Afganistan',
+ 'AO' => 'Angola',
+ 'AL' => 'Albania',
+ 'AD' => 'Andora',
+ 'AE' => 'Zjednoczone Emiraty Arabskie',
+ 'AR' => 'Argentyna',
+ 'AM' => 'Armenia',
+ 'AG' => 'Antigua i Barbuda',
+ 'AU' => 'Australia',
+ 'AT' => 'Austria',
+ 'AZ' => 'Azerbejdżan',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgia',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladesz',
+ 'BG' => 'Bułgaria',
+ 'BH' => 'Bahrajn',
+ 'BS' => 'Bahamy',
+ 'BA' => 'Bośnia i Hercegowina',
+ 'BY' => 'Białoruś',
+ 'BZ' => 'Belize',
+ 'BO' => 'Boliwia',
+ 'BR' => 'Brazylia',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brunei',
+ 'BT' => 'Bhutan',
+ 'BW' => 'Botswana',
+ 'CF' => 'Republika Środkowoafrykańska',
+ 'CA' => 'Kanada',
+ 'CH' => 'Szwajcaria',
+ 'CL' => 'Chile',
+ 'CN' => 'Chiny',
+ 'CI' => 'Wybrzeże Kości Słoniowej',
+ 'CM' => 'Kamerun',
+ 'CD' => 'DR Congo',
+ 'CG' => 'Republika Konga',
+ 'CO' => 'Kolumbia',
+ 'KM' => 'Komory',
+ 'CV' => 'Republika Zielonego Przylądka',
+ 'CR' => 'Kostaryka',
+ 'CU' => 'Kuba',
+ 'CY' => 'Cypr',
+ 'CZ' => 'Czechy',
+ 'DE' => 'Niemcy',
+ 'DJ' => 'Dżibuti',
+ 'DM' => 'Dominica',
+ 'DK' => 'Dania',
+ 'DO' => 'Republika Dominikańska',
+ 'DZ' => 'Algieria',
+ 'EC' => 'Ekwador',
+ 'EG' => 'Egipt',
+ 'ER' => 'Erytrea',
+ 'ES' => 'Hiszpania',
+ 'EE' => 'Estonia',
+ 'ET' => 'Etiopia',
+ 'FI' => 'Finlandia',
+ 'FJ' => 'Fidżi',
+ 'FR' => 'Francja',
+ 'FM' => 'Mikronezja',
+ 'GA' => 'Gabon',
+ 'GB' => 'Wielka Brytania',
+ 'GE' => 'Georgia',
+ 'GH' => 'Ghana',
+ 'GN' => 'Gwinea',
+ 'GM' => 'Gambia',
+ 'GW' => 'Gwinea Bissau',
+ 'GQ' => 'Gwinea Równikowa',
+ 'GR' => 'Grecja',
+ 'GD' => 'Grenada',
+ 'GT' => 'Gwatemala',
+ 'GY' => 'Gujana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Chorwacja',
+ 'HT' => 'Haiti',
+ 'HU' => 'Węgry',
+ 'ID' => 'Indonezja',
+ 'IN' => 'Indie',
+ 'IE' => 'Irlandia',
+ 'IR' => 'Iran',
+ 'IQ' => 'Irak',
+ 'IS' => 'Islandia',
+ 'IL' => 'Israel',
+ 'IT' => 'Włochy',
+ 'JM' => 'Jamajka',
+ 'JO' => 'Jordan',
+ 'JP' => 'Japonia',
+ 'KZ' => 'Kazachstan',
+ 'KE' => 'Kenia',
+ 'KG' => 'Kirgistan',
+ 'KH' => 'Kambodża',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Saint Kitts i Nevis',
+ 'KR' => 'Korea Południowa',
+ 'KW' => 'Kuwejt',
+ 'LA' => 'Laos',
+ 'LB' => 'Liban',
+ 'LR' => 'Liberia',
+ 'LY' => 'Libia',
+ 'LC' => 'Saint Lucia',
+ 'LI' => 'Liechtenstein',
+ 'LK' => 'Sri Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Litwa',
+ 'LU' => 'Luksemburg',
+ 'LV' => 'Łotwa',
+ 'MA' => 'Maroko',
+ 'MC' => 'Monaco',
+ 'MD' => 'Mołdawia',
+ 'MG' => 'Madagaskar',
+ 'MV' => 'Malediwy',
+ 'MX' => 'Meksyk',
+ 'MH' => 'Wyspy Marshalla',
+ 'MK' => 'Macedonia',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Birma',
+ 'ME' => 'Czarnogóra',
+ 'MN' => 'Mongolia',
+ 'MZ' => 'Mozambik',
+ 'MR' => 'Mauretania',
+ 'MU' => 'Mauritius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Malezja',
+ 'NA' => 'Namibia',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigeria',
+ 'NI' => 'Nikaragua',
+ 'NL' => 'Holandia',
+ 'NO' => 'Norwegia',
+ 'NP' => 'Nepal',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Nowa Zelandia',
+ 'OM' => 'Oman',
+ 'PK' => 'Pakistan',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filipiny',
+ 'PW' => 'Palau',
+ 'PG' => 'Papua Nowa Gwinea',
+ 'PL' => 'Polska',
+ 'KP' => 'Korea Północna',
+ 'PT' => 'Portugalia',
+ 'PY' => 'Paragwaj',
+ 'QA' => 'Katar',
+ 'RO' => 'Rumunia',
+ 'RU' => 'Rosja',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Arabia Saudyjska',
+ 'SD' => 'Sudan',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapur',
+ 'SB' => 'Wyspy Salomona',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'Salwador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalia',
+ 'RS' => 'Serbia',
+ 'SS' => 'Sudan Południowy',
+ 'ST' => 'Wyspy Świętego Tomasza i Książęca',
+ 'SR' => 'Surinam',
+ 'SK' => 'Słowacja',
+ 'SI' => 'Słowenia',
+ 'SE' => 'Szwecja',
+ 'SZ' => 'Suazi',
+ 'SC' => 'Seszele',
+ 'SY' => 'Syria',
+ 'TD' => 'Czad',
+ 'TG' => 'Togo',
+ 'TH' => 'Tajlandia',
+ 'TJ' => 'Tadżykistan',
+ 'TM' => 'Turkmenistan',
+ 'TL' => 'Timor Wschodni',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trynidad i Tobago',
+ 'TN' => 'Tunezja',
+ 'TR' => 'Turcja',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzania',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraina',
+ 'UY' => 'Urugwaj',
+ 'US' => 'Stany Zjednoczone',
+ 'UZ' => 'Uzbekistan',
+ 'VA' => 'Watykan',
+ 'VC' => 'Saint Vincent i Grenadyny',
+ 'VE' => 'Wenezuela',
+ 'VN' => 'Wietnam',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Jemen',
+ 'ZA' => 'Republika Południowej Afryki',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
diff --git a/app/config/locale/pl.php b/app/config/locale/pl.php
new file mode 100644
index 0000000000..3c6ae708d4
--- /dev/null
+++ b/app/config/locale/pl.php
@@ -0,0 +1,21 @@
+ '"Sztuka bycia mądrym to sztuka wiedzieć, co przeoczyć."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'en',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => 'Zespół %s',
+ 'auth.emails.confirm.title' => 'Potwierdzenie konta',
+ 'auth.emails.confirm.body' => 'en.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Zresetowanie hasła',
+ 'auth.emails.recovery.body' => 'en.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Zaproszenie do zespołu %s - %s',
+ 'auth.emails.invitation.body' => 'en.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Nieznany',
+
+ 'countries' => include 'en.countries.php',
+ 'continents' => include 'en.continents.php',
+];
diff --git a/app/config/locale/pt-br.countries.php b/app/config/locale/pt-br.countries.php
index 3825ebe8f8..9c9bb99e14 100644
--- a/app/config/locale/pt-br.countries.php
+++ b/app/config/locale/pt-br.countries.php
@@ -20,15 +20,15 @@ return [
'BG' => 'Bulgária',
'BH' => 'Bahrein',
'BS' => 'Bahamas',
- 'BA' => 'Bósnia and Herzegovina',
- 'BY' => 'Bielorússia',
+ 'BA' => 'Bósnia e Herzegovina',
+ 'BY' => 'Bielorrússia',
'BZ' => 'Belize',
'BO' => 'Bolívia',
'BR' => 'Brasil',
'BB' => 'Barbados',
'BN' => 'Brunei',
'BT' => 'Butão',
- 'BW' => 'Botsuana',
+ 'BW' => 'Botswana',
'CF' => 'República Centro-Africana',
'CA' => 'Canadá',
'CH' => 'Suíça',
@@ -38,13 +38,13 @@ return [
'CM' => 'Camarões',
'CD' => 'República Democrática do Congo',
'CG' => 'República do Congo',
- 'CO' => 'Colombia',
+ 'CO' => 'Colômbia',
'KM' => 'Comores',
'CV' => 'Cabo Verde',
'CR' => 'Costa Rica',
'CU' => 'Cuba',
'CY' => 'Chipre',
- 'CZ' => 'Tchéquia',
+ 'CZ' => 'República Tcheca',
'DE' => 'Alemanha',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
@@ -53,14 +53,14 @@ return [
'DZ' => 'Argélia',
'EC' => 'Equador',
'EG' => 'Egito',
- 'ER' => 'Eritrea',
+ 'ER' => 'Eritreia',
'ES' => 'Espanha',
'EE' => 'Estônia',
'ET' => 'Etiópia',
'FI' => 'Finlândia',
'FJ' => 'Fiji',
'FR' => 'França',
- 'FM' => 'Micronésia',
+ 'FM' => 'Estados Federados da Micronésia',
'GA' => 'Gabão',
'GB' => 'Reino Unido',
'GE' => 'Geórgia',
@@ -171,7 +171,7 @@ return [
'TD' => 'Chade',
'TG' => 'Togo',
'TH' => 'Tailândia',
- 'TJ' => 'Tajisquistão',
+ 'TJ' => 'Tajiquistão',
'TM' => 'Turcomenistão',
'TL' => 'Timor-Leste',
'TO' => 'Tonga',
@@ -186,7 +186,7 @@ return [
'US' => 'Estados Unidos',
'UZ' => 'Uzbequistão',
'VA' => 'Cidade do Vaticano',
- 'VC' => 'São Vincente e Granadinas',
+ 'VC' => 'São Vicente e Granadinas',
'VE' => 'Venezuela',
'VN' => 'Vietnã',
'VU' => 'Vanuatu',
diff --git a/app/config/locale/pt-br.php b/app/config/locale/pt-br.php
index cc08622883..5fcd96fae0 100644
--- a/app/config/locale/pt-br.php
+++ b/app/config/locale/pt-br.php
@@ -1,7 +1,7 @@
'"The art of being wise is the art of knowing what to overlook."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.inspire' => '"A arte de ser sábio é a arte de saber o que deixar passar."', // This is the line printed in the homepage and console 'view-source'
'settings.locale' => 'pt-br',
'settings.direction' => 'ltr',
diff --git a/app/config/locale/ru.continents.php b/app/config/locale/ru.continents.php
new file mode 100644
index 0000000000..e07828bfb2
--- /dev/null
+++ b/app/config/locale/ru.continents.php
@@ -0,0 +1,11 @@
+ 'Африка',
+ 'AN' => 'Антарктика',
+ 'AS' => 'Азия',
+ 'EU' => 'Европа',
+ 'NA' => 'Северная Америка',
+ 'OC' => 'Океания',
+ 'SA' => 'Южная Америка',
+];
diff --git a/app/config/locale/ru.countries.php b/app/config/locale/ru.countries.php
new file mode 100644
index 0000000000..2b54288a4a
--- /dev/null
+++ b/app/config/locale/ru.countries.php
@@ -0,0 +1,198 @@
+ 'Афганистан',
+ 'AO' => 'Ангола',
+ 'AL' => 'Албания',
+ 'AD' => 'Андорра',
+ 'AE' => 'Объединенные Арабские Эмираты',
+ 'AR' => 'Аргентина',
+ 'AM' => 'Армения',
+ 'AG' => 'Антигуа и Барбуда',
+ 'AU' => 'Австралия',
+ 'AT' => 'Австрия',
+ 'AZ' => 'Азербайджан',
+ 'BI' => 'Бурунди',
+ 'BE' => 'Бельгия',
+ 'BJ' => 'Бенин',
+ 'BF' => 'Буркина Фасо',
+ 'BD' => 'Бангладеш',
+ 'BG' => 'Болгария',
+ 'BH' => 'Бахрейн',
+ 'BS' => 'Багамские острова',
+ 'BA' => 'Босния и Герцеговина',
+ 'BY' => 'Беларусь',
+ 'BZ' => 'Бейлиз',
+ 'BO' => 'Боливия',
+ 'BR' => 'Бразилия',
+ 'BB' => 'Барбадос',
+ 'BN' => 'Бруней',
+ 'BT' => 'Бутан',
+ 'BW' => 'Ботсвана',
+ 'CF' => 'Центральноафриканская Республика',
+ 'CA' => 'Канада',
+ 'CH' => 'Швейцария',
+ 'CL' => 'Чили',
+ 'CN' => 'Китай',
+ 'CI' => 'Кот-д\'Ивуар',
+ 'CM' => 'Камерун',
+ 'CD' => 'ДР Конго',
+ 'CG' => 'Республика Конго',
+ 'CO' => 'Колумбия',
+ 'KM' => 'Коморы',
+ 'CV' => 'Кабо-Верде',
+ 'CR' => 'Коста-Рика',
+ 'CU' => 'Куба',
+ 'CY' => 'Кипр',
+ 'CZ' => 'Чехия',
+ 'DE' => 'Германия',
+ 'DJ' => 'Джибути',
+ 'DM' => 'Доминика',
+ 'DK' => 'Дания',
+ 'DO' => 'Доминиканская Республика',
+ 'DZ' => 'Алжир',
+ 'EC' => 'Эквадор',
+ 'EG' => 'Египет',
+ 'ER' => 'Эритрея',
+ 'ES' => 'Испания',
+ 'EE' => 'Эстония',
+ 'ET' => 'Эфиопия',
+ 'FI' => 'Финляндия',
+ 'FJ' => 'Фиджи',
+ 'FR' => 'Франция',
+ 'FM' => 'Микронезия',
+ 'GA' => 'Габон',
+ 'GB' => 'Великобритания',
+ 'GE' => 'Грузия',
+ 'GH' => 'Гана',
+ 'GN' => 'Гвинея',
+ 'GM' => 'Гамбия',
+ 'GW' => 'Гвинея-Бисау',
+ 'GQ' => 'Экваториальная Гвинея',
+ 'GR' => 'Греция',
+ 'GD' => 'Гренада',
+ 'GT' => 'Гватемала',
+ 'GY' => 'Гайана',
+ 'HN' => 'Гондурас',
+ 'HR' => 'Хорватия',
+ 'HT' => 'Гаити',
+ 'HU' => 'Венгрия',
+ 'ID' => 'Индонезия',
+ 'IN' => 'Индия',
+ 'IE' => 'Ирландия',
+ 'IR' => 'Иран',
+ 'IQ' => 'Ирак',
+ 'IS' => 'Исландия',
+ 'IL' => 'Израиль',
+ 'IT' => 'Италия',
+ 'JM' => 'Ямайка',
+ 'JO' => 'Иордания',
+ 'JP' => 'Япония',
+ 'KZ' => 'Казахстан',
+ 'KE' => 'Кения',
+ 'KG' => 'Киргизия',
+ 'KH' => 'Камбоджа',
+ 'KI' => 'Кирибати',
+ 'KN' => 'Сент-Китс и Невис',
+ 'KR' => 'Южная Корея',
+ 'KW' => 'Кувейт',
+ 'LA' => 'Лаос',
+ 'LB' => 'Ливан',
+ 'LR' => 'Либерия',
+ 'LY' => 'Ливия',
+ 'LC' => 'Сент-Люсия',
+ 'LI' => 'Лихтенштейн',
+ 'LK' => 'Шри Ланка',
+ 'LS' => 'Лесото',
+ 'LT' => 'Литва',
+ 'LU' => 'Люксембург',
+ 'LV' => 'Латвия',
+ 'MA' => 'Марокко',
+ 'MC' => 'Монако',
+ 'MD' => 'Молдова',
+ 'MG' => 'Мадагаскар',
+ 'MV' => 'Мальдивы',
+ 'MX' => 'Мексика',
+ 'MH' => 'Маршалловы острова',
+ 'MK' => 'Македония',
+ 'ML' => 'Мали',
+ 'MT' => 'Мальта',
+ 'MM' => 'Мьянма',
+ 'ME' => 'Черногория',
+ 'MN' => 'Монголия',
+ 'MZ' => 'Мозамбик',
+ 'MR' => 'Мавритания',
+ 'MU' => 'Маврикий',
+ 'MW' => 'Малави',
+ 'MY' => 'Малайзия',
+ 'NA' => 'Намибия',
+ 'NE' => 'Нигер',
+ 'NG' => 'Нигерия',
+ 'NI' => 'Никарагуа',
+ 'NL' => 'Нидерланды',
+ 'NO' => 'Норвегия',
+ 'NP' => 'Непал',
+ 'NR' => 'Науру',
+ 'NZ' => 'Новая Зеландия',
+ 'OM' => 'Оман',
+ 'PK' => 'Пакистан',
+ 'PA' => 'Панама',
+ 'PE' => 'Перу',
+ 'PH' => 'Филлиппины',
+ 'PW' => 'Палау',
+ 'PG' => 'Папуа Новая Гвинея',
+ 'PL' => 'Польша',
+ 'KP' => 'Северная Корея',
+ 'PT' => 'Португалия',
+ 'PY' => 'Парагвай',
+ 'QA' => 'Катар',
+ 'RO' => 'Румыния',
+ 'RU' => 'Россия',
+ 'RW' => 'Руанда',
+ 'SA' => 'Саудовская Аравия',
+ 'SD' => 'Судан',
+ 'SN' => 'Сенегал',
+ 'SG' => 'Сингапур',
+ 'SB' => 'Соломоновы Острова',
+ 'SL' => 'Сьерра Леоне',
+ 'SV' => 'Эль Сальвадор',
+ 'SM' => 'Сан Марино',
+ 'SO' => 'Сомали',
+ 'RS' => 'Сербия',
+ 'SS' => 'Южный Судан',
+ 'ST' => 'Сан-Томе и Принсипи',
+ 'SR' => 'Суринам',
+ 'SK' => 'Словакия',
+ 'SI' => 'Словения',
+ 'SE' => 'Швеция',
+ 'SZ' => 'Свазиленд',
+ 'SC' => 'Сейшеллы',
+ 'SY' => 'Сирия',
+ 'TD' => 'Чад',
+ 'TG' => 'Того',
+ 'TH' => 'Таиланд',
+ 'TJ' => 'Таджикистан',
+ 'TM' => 'Туркменистан',
+ 'TL' => 'Восточный Тимор',
+ 'TO' => 'Тонга',
+ 'TT' => 'Тринидад и Тобаго',
+ 'TN' => 'Тунис',
+ 'TR' => 'Турция',
+ 'TV' => 'Тувалу',
+ 'TZ' => 'Танзания',
+ 'UG' => 'Уганда',
+ 'UA' => 'Украина',
+ 'UY' => 'Уругвай',
+ 'US' => 'Соединенные Штаты',
+ 'UZ' => 'Узбекистан',
+ 'VA' => 'Ватикан',
+ 'VC' => 'Сент-Винсент и Гренадины',
+ 'VE' => 'Венесуэла',
+ 'VN' => 'Вьетнам',
+ 'VU' => 'Вануату',
+ 'WS' => 'Самоа',
+ 'YE' => 'Йемен',
+ 'ZA' => 'Южная Африка',
+ 'ZM' => 'Замбия',
+ 'ZW' => 'Зимбабве',
+];
diff --git a/app/config/locale/ru.php b/app/config/locale/ru.php
new file mode 100644
index 0000000000..49cd3f19e0
--- /dev/null
+++ b/app/config/locale/ru.php
@@ -0,0 +1,20 @@
+ '"Искусство быть мудрым — это искусство знать, чем можно пренебречь."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'ru',
+ 'settings.direction' => 'ltr',
+
+ 'auth.emails.team' => 'Команда %s',
+ 'auth.emails.confirm.title' => 'Подтверждение аккаунта',
+ 'auth.emails.confirm.body' => 'ru.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Сброс пароля',
+ 'auth.emails.recovery.body' => 'ru.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Приглашение в команду %s по проекту %s',
+ 'auth.emails.invitation.body' => 'ru.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Неизвестно',
+
+ 'countries' => include 'ru.countries.php',
+ 'continents' => include 'ru.continents.php',
+];
diff --git a/app/config/locale/si.continents.php b/app/config/locale/si.continents.php
new file mode 100644
index 0000000000..10395d9add
--- /dev/null
+++ b/app/config/locale/si.continents.php
@@ -0,0 +1,11 @@
+ 'අප්රිකාව',
+ 'AN' => 'ඇන්ටාක්ටිකාව',
+ 'AS' => 'ආසියාව',
+ 'EU' => 'යුරෝපය',
+ 'NA' => 'උතුරු ඇමරිකාව',
+ 'OC' => 'ඕෂනියා',
+ 'SA' => 'දකුණු ඇමරිකාව',
+];
diff --git a/app/config/locale/si.countries.php b/app/config/locale/si.countries.php
new file mode 100644
index 0000000000..1b850827fe
--- /dev/null
+++ b/app/config/locale/si.countries.php
@@ -0,0 +1,198 @@
+ 'ඇෆ්ගනිස්ථානය',
+ 'AO' => 'ඇන්ගෝලා',
+ 'AL' => 'ඇල්බේනියාව',
+ 'AD' => 'ඇන්ඩෝරා',
+ 'AE' => 'එක්සත් අරාබි එමීර් රාජ්යය',
+ 'AR' => 'ආර්ජන්ටිනාව',
+ 'AM' => 'ආර්මේනියාව',
+ 'AG' => 'ඇන්ටිගුවා සහ බාබුඩා',
+ 'AU' => 'ඕස්ට්රේලියාව',
+ 'AT' => 'ඔස්ට්රියාව',
+ 'AZ' => 'අසර්බයිජානය',
+ 'BI' => 'බුරුන්ඩි',
+ 'BE' => 'බෙල්ජියම',
+ 'BJ' => 'බෙනින්',
+ 'BF' => 'බුර්කිනා ෆාසෝ',
+ 'BD' => 'බංග්ලාදේශය',
+ 'BG' => 'බල්ගේරියාව',
+ 'BH' => 'බහරේනය',
+ 'BS' => 'බහමාස්',
+ 'BA' => 'බොස්නියාව සහ හර්සගොවිනාව',
+ 'BY' => 'බෙලාරුස්',
+ 'BZ' => 'බෙලීස්',
+ 'BO' => 'බොලිවියාව',
+ 'BR' => 'බ්රසීලය',
+ 'BB' => 'බාබඩෝස්',
+ 'BN' => 'බෘනායි',
+ 'BT' => 'භූතානය',
+ 'BW' => 'බොට්ස්වානා',
+ 'CF' => 'මධ්යම අප්රිකානු ජනරජය',
+ 'CA' => 'කැනඩාව',
+ 'CH' => 'ස්විට්සර්ලන්තය',
+ 'CL' => 'චිලී',
+ 'CN' => 'චීනය',
+ 'CI' => 'අයිවරි කෝස්ට්',
+ 'CM' => 'කැමරූන්',
+ 'CD' => 'කොංගෝ ප්රජාතන්ත්රවාදී ජනරජය',
+ 'CG' => 'කොංගෝ ජනරජය',
+ 'CO' => 'කොලොම්බියාව',
+ 'KM' => 'කොමරෝස්',
+ 'CV' => 'කේප් වර්ඩ්',
+ 'CR' => 'කොස්ටාරිකාව',
+ 'CU' => 'කියුබාව',
+ 'CY' => 'සයිප්රසය',
+ 'CZ' => 'චෙක් ජනරජය',
+ 'DE' => 'ජර්මනිය',
+ 'DJ' => 'ජිබුටි',
+ 'DM' => 'ඩොමිනිකා',
+ 'DK' => 'ඩෙන්මාර්කය',
+ 'DO' => 'ඩොමිනිකානු ජනරජය',
+ 'DZ' => 'ඇල්ජීරියාව',
+ 'EC' => 'ඉක්වදෝරය',
+ 'EG' => 'ඊජිප්තුව',
+ 'ER' => 'එරිත්රියාව',
+ 'ES' => 'ස්පාඤ්ඤය',
+ 'EE' => 'එස්තෝනියාව',
+ 'ET' => 'ඉතියෝපියාව',
+ 'FI' => 'ෆින්ලන්තය',
+ 'FJ' => 'ෆීජි',
+ 'FR' => 'ප්රංශය',
+ 'FM' => 'මයික්රොනීසියාව',
+ 'GA' => 'ගැබොන්',
+ 'GB' => 'එක්සත් රාජධානිය',
+ 'GE' => 'ජෝර්ජියාව',
+ 'GH' => 'ගහනාව',
+ 'GN' => 'ගිනියාව',
+ 'GM' => 'ගැම්බියාව',
+ 'GW' => 'ගිනි-බිසව්',
+ 'GQ' => 'සමක ගිනියාව',
+ 'GR' => 'ග්රීසිය',
+ 'GD' => 'ග්රෙනාඩා',
+ 'GT' => 'ග්වාතමාලාව',
+ 'GY' => 'ගයනා',
+ 'HN' => 'හොන්ඩුරාස්',
+ 'HR' => 'ක්රොඒෂියාව',
+ 'HT' => 'හයිටි',
+ 'HU' => 'හංගේරියාව',
+ 'ID' => 'ඉන්දුනීසියාව',
+ 'IN' => 'ඉන්දියාව',
+ 'IE' => 'අයර්ලන්තය',
+ 'IR' => 'ඉරානය',
+ 'IQ' => 'ඉරාකය',
+ 'IS' => 'අයිස්ලන්තය',
+ 'IL' => 'ඊශ්රායෙල්',
+ 'IT' => 'ඉතාලිය',
+ 'JM' => 'ජැමෙයිකාව',
+ 'JO' => 'ජෝර්දානය',
+ 'JP' => 'ජපානය',
+ 'KZ' => 'කසකස්තානය',
+ 'KE' => 'කෙන්යාව',
+ 'KG' => 'ක්රිගිස්තානය',
+ 'KH' => 'කාම්බෝජය',
+ 'KI' => 'කිරිබති',
+ 'KN' => 'ශාන්ත කිට්ස් සහ නෙවිස්',
+ 'KR' => 'දකුණු කොරියාව',
+ 'KW' => 'කුවේට්',
+ 'LA' => 'ලාඕසය',
+ 'LB' => 'ලෙබනනය',
+ 'LR' => 'ලයිබීරියාව',
+ 'LY' => 'ලිබියාව',
+ 'LC' => 'ශාන්ත ලුසියා',
+ 'LI' => 'ලිච්ටෙන්ස්ටයින්',
+ 'LK' => 'ශ්රී ලංකාව',
+ 'LS' => 'ලෙසෝතෝ',
+ 'LT' => 'ලිතුවේනියාව',
+ 'LU' => 'ලක්සම්බර්ග්',
+ 'LV' => 'ලැට්වියාව',
+ 'MA' => 'මොරොක්කෝව',
+ 'MC' => 'මොනාකෝ',
+ 'MD' => 'මෝල්ඩෝවා',
+ 'MG' => 'මැඩගස්කරය',
+ 'MV' => 'මාලදිවයින',
+ 'MX' => 'මෙක්සිකෝව',
+ 'MH' => 'මාෂල් දූපත්',
+ 'MK' => 'මැසිඩෝනියාව',
+ 'ML' => 'මාලි',
+ 'MT' => 'මෝල්ටාව',
+ 'MM' => 'මියන්මාරය',
+ 'ME' => 'මොන්ටිනිග්රෝ',
+ 'MN' => 'මොන්ගෝලියාව',
+ 'MZ' => 'මොසැම්බික්',
+ 'MR' => 'මොරිටේනියාව',
+ 'MU' => 'මොරිෂස්',
+ 'MW' => 'මලාවි',
+ 'MY' => 'මැලේසියාව',
+ 'NA' => 'නැමීබියාව',
+ 'NE' => 'නයිජර්',
+ 'NG' => 'නයිජීරියාව',
+ 'NI' => 'නිකරගුවාව',
+ 'NL' => 'නෙදර්ලන්තය',
+ 'NO' => 'නෝර්වේ',
+ 'NP' => 'නේපාලය',
+ 'NR' => 'නාවුරූ',
+ 'NZ' => 'නිව්සීලන්තය',
+ 'OM' => 'ඕමානය',
+ 'PK' => 'පාකිස්තානය',
+ 'PA' => 'පැනමාව',
+ 'PE' => 'පේරු',
+ 'PH' => 'පිලිපීනය',
+ 'PW' => 'පලාවු',
+ 'PG' => 'පැපුවා නිව්ගීනියාව',
+ 'PL' => 'පෝලන්තය',
+ 'KP' => 'උතුරු කොරියාව',
+ 'PT' => 'පෘතුගාලය',
+ 'PY' => 'පැරගුවේ',
+ 'QA' => 'කටාර්',
+ 'RO' => 'රුමේනියාව',
+ 'RU' => 'රුසියාව',
+ 'RW' => 'රුවන්ඩාව',
+ 'SA' => 'සවුදි අරාබිය',
+ 'SD' => 'සුඩානය',
+ 'SN' => 'සෙනෙගල්',
+ 'SG' => 'සිංගප්පූරුව',
+ 'SB' => 'සොලමන් දූපත්',
+ 'SL' => 'සියාරා ලියොන්',
+ 'SV' => 'එල් සැල්වදෝරය',
+ 'SM' => 'සැන් මරිනෝ',
+ 'SO' => 'සෝමාලියාව',
+ 'RS' => 'සර්බියාව',
+ 'SS' => 'දකුණු සුඩානය',
+ 'ST' => 'සාඕ ටොමේ සහ ප්රින්සිප්',
+ 'SR' => 'සුරිනේම්',
+ 'SK' => 'ස්ලොවැකියාව',
+ 'SI' => 'ස්ලොවේනියාව',
+ 'SE' => 'ස්වීඩනය',
+ 'SZ' => 'ස්වාසිලන්තය',
+ 'SC' => 'සීෂෙල්ස්',
+ 'SY' => 'සිරියාව',
+ 'TD' => 'චැඩ්',
+ 'TG' => 'ටෝගෝ ජනරජය',
+ 'TH' => 'තායිලන්තය',
+ 'TJ' => 'ටජිකිස්තානය',
+ 'TM' => 'ටර්ක්මෙනිස්තානය',
+ 'TL' => 'ටිමෝර්-ලෙස්ටේ',
+ 'TO' => 'ටොංගා',
+ 'TT' => 'ට්රිනිඩෑඩ් සහ ටොබැගෝ',
+ 'TN' => 'ටියුනීසියාව',
+ 'TR' => 'තුර්කිය',
+ 'TV' => 'ටුවාලු',
+ 'TZ' => 'ටැන්සානියාව',
+ 'UG' => 'උගන්ඩාව',
+ 'UA' => 'යුක්රේනය',
+ 'UY' => 'උරුගුවේ',
+ 'US' => 'එක්සත් ජනපදය',
+ 'UZ' => 'උස්බෙකිස්තානය',
+ 'VA' => 'වතිකානු නගරය',
+ 'VC' => 'ශාන්ත වින්සන්ට් සහ ග්රෙනඩින්ස්',
+ 'VE' => 'වෙනිසියුලාව',
+ 'VN' => 'වියට්නාමය',
+ 'VU' => 'වනුවාටු',
+ 'WS' => 'සැමෝවා',
+ 'YE' => 'යේමනය',
+ 'ZA' => 'දකුණු අප්රිකාව',
+ 'ZM' => 'සැම්බියාව',
+ 'ZW' => 'සිම්බාබ්වේ',
+];
diff --git a/app/config/locale/si.php b/app/config/locale/si.php
new file mode 100644
index 0000000000..bf09272469
--- /dev/null
+++ b/app/config/locale/si.php
@@ -0,0 +1,18 @@
+ '"ප්රඥාවන්ත වීමේ කලාව යනු නොසලකා හැරිය යුතු දේ දැන ගැනීමේ කලාවයි."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'si',
+ 'settings.direction' => 'ltr',
+ // Service - Users
+ 'auth.emails.team' => '%s කණ්ඩායම',
+ 'auth.emails.confirm.title' => 'ගිණුම් තහවුරු කිරීම',
+ 'auth.emails.confirm.body' => 'si.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'මුරපදය යළි පිහිටුවන්න',
+ 'auth.emails.recovery.body' => 'si.email.auth.recovery.tpl',
+
+ 'auth.emails.invitation.title' => 'ආරාධනයයි , %s කණ්ඩායමට %s ව්යාපෘතියෙහි',
+ 'auth.emails.invitation.body' => 'si.email.auth.invitation.tpl',
+ 'locale.country.unknown' => 'Unknown',
+ 'countries' => include 'si.countries.php',
+ 'continents' => include 'si.continents.php',
+];
\ No newline at end of file
diff --git a/app/config/locale/sl.continents.php b/app/config/locale/sl.continents.php
new file mode 100644
index 0000000000..365662d62c
--- /dev/null
+++ b/app/config/locale/sl.continents.php
@@ -0,0 +1,11 @@
+ 'Afrika',
+ 'AN' => 'Antarktika',
+ 'AS' => 'Azija',
+ 'EU' => 'Evropa',
+ 'NA' => 'Severna Amerika',
+ 'OC' => 'Oceanija',
+ 'SA' => 'Južna Amerika',
+];
diff --git a/app/config/locale/sl.countries.php b/app/config/locale/sl.countries.php
new file mode 100644
index 0000000000..79589a345f
--- /dev/null
+++ b/app/config/locale/sl.countries.php
@@ -0,0 +1,198 @@
+ 'Afganistan',
+ 'AO' => 'Angola',
+ 'AL' => 'Albanija',
+ 'AD' => 'Andora',
+ 'AE' => 'Združeni Arabski Emirati',
+ 'AR' => 'Argenitna',
+ 'AM' => 'Armenija',
+ 'AG' => 'Antigva in Barbuda',
+ 'AU' => 'Avstralija',
+ 'AT' => 'Avstrija',
+ 'AZ' => 'Azerbajdžan',
+ 'BI' => 'Burundi ',
+ 'BE' => 'Belgija',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladeš',
+ 'BG' => 'Bolgarija',
+ 'BH' => 'Bahrajn',
+ 'BS' => 'Bahami',
+ 'BA' => 'Bosna in Hercegovina',
+ 'BY' => 'Belorusija',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolivija',
+ 'BR' => 'Brazilija',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brunej',
+ 'BT' => 'Butan',
+ 'BW' => 'Bocvana',
+ 'CF' => 'Srednjeafriška republika',
+ 'CA' => 'Kanada',
+ 'CH' => 'Švica',
+ 'CL' => 'Čile',
+ 'CN' => 'Kitajska',
+ 'CI' => 'Slonokoščena obala',
+ 'CM' => 'Kamerun',
+ 'CD' => 'Demokratična republika Kongo',
+ 'CG' => 'Kongo',
+ 'CO' => 'Kolumbija',
+ 'KM' => 'Komori',
+ 'CV' => 'Kapverdski otoki (Zelenortski otoki)',
+ 'CR' => 'Kostarika',
+ 'CU' => 'Kuba',
+ 'CY' => 'Ciper',
+ 'CZ' => 'Češka',
+ 'DE' => 'Nemčija',
+ 'DJ' => 'Džibuti',
+ 'DM' => 'Dominika',
+ 'DK' => 'Danska',
+ 'DO' => 'Dominikanska republika',
+ 'DZ' => 'Alžirija',
+ 'EC' => 'Ekvador',
+ 'EG' => 'Egipt',
+ 'ER' => 'Eritreja',
+ 'ES' => 'Španija',
+ 'EE' => 'Estonija',
+ 'ET' => 'Etiopija',
+ 'FI' => 'Finska',
+ 'FJ' => 'Fidži',
+ 'FR' => 'Francija',
+ 'FM' => 'Mikronezija',
+ 'GA' => 'Gabon',
+ 'GB' => 'Velika Britanija',
+ 'GE' => 'Gruzija',
+ 'GH' => 'Gana',
+ 'GN' => 'Gvineja',
+ 'GM' => 'Gambija',
+ 'GW' => 'Gvineja-Bissau',
+ 'GQ' => 'Ekvatorialna Gvineja',
+ 'GR' => 'Grčija',
+ 'GD' => 'Grenada',
+ 'GT' => 'Gvatemala',
+ 'GY' => 'Gvajana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Hrvaška',
+ 'HT' => 'Haiti',
+ 'HU' => 'Madžarska',
+ 'ID' => 'Indonezija',
+ 'IN' => 'Indija',
+ 'IE' => 'Irska',
+ 'IR' => 'Iran',
+ 'IQ' => 'Irak',
+ 'IS' => 'Islandija',
+ 'IL' => 'Izrael',
+ 'IT' => 'Italija',
+ 'JM' => 'Jamajka',
+ 'JO' => 'Jordanija',
+ 'JP' => 'Japonska',
+ 'KZ' => 'Kazahstan',
+ 'KE' => 'Kenija',
+ 'KG' => 'Kirgizistan (Kirgizija)',
+ 'KH' => 'Kambodža',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Sveti Kits in Nevis',
+ 'KR' => 'Južna Koreja',
+ 'KW' => 'Kuvajt',
+ 'LA' => 'Laos',
+ 'LB' => 'Libanon',
+ 'LR' => 'Liberija',
+ 'LY' => 'Libija',
+ 'LC' => 'Sveta Lucija',
+ 'LI' => 'Lihtenštajn',
+ 'LK' => 'Šri Lanka',
+ 'LS' => 'Lesoto',
+ 'LT' => 'Litva',
+ 'LU' => 'Luksemburg',
+ 'LV' => 'Latvija',
+ 'MA' => 'Maroko',
+ 'MC' => 'Monako',
+ 'MD' => 'Moldavija',
+ 'MG' => 'Madagaskar',
+ 'MV' => 'Maldivi',
+ 'MX' => 'Mehika',
+ 'MH' => 'Maršalovi otoki',
+ 'MK' => 'Makedonija',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Mjanmar',
+ 'ME' => 'Črna Gora',
+ 'MN' => 'Mongolija',
+ 'MZ' => 'Mozambik',
+ 'MR' => 'Mavretanija',
+ 'MU' => 'Mauricius (Moris)',
+ 'MW' => 'Malavi',
+ 'MY' => 'Malezija',
+ 'NA' => 'Namibija',
+ 'NE' => 'Niger ',
+ 'NG' => 'Nigerija',
+ 'NI' => 'Nikaragva',
+ 'NL' => 'Nizozemska',
+ 'NO' => 'Norveška',
+ 'NP' => 'Nepal',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Nova Zelandija',
+ 'OM' => 'Oman',
+ 'PK' => 'Pakistan',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filipini',
+ 'PW' => 'Palau ',
+ 'PG' => 'Papua Nova Gvineja',
+ 'PL' => 'Poljska',
+ 'KP' => 'Severna Koreja',
+ 'PT' => 'Portugalska',
+ 'PY' => 'Paragvaj',
+ 'QA' => 'Katar',
+ 'RO' => 'Romunija',
+ 'RU' => 'Ruska federacija',
+ 'RW' => 'Ruanda',
+ 'SA' => 'Savdska Arabija',
+ 'SD' => 'Sudan',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapur',
+ 'SB' => 'Solomonovi otoki',
+ 'SL' => 'Siera Leone',
+ 'SV' => 'Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalija',
+ 'RS' => 'Srbija',
+ 'SS' => 'Južni Sudan',
+ 'ST' => 'Sao Tome in Principe',
+ 'SR' => 'Surinam',
+ 'SK' => 'Slovaška',
+ 'SI' => 'Slovenija',
+ 'SE' => 'Švedska',
+ 'SZ' => 'Svazi',
+ 'SC' => 'Sejšeli',
+ 'SY' => 'Sirija',
+ 'TD' => 'Čad',
+ 'TG' => 'Togo',
+ 'TH' => 'Tajska',
+ 'TJ' => 'Tadžikistan',
+ 'TM' => 'Turkmenistan',
+ 'TL' => 'Vzhodni Timor',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad in Tobago',
+ 'TN' => 'Tunizija',
+ 'TR' => 'Turčija',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzanija',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukrajina',
+ 'UY' => 'Urugvaj',
+ 'US' => 'Združene države Amerike',
+ 'UZ' => 'Uzbekistan',
+ 'VA' => 'Vatikan',
+ 'VC' => 'Sveti Vincent in Grenadini',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Vietnam',
+ 'VU' => 'Republika Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Jemen',
+ 'ZA' => 'Južna afrika',
+ 'ZM' => 'Zambija',
+ 'ZW' => 'Zimbabve',
+];
diff --git a/app/config/locale/sl.php b/app/config/locale/sl.php
new file mode 100644
index 0000000000..4098628c29
--- /dev/null
+++ b/app/config/locale/sl.php
@@ -0,0 +1,21 @@
+ '"Srčika modrosti je umetnost védenja, kaj spregledati."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'sl',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s Ekipa',
+ 'auth.emails.confirm.title' => 'Potrditev računa',
+ 'auth.emails.confirm.body' => 'sl.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Ponastavitev gesla',
+ 'auth.emails.recovery.body' => 'sl.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Povabilo v %s Ekipo za %s',
+ 'auth.emails.invitation.body' => 'sl.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Neznano',
+
+ 'countries' => include 'sl.countries.php',
+ 'continents' => include 'sl.continents.php',
+];
diff --git a/app/config/locale/sv.continents.php b/app/config/locale/sv.continents.php
new file mode 100644
index 0000000000..ba158cccfe
--- /dev/null
+++ b/app/config/locale/sv.continents.php
@@ -0,0 +1,11 @@
+ 'Afrika',
+ 'AN' => 'Antarktis',
+ 'AS' => 'Asien',
+ 'EU' => 'Europa',
+ 'NA' => 'Nordamerika',
+ 'OC' => 'Oceanien',
+ 'SA' => 'Sydamerika',
+];
diff --git a/app/config/locale/sv.countries.php b/app/config/locale/sv.countries.php
new file mode 100644
index 0000000000..7bfc8f22a2
--- /dev/null
+++ b/app/config/locale/sv.countries.php
@@ -0,0 +1,198 @@
+ 'Afganistan',
+ 'AO' => 'Angola',
+ 'AL' => 'Albanien',
+ 'AD' => 'Andorra',
+ 'AE' => 'Förenade Arabemiraterna',
+ 'AR' => 'Argentina',
+ 'AM' => 'Armenien',
+ 'AG' => 'Antigua och Barbuda',
+ 'AU' => 'Australien',
+ 'AT' => 'Österrike',
+ 'AZ' => 'Azerbajdzjan',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgien',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladesh',
+ 'BG' => 'Bulgarien',
+ 'BH' => 'Bahrain',
+ 'BS' => 'Bahamas',
+ 'BA' => 'Bosnien och Hercegovina',
+ 'BY' => 'Vitrysslnd',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolivien',
+ 'BR' => 'Brasilien',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brune',
+ 'BT' => 'Butan',
+ 'BW' => 'Botswana',
+ 'CF' => 'Centralafrikanska republiken',
+ 'CA' => 'Kanada',
+ 'CH' => 'Schweiz',
+ 'CL' => 'Chile',
+ 'CN' => 'Kina',
+ 'CI' => 'Elfenbenskusten',
+ 'CM' => 'Kamerun',
+ 'CD' => 'Kongo-Kinshasa',
+ 'CG' => 'Kongo-Brazzaville',
+ 'CO' => 'Colombia',
+ 'KM' => 'Komorerna',
+ 'CV' => 'Kap Verde',
+ 'CR' => 'Costa Rica',
+ 'CU' => 'Kuba',
+ 'CY' => 'Cypern',
+ 'CZ' => 'Tjeckien',
+ 'DE' => 'Tyskland',
+ 'DJ' => 'Djibouti',
+ 'DM' => 'Dominica',
+ 'DK' => 'Danmark',
+ 'DO' => 'Dominikanska republiken',
+ 'DZ' => 'Algeriet',
+ 'EC' => 'Ekvador',
+ 'EG' => 'Egypten',
+ 'ER' => 'Eritrea',
+ 'ES' => 'Spanien',
+ 'EE' => 'Estonia',
+ 'ET' => 'Etiopien',
+ 'FI' => 'Finland',
+ 'FJ' => 'Fiji',
+ 'FR' => 'Frankrike',
+ 'FM' => 'Mikronesien',
+ 'GA' => 'Gabon',
+ 'GB' => 'Storbrittannien',
+ 'GE' => 'Georgien',
+ 'GH' => 'Ghana',
+ 'GN' => 'Guinea',
+ 'GM' => 'Gambia',
+ 'GW' => 'Guinea-Bissau',
+ 'GQ' => 'Ekvatorialguinea',
+ 'GR' => 'Grekland',
+ 'GD' => 'Grenada',
+ 'GT' => 'Guatemala',
+ 'GY' => 'Guyana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Kroatien',
+ 'HT' => 'Haiti',
+ 'HU' => 'Ungern',
+ 'ID' => 'Indonesien',
+ 'IN' => 'Indien',
+ 'IE' => 'Irland',
+ 'IR' => 'Iran',
+ 'IQ' => 'Irak',
+ 'IS' => 'Island',
+ 'IL' => 'Israel',
+ 'IT' => 'Italien',
+ 'JM' => 'Jamaika',
+ 'JO' => 'Jordanien',
+ 'JP' => 'Japan',
+ 'KZ' => 'Kazakstan',
+ 'KE' => 'Kenya',
+ 'KG' => 'Kirgizistan',
+ 'KH' => 'Kambodja',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Saint Kitts och Nevis',
+ 'KR' => 'Sydkorea',
+ 'KW' => 'Kuwait',
+ 'LA' => 'Laos',
+ 'LB' => 'Libanon',
+ 'LR' => 'Liberien',
+ 'LY' => 'Libyen',
+ 'LC' => 'Saint Lucia',
+ 'LI' => 'Liechtenstein',
+ 'LK' => 'Sri Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Litauen',
+ 'LU' => 'Luxemburg',
+ 'LV' => 'Latvien',
+ 'MA' => 'Marocko',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldavien',
+ 'MG' => 'Madagaskar',
+ 'MV' => 'Maldiverna',
+ 'MX' => 'Mexiko',
+ 'MH' => 'Marshall Islands',
+ 'MK' => 'Nordmakedonien',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Myanmar',
+ 'ME' => 'Montenegro',
+ 'MN' => 'Mongolien',
+ 'MZ' => 'Moçambique',
+ 'MR' => 'Mauritanien',
+ 'MU' => 'Mauritius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Malaysia',
+ 'NA' => 'Namibia',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigeria',
+ 'NI' => 'Nicaragua',
+ 'NL' => 'Nederländerna',
+ 'NO' => 'Norge',
+ 'NP' => 'Nepal',
+ 'NR' => 'Nauru',
+ 'NZ' => 'Nya Zealand',
+ 'OM' => 'Oman',
+ 'PK' => 'Pakistan',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Filppinerna',
+ 'PW' => 'Palau',
+ 'PG' => 'Papua New Guinea',
+ 'PL' => 'Polen',
+ 'KP' => 'Nordkorea',
+ 'PT' => 'Portugal',
+ 'PY' => 'Paraguay',
+ 'QA' => 'Qatar',
+ 'RO' => 'Rumänien',
+ 'RU' => 'Ryssland',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Saudiarabien',
+ 'SD' => 'Sudan',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapor',
+ 'SB' => 'Solomonöarna',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'El Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalien',
+ 'RS' => 'Serbien',
+ 'SS' => 'Sydsudan',
+ 'ST' => 'São Tomé och Príncipe',
+ 'SR' => 'Surinam',
+ 'SK' => 'Slovakien',
+ 'SI' => 'Slovenien',
+ 'SE' => 'Sverige',
+ 'SZ' => 'Swaziland',
+ 'SC' => 'Seychellerna',
+ 'SY' => 'Syrien',
+ 'TD' => 'Tchad',
+ 'TG' => 'Togo',
+ 'TH' => 'Thailand',
+ 'TJ' => 'Tadzjikistan',
+ 'TM' => 'Turkmenistan',
+ 'TL' => 'Timor-Leste',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad och Tobago',
+ 'TN' => 'Tunisien',
+ 'TR' => 'Turkiet',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzania',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraina',
+ 'UY' => 'Uruguay',
+ 'US' => 'Amerikas Förenta Stater',
+ 'UZ' => 'Uzbekistan',
+ 'VA' => 'Vatikanstaten',
+ 'VC' => 'Sankt Vincent och Grenadinerna',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Vietnam',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Jemen',
+ 'ZA' => 'Sydafrika',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
diff --git a/app/config/locale/sv.php b/app/config/locale/sv.php
new file mode 100644
index 0000000000..9f34de341a
--- /dev/null
+++ b/app/config/locale/sv.php
@@ -0,0 +1,21 @@
+ '"The art of being wise is the art of knowing what to overlook."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'sv',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s-teamet',
+ 'auth.emails.confirm.title' => 'Kontobekräftelse',
+ 'auth.emails.confirm.body' => 'sv.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Ändra lösenord',
+ 'auth.emails.recovery.body' => 'sv.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Inbjudan till %s-teamet i %s',
+ 'auth.emails.invitation.body' => 'sv.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Okänt',
+
+ 'countries' => include 'sv.countries.php',
+ 'continents' => include 'sv.continents.php',
+];
diff --git a/app/config/locale/ta.continents.php b/app/config/locale/ta.continents.php
new file mode 100644
index 0000000000..4b16c1b807
--- /dev/null
+++ b/app/config/locale/ta.continents.php
@@ -0,0 +1,11 @@
+ 'ஆப்பிரிக்கா',
+ 'AN' => 'அந்தாட்டிக்கா',
+ 'AS' => 'ஆசியா',
+ 'EU' => 'ஐரோப்பா',
+ 'NA' => 'வட அமெரிக்கா',
+ 'OC' => 'ஓசியானியா',
+ 'SA' => 'தென் அமெரிக்கா',
+];
diff --git a/app/config/locale/ta.countries.php b/app/config/locale/ta.countries.php
new file mode 100644
index 0000000000..83d83b29d8
--- /dev/null
+++ b/app/config/locale/ta.countries.php
@@ -0,0 +1,198 @@
+ 'ஆப்கானித்தான்',
+ 'AO' => 'அங்கோலா',
+ 'AL' => 'அல்பேனியா',
+ 'AD' => 'அந்தோரா',
+ 'AE' => 'ஐக்கிய அரபு அமீரகம்',
+ 'AR' => 'அர்கெந்தீனா',
+ 'AM' => 'ஆர்மீனியா',
+ 'AG' => 'அன்டிகுவா பர்புடா',
+ 'AU' => 'ஆத்திரேலியா',
+ 'AT' => 'ஆஸ்திரியா',
+ 'AZ' => 'அசர்பைஜான்',
+ 'BI' => 'புருண்டி',
+ 'BE' => 'பெல்ஜியம்',
+ 'BJ' => 'பெனின்',
+ 'BF' => 'புர்கினா பாசோ',
+ 'BD' => 'வங்காளதேசம்',
+ 'BG' => 'பல்கேரியா',
+ 'BH' => 'பஹ்ரேய்ன்',
+ 'BS' => 'பகாமாசு',
+ 'BA' => 'பொஸ்னியாவும், ஹெர்ஸகொவினாவும்',
+ 'BY' => 'பெலாருஸ்',
+ 'BZ' => 'பெலிசு',
+ 'BO' => 'பொலீவியா',
+ 'BR' => 'பிரேஸில்',
+ 'BB' => 'பார்படோஸ்',
+ 'BN' => 'புரூணை',
+ 'BT' => 'பூட்டான்',
+ 'BW' => 'பொட்ஸ்வானா',
+ 'CF' => 'மத்திய ஆபிரிக்கக் குடியரசு',
+ 'CA' => 'கனடா',
+ 'CH' => 'சுவிட்சர்லாந்து',
+ 'CL' => 'சிலி',
+ 'CN' => 'சீனா',
+ 'CI' => 'ஐவரி கோஸ்ட்',
+ 'CM' => 'கமரூன்',
+ 'CD' => 'காங்கோ மக்களாட்சிக் குடியரசு',
+ 'CG' => 'காங்கோ குடியரசு',
+ 'CO' => 'கொலம்பியா',
+ 'KM' => 'கொமொரோசு',
+ 'CV' => 'கேப் வர்டி',
+ 'CR' => 'கோஸ்ட்டா ரிக்கா',
+ 'CU' => 'கியூபா',
+ 'CY' => 'சைப்பிரசு',
+ 'CZ' => 'செக் குடியரசு',
+ 'DE' => 'ஜெர்மனி',
+ 'DJ' => 'ஜிபூட்டி',
+ 'DM' => 'டொமினிக்கா',
+ 'DK' => 'டென்மார்க்',
+ 'DO' => 'டொமினிகன் குடியரசு',
+ 'DZ' => 'அல்ஜீரியா',
+ 'EC' => 'எக்குவடோர்',
+ 'EG' => 'எகிப்து',
+ 'ER' => 'எரித்திரியா',
+ 'ES' => 'ஸ்பெயின்',
+ 'EE' => 'எசுத்தோனியா',
+ 'ET' => 'எதியோப்பியா',
+ 'FI' => 'பின்லாந்து',
+ 'FJ' => 'பிஜி',
+ 'FR' => 'பிரான்ஸ்',
+ 'FM' => 'மைக்குரோனீசியக் கூட்டு நாடுகள்',
+ 'GA' => 'காபொன்',
+ 'GB' => 'ஐக்கிய இராச்சியம்',
+ 'GE' => 'ஜோர்ஜியா',
+ 'GH' => 'கானா',
+ 'GN' => 'கினியா',
+ 'GM' => 'கம்பியா',
+ 'GW' => 'கினி-பிசாவு',
+ 'GQ' => 'எக்குவடோரியல் கினி',
+ 'GR' => 'கிரேக்க நாடு',
+ 'GD' => 'கிரெனடா',
+ 'GT' => 'குவாத்தமாலா',
+ 'GY' => 'கயானா',
+ 'HN' => 'ஹொண்டூராஸ்',
+ 'HR' => 'குரோவாசியா',
+ 'HT' => 'ஹைத்தி',
+ 'HU' => 'ஹங்கேரி',
+ 'ID' => 'இந்தோனேசியா',
+ 'IN' => 'இந்தியா',
+ 'IE' => 'அயர்லாந்து',
+ 'IR' => 'ஈரான்',
+ 'IQ' => 'ஈராக்',
+ 'IS' => 'ஐசுலாந்து',
+ 'IL' => 'இசுரேல்',
+ 'IT' => 'இத்தாலி',
+ 'JM' => 'ஜமேக்கா',
+ 'JO' => 'ஜோர்தான்',
+ 'JP' => 'ஜப்பான்',
+ 'KZ' => 'கசக்கஸ்தான்',
+ 'KE' => 'கென்யா',
+ 'KG' => 'கிர்கிசுத்தான்',
+ 'KH' => 'கம்போடியா',
+ 'KI' => 'கிரிபட்டி',
+ 'KN' => 'செயிண்ட். கிட்ஸ் நெவிஸ்',
+ 'KR' => 'தென் கொரியா',
+ 'KW' => 'குவைத்',
+ 'LA' => 'லாவோஸ்',
+ 'LB' => 'லெபனான்',
+ 'LR' => 'லைபீரியா',
+ 'LY' => 'லிபியா',
+ 'LC' => 'செயிண்ட். லூசியா',
+ 'LI' => 'லெய்செஸ்டீன்',
+ 'LK' => 'இலங்கை',
+ 'LS' => 'லெசோத்தோ',
+ 'LT' => 'லித்துவேனியா',
+ 'LU' => 'லக்சம்பர்க்',
+ 'LV' => 'லாத்வியா',
+ 'MA' => 'மொரோக்கோ',
+ 'MC' => 'மொனாகோ',
+ 'MD' => 'மோல்டோவா',
+ 'MG' => 'மடகாஸ்கர்',
+ 'MV' => 'மாலைதீவுகள்',
+ 'MX' => 'மெக்சிகோ',
+ 'MH' => 'மார்ஷல் தீவுகள்',
+ 'MK' => 'மசிடோனியக் குடியரசு',
+ 'ML' => 'மாலி',
+ 'MT' => 'மால்ட்டா',
+ 'MM' => 'மியன்மார்',
+ 'ME' => 'மொண்டெனேகுரோ',
+ 'MN' => 'மங்கோலியா',
+ 'MZ' => 'மொசாம்பிக்',
+ 'MR' => 'மௌரித்தானியா',
+ 'MU' => 'மொரிசியசு',
+ 'MW' => 'மலாவி',
+ 'MY' => 'மலேசியா',
+ 'NA' => 'நமீபியா',
+ 'NE' => 'நைஜர்',
+ 'NG' => 'நைஜீரியா',
+ 'NI' => 'நிக்கராகுவா',
+ 'NL' => 'நெதர்லாந்து',
+ 'NO' => 'நோர்வே',
+ 'NP' => 'நேபாளம்',
+ 'NR' => 'நவூரு',
+ 'NZ' => 'நியூசிலாந்து',
+ 'OM' => 'ஓமான்',
+ 'PK' => 'பாகிஸ்தான்',
+ 'PA' => 'பனாமா',
+ 'PE' => 'பெரு',
+ 'PH' => 'பிலிப்பைன்ஸ்',
+ 'PW' => 'பலாவு',
+ 'PG' => 'பப்புவா நியூகினியா',
+ 'PL' => 'போலந்து',
+ 'KP' => 'வட கொரியா',
+ 'PT' => 'போர்த்துக்கல்',
+ 'PY' => 'பராகுவே',
+ 'QA' => 'கட்டார்',
+ 'RO' => 'உருமேனியா',
+ 'RU' => 'ரஷ்யா',
+ 'RW' => 'ருவாண்டா',
+ 'SA' => 'சவூதி அரேபியா',
+ 'SD' => 'சூடான்',
+ 'SN' => 'செனிகல்',
+ 'SG' => 'சிங்கப்பூர்',
+ 'SB' => 'சொலமன் தீவுகள்',
+ 'SL' => 'சியேரா லியோனி',
+ 'SV' => 'எல் சல்வடோர்',
+ 'SM' => 'சான் மரீனோ',
+ 'SO' => 'சோமாலியா',
+ 'RS' => 'செர்பியா',
+ 'SS' => 'தென் சூடான்',
+ 'ST' => 'சாவோ தொமே மற்றும் பிரின்சிப்பி',
+ 'SR' => 'சுரிநாம்',
+ 'SK' => 'சிலவாக்கியா',
+ 'SI' => 'சுலோவீனியா',
+ 'SE' => 'சுவீடன்',
+ 'SZ' => 'சுவாசிலாந்து',
+ 'SC' => 'சீசெல்சு',
+ 'SY' => 'சிரியா',
+ 'TD' => 'சாட்',
+ 'TG' => 'டோகோ',
+ 'TH' => 'தாய்லாந்து',
+ 'TJ' => 'தாஜிக்ஸ்தான்',
+ 'TM' => 'துருக்மெனிஸ்தான்',
+ 'TL' => 'திமோர்-லெஸ்தே',
+ 'TO' => 'டொங்கா',
+ 'TT' => 'ட்ரினிடாட்டும் டொபாகோவும்',
+ 'TN' => 'துனீசியா',
+ 'TR' => 'துருக்கி',
+ 'TV' => 'துவாலு',
+ 'TZ' => 'தான்ஸானியா',
+ 'UG' => 'உகாண்டா',
+ 'UA' => 'உக்ரைன்',
+ 'UY' => 'உருகுவை',
+ 'US' => 'ஐக்கிய அமெரிக்கா',
+ 'UZ' => 'உஸ்பெகிஸ்தான்',
+ 'VA' => 'வத்திக்கான் நகர்',
+ 'VC' => 'செயின்ட் வின்செண்டு மற்றும் கிரெனடீன்கள்',
+ 'VE' => 'வெனிசுவேலா',
+ 'VN' => 'வியட்நாம்',
+ 'VU' => 'வனுவாட்டு',
+ 'WS' => 'சமோவா',
+ 'YE' => 'யேமன்',
+ 'ZA' => 'தென்னாபிரிக்கா',
+ 'ZM' => 'சாம்பியா',
+ 'ZW' => 'ஸிம்பாப்வே',
+];
diff --git a/app/config/locale/ta.php b/app/config/locale/ta.php
new file mode 100644
index 0000000000..d5b08bca6a
--- /dev/null
+++ b/app/config/locale/ta.php
@@ -0,0 +1,21 @@
+ '"புத்திசாலித்தனம் என்னும் கலை என்பது எதனை புறக்கணிக்க வேண்டும் என அறியும் கலையாகும்."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'ta',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s குழு',
+ 'auth.emails.confirm.title' => 'கணக்கினை உறுதி செய்தல்',
+ 'auth.emails.confirm.body' => 'ta.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'கடவுச்சொல் மீட்டமைப்பு',
+ 'auth.emails.recovery.body' => 'ta.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => '%s குழுவின் அழைப்பு: %s',
+ 'auth.emails.invitation.body' => 'ta.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'அறியவில்லை',
+
+ 'countries' => include 'ta.countries.php',
+ 'continents' => include 'ta.continents.php',
+];
diff --git a/app/config/locale/templates/af.email.auth.confirm.tpl b/app/config/locale/templates/af.email.auth.confirm.tpl
new file mode 100644
index 0000000000..e0a6c40356
--- /dev/null
+++ b/app/config/locale/templates/af.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Hallo {{name}},
+
+
+ Om jou epos adres te verifieer, kliek op die web adres hier:
+
+
{{redirect}}
+
+
+ As jy nie aangevra het om jou epos adres te verifieer nie, kan jy die boodskap ignoreer.
+
+
+ Baie dankie,
+
+ {{project}} span
+
\ No newline at end of file
diff --git a/app/config/locale/templates/af.email.auth.invitation.tpl b/app/config/locale/templates/af.email.auth.invitation.tpl
new file mode 100644
index 0000000000..eed6cf69d1
--- /dev/null
+++ b/app/config/locale/templates/af.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Hallo,
+
+
+ Hierdie epos is vir jou gestuur omdat
{{owner}} jou graag wou nooi om 'n spanlid te word van
{{team}} by {{project}}.
+
+
+ Om by die
{{team}} span aan te sluit:
+
+
{{redirect}}
+
+
+ As jy nie belangstel nie, kan jy die boodskap ignoreer.
+
+
+ Baie dankie,
+
+ {{project}} span
+
diff --git a/app/config/locale/templates/af.email.auth.recovery.tpl b/app/config/locale/templates/af.email.auth.recovery.tpl
new file mode 100644
index 0000000000..0b5cec7b22
--- /dev/null
+++ b/app/config/locale/templates/af.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Hallo {{name}},
+
+
+ Volg hierdie web adres om jou wagwoord te verander vir {{project}}.
+
+
{{redirect}}
+
+
+ As jy nie gevra het om you wagwoord te verander nie, kan jy die boodskap ignoreer.
+
+
+ Baie dankie,
+
+ {{project}} span
+
diff --git a/app/config/locale/templates/ar.email.auth.confirm.tpl b/app/config/locale/templates/ar.email.auth.confirm.tpl
new file mode 100644
index 0000000000..8cd1929dd9
--- /dev/null
+++ b/app/config/locale/templates/ar.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ مرحبا {{name}},
+
+
+ اتبع هذا الرابط للتحقق من عنوان بريدك الإلكتروني.
+
+
{{redirect}}
+
+
+ إذا لم تطلب التحقق من هذا العنوان، فيمكنك تجاهل هذه الرسالة.
+
+
+ Thanks,
+
+ فريق {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/ar.email.auth.invitation.tpl b/app/config/locale/templates/ar.email.auth.invitation.tpl
new file mode 100644
index 0000000000..fba4a731e3
--- /dev/null
+++ b/app/config/locale/templates/ar.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ مرحبا،
+
+
+ تم إرسال هذه الرسالة إليك لأن
{{owner}} أراد دعوتك لتصبح عضوًا في فريق
{{team}} في {{project}}.
+
+
+ اتبع هذا الرابط للانضمام إلى فريق
{{team}}:
+
+
{{redirect}}
+
+
+ إذا لم تكن مهتمًا، يمكنك تجاهل هذه الرسالة.
+
+
+ شكرا،
+
+ فريق {{project}}
+
diff --git a/app/config/locale/templates/ar.email.auth.recovery.tpl b/app/config/locale/templates/ar.email.auth.recovery.tpl
new file mode 100644
index 0000000000..06ca47f35e
--- /dev/null
+++ b/app/config/locale/templates/ar.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ مرحبا {{name}}،
+
+
+ اتبع هذا الرابط لإعادة تعيين كلمة مرور {{project}}.
+
+
{{redirect}}
+
+
+ إذا لم تطلب إعادة تعيين كلمة المرور الخاصة بك، فيمكنك تجاهل هذه الرسالة.
+
+
+ شكرا،
+
+ فريق {{project}}
+
diff --git a/app/config/locale/templates/cz.email.auth.confirm.tpl b/app/config/locale/templates/cz.email.auth.confirm.tpl
new file mode 100644
index 0000000000..481b440ab9
--- /dev/null
+++ b/app/config/locale/templates/cz.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Ahoj {{name}},
+
+
+ Kliknutím na tento odkaz ověřte svou e-mailovou adresu.
+
+
{{redirect}}
+
+
+ Pokud jste nepožádali o ověření této adresy, můžete tuto zprávu ignorovat.
+
+
+ dík,
+
+ {{project}} tým
+
diff --git a/app/config/locale/templates/cz.email.auth.invitation.tpl b/app/config/locale/templates/cz.email.auth.invitation.tpl
new file mode 100644
index 0000000000..8e8a8dc5ce
--- /dev/null
+++ b/app/config/locale/templates/cz.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Ahoj,
+
+
+ Tento e-mail vám byl zaslán, protože vás
{{owner}} chtěl pozvat, abyste se stali členem týmu v týmu
{{team}} v {{project}}.
+
+
+ Klepnutím na tento odkaz se připojíte k týmu
{{team}}:
+
+
{{redirect}}
+
+
+ Pokud vás nezajímá, můžete tuto zprávu ignorovat.
+
+
+ Dík,
+
+ {{project}} tým
+
diff --git a/app/config/locale/templates/cz.email.auth.recovery.tpl b/app/config/locale/templates/cz.email.auth.recovery.tpl
new file mode 100644
index 0000000000..d8a3e6a2b1
--- /dev/null
+++ b/app/config/locale/templates/cz.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Ahoj {{name}},
+
+
+ Pomocí tohoto odkazu obnovte své heslo {{project}}.
+
+
{{redirect}}
+
+
+ Pokud jste nepožádali o resetování hesla, můžete tuto zprávu ignorovat.
+
+
+ Dík,
+
+ {{project}} tým
+
diff --git a/app/config/locale/templates/de.email.auth.confirm.tpl b/app/config/locale/templates/de.email.auth.confirm.tpl
index ae4ff2729b..2a3211bbab 100644
--- a/app/config/locale/templates/de.email.auth.confirm.tpl
+++ b/app/config/locale/templates/de.email.auth.confirm.tpl
@@ -18,7 +18,7 @@
Bitte ignoriere diese Nachricht, wenn du das Verifizieren deiner E-Mail Adresse nicht beantragt hast.
- Vielen dank,
+ Vielen Dank,
{{project}} Team
\ No newline at end of file
diff --git a/app/config/locale/templates/de.email.auth.invitation.tpl b/app/config/locale/templates/de.email.auth.invitation.tpl
index dc218116a5..c6d9162730 100644
--- a/app/config/locale/templates/de.email.auth.invitation.tpl
+++ b/app/config/locale/templates/de.email.auth.invitation.tpl
@@ -13,7 +13,7 @@
diese E-Mail wurde dir geschickt, weil {{owner}} dich eingeladen hat Teammitglied im Team {{team}} bei {{project}} zu werden.
- Folge diesem Link um dem {{team}} Team beizutreten:
+ Folge diesem Link um dem Team {{team}} beizutreten:
{{redirect}}
@@ -21,7 +21,7 @@
Wenn du daran nicht interessiert bist, kannst du diese Nachricht ignorieren.
- Vielen dank,
+ Vielen Dank,
{{project}} Team
diff --git a/app/config/locale/templates/de.email.auth.recovery.tpl b/app/config/locale/templates/de.email.auth.recovery.tpl
index c9484a011c..6d2ccd7bae 100644
--- a/app/config/locale/templates/de.email.auth.recovery.tpl
+++ b/app/config/locale/templates/de.email.auth.recovery.tpl
@@ -18,7 +18,7 @@
Bitte ignoriere diese Nachricht, wenn du das Zurücksetzen deines Passworts nicht beantragt hast.
- Vielen dank,
+ Vielen Dank,
{{project}} Team
diff --git a/app/config/locale/templates/es.email.auth.confirm.tpl b/app/config/locale/templates/es.email.auth.confirm.tpl
index 3bb7e97b62..a5b9235be8 100644
--- a/app/config/locale/templates/es.email.auth.confirm.tpl
+++ b/app/config/locale/templates/es.email.auth.confirm.tpl
@@ -10,7 +10,7 @@
Hola {{name}},
- Sigue este enlace para verificar tu dirección de correo:
+ Sigue este enlace para verificar tu dirección de correo.
{{redirect}}
@@ -21,4 +21,4 @@
Gracias,
Equipo {{project}}
-
\ No newline at end of file
+
diff --git a/app/config/locale/templates/hu.email.auth.confirm.tpl b/app/config/locale/templates/hu.email.auth.confirm.tpl
new file mode 100644
index 0000000000..680e0da2ec
--- /dev/null
+++ b/app/config/locale/templates/hu.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Szia {{name}},
+
+
+ Kattints erre a linkre, hogy megerősítsd az e-mail címed.
+
+
{{redirect}}
+
+
+ Ha nem kérelmezted, hogy megerősítsük ezt a címet, ignoráld ezt a levelet.
+
+
+ Köszönettel,
+
+ {{project}} csapat
+
diff --git a/app/config/locale/templates/hu.email.auth.invitation.tpl b/app/config/locale/templates/hu.email.auth.invitation.tpl
new file mode 100644
index 0000000000..6dce55a639
--- /dev/null
+++ b/app/config/locale/templates/hu.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Szia,
+
+
+ Azért küldtük ezt az e-mailt
{{owner}} mert meg szeretnénk hívni a
{{team}} csapatba a következő projektre {{project}}.
+
+
+ Kattints erre a linkre, hogy a
{{team}} csapat tagja legyél:
+
+
{{redirect}}
+
+
+ Ha nem vegy ebben érdekelt ignoráld ezt az üzenetet.
+
+
+ Köszönettel,
+
+ {{project}} csapat
+
diff --git a/app/config/locale/templates/hu.email.auth.recovery.tpl b/app/config/locale/templates/hu.email.auth.recovery.tpl
new file mode 100644
index 0000000000..564d55bd0b
--- /dev/null
+++ b/app/config/locale/templates/hu.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Szia {{name}},
+
+
+ Kattints erre a linkre, hogy visszaállítsuk a {{project}} jelszavad.
+
+
{{redirect}}
+
+
+ Ha nem kérvényezted, hogy visszaállítsuk a jelszavad ignoráld ezt a levelet.
+
+
+ Köszönettel,
+
+ {{project}} csapat
+
diff --git a/app/config/locale/templates/it.email.auth.confirm.tpl b/app/config/locale/templates/it.email.auth.confirm.tpl
index 8106722d8d..fedbe80182 100644
--- a/app/config/locale/templates/it.email.auth.confirm.tpl
+++ b/app/config/locale/templates/it.email.auth.confirm.tpl
@@ -21,5 +21,5 @@
Grazie,
- {{project}} squadra
+ Il team di {{project}}
\ No newline at end of file
diff --git a/app/config/locale/templates/it.email.auth.invitation.tpl b/app/config/locale/templates/it.email.auth.invitation.tpl
index be7becac4e..9ec03cf39b 100644
--- a/app/config/locale/templates/it.email.auth.invitation.tpl
+++ b/app/config/locale/templates/it.email.auth.invitation.tpl
@@ -11,10 +11,10 @@
Ciao,
- Questa mail ti stata inviata perch {{owner}} volevo invitarti a diventare un membro del team al {{team}} squadra a {{project}}.
+ Questa mail ti è stata inviata perchè {{owner}} vuole invitarti a diventare un membro del team {{team}} del progetto {{project}}.
- Segui questo link per unirti a {{team}} squadra:
+ Segui questo link per unirti al team {{team}}:
{{redirect}}
@@ -24,5 +24,5 @@
Grazie,
- {{project}} squadra
+ Il team di {{project}}
\ No newline at end of file
diff --git a/app/config/locale/templates/it.email.auth.recovery.tpl b/app/config/locale/templates/it.email.auth.recovery.tpl
index 6a5adb5cbe..2756b1569d 100644
--- a/app/config/locale/templates/it.email.auth.recovery.tpl
+++ b/app/config/locale/templates/it.email.auth.recovery.tpl
@@ -10,7 +10,7 @@
Ciao {{name}},
- Segui questo link per reimpostare la tua {{project}} password.
+ Segui questo link per reimpostare la tua password per {{project}}.
{{redirect}}
@@ -20,5 +20,5 @@
Grazie,
- {{project}} squadra
+ Il team di {{project}}
\ No newline at end of file
diff --git a/app/config/locale/templates/jv.email.auth.confirm.tpl b/app/config/locale/templates/jv.email.auth.confirm.tpl
new file mode 100644
index 0000000000..c1afdc69a9
--- /dev/null
+++ b/app/config/locale/templates/jv.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Halo, {{name}},
+
+
+ Tindakake tautan iki kanggo verifikasi alamat email sampeyan.
+
+
{{redirect}}
+
+
+ Yen sampeyan ora njaluk verifikasi alamat iki, sampeyan bisa nglalekake pesen iki.
+
+
+ Matur suwun,
+
+ tim {{project}}
+
diff --git a/app/config/locale/templates/jv.email.auth.invitation.tpl b/app/config/locale/templates/jv.email.auth.invitation.tpl
new file mode 100644
index 0000000000..8c5de0f419
--- /dev/null
+++ b/app/config/locale/templates/jv.email.auth.invitation.tpl
@@ -0,0 +1,28 @@
+
+
+
+
+ Halo,
+
+
+ Email iki dikirim menyang sampeyan amarga
{{owner}} pengin ngajak sampeyan dadi anggota tim ing
{{team}} tim ing {{project}}.
+
+
+ Tindakake link iki kanggo gabung ing
{{team}}:
+
+
{{redirect}}
+
+
+ Yen sampeyan ora kasengsem, sampeyan bisa nglirwakake pesen iki.
+
+
+ Matur suwun,
+
+ tim {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/jv.email.auth.recovery.tpl b/app/config/locale/templates/jv.email.auth.recovery.tpl
new file mode 100644
index 0000000000..ed6c879aeb
--- /dev/null
+++ b/app/config/locale/templates/jv.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Halo {{name}},
+
+
+ Tindakake link iki kanggo ngreset {{project}} sandhi.
+
+
{{redirect}}
+
+
+ Yen sampeyan ora njaluk ngreset sandhi, sampeyan bisa nglalekake pesen iki.
+
+
+ Matur suwun,
+
+ tim {{project}}
+
diff --git a/app/config/locale/templates/lt.email.auth.confirm.tpl b/app/config/locale/templates/lt.email.auth.confirm.tpl
new file mode 100644
index 0000000000..f1bc439b11
--- /dev/null
+++ b/app/config/locale/templates/lt.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Sveiki, {{name}},
+
+
+ Paspauskite nuorodą, kad patvirtinti savo el. paštą.
+
+
{{redirect}}
+
+
+ Jei neprašėte el. pašto patvirtinimo, ignoruokite šį laišką
+
+
+ Ačiū,
+
+ komanda {{project}}
+
diff --git a/app/config/locale/templates/lt.email.auth.invitation.tpl b/app/config/locale/templates/lt.email.auth.invitation.tpl
new file mode 100644
index 0000000000..0c40a3cbc3
--- /dev/null
+++ b/app/config/locale/templates/lt.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Sveiki,
+
+
+ Šis laiškas buvo išsiųstas dėl to, kad
{{owner}} kviečia tapti komandos
{{team}} nariu projekte {{project}}.
+
+
+ Paspauskite nuorodą, kad prisijungti prie komandos
{{team}} :
+
+
{{redirect}}
+
+
+ Jei Jums neįdomu, ignoruokite šį laišką.
+
+
+ Ačiū,
+
+ komanda {{project}}
+
diff --git a/app/config/locale/templates/lt.email.auth.recovery.tpl b/app/config/locale/templates/lt.email.auth.recovery.tpl
new file mode 100644
index 0000000000..7aba4cd2ce
--- /dev/null
+++ b/app/config/locale/templates/lt.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Sveiki, {{name}},
+
+
+ Paspauskite nuorodą, kad pakeisti slaptožodį projektui {{project}}.
+
+
{{redirect}}
+
+
+ Jei neprašėte atkurti slaptažodžio, ignoruokite šį laišką.
+
+
+ Ačiū,
+
+ komanda {{project}}
+
diff --git a/app/config/locale/templates/pl.email.auth.confirm.tpl b/app/config/locale/templates/pl.email.auth.confirm.tpl
new file mode 100644
index 0000000000..e46187999f
--- /dev/null
+++ b/app/config/locale/templates/pl.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Witaj {{name}},
+
+
+ Kliknij ten link, aby zweryfikować swój adres e-mail.
+
+
{{redirect}}
+
+
+ Jeśli nie prosiłeś o weryfikację tego adresu, możesz zignorować tę wiadomość.
+
+
+ Dziękujemy,
+
+ zespół {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/pl.email.auth.invitation.tpl b/app/config/locale/templates/pl.email.auth.invitation.tpl
new file mode 100644
index 0000000000..d11586de75
--- /dev/null
+++ b/app/config/locale/templates/pl.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Witaj,
+
+
+ Ta wiadomość została do Ciebie wysłana, ponieważ
{{owner}} chciałby zaprosić Cię do dołączenia do zespołu
{{team}} w {{project}}.
+
+
+ Kliknij ten link, aby dołączyć do zespołu
{{team}}:
+
+
{{redirect}}
+
+
+ Jeśli nie jesteś zainteresowany, możesz zignorować tę wiadomość.
+
+
+ Dziękujemy,
+
+ zaspół {{project}}
+
diff --git a/app/config/locale/templates/pl.email.auth.recovery.tpl b/app/config/locale/templates/pl.email.auth.recovery.tpl
new file mode 100644
index 0000000000..78066ee064
--- /dev/null
+++ b/app/config/locale/templates/pl.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Witaj {{name}},
+
+
+ Kliknij ten link, aby zresetować hasło do {{project}}.
+
+
{{redirect}}
+
+
+ Jeśli nie prosiłeś o zresetowanie hasła, możesz zignorować tę wiadomość.
+
+
+ Dziękujemy,
+
+ zaspół {{project}}
+
diff --git a/app/config/locale/templates/pt-br.email.auth.confirm.tpl b/app/config/locale/templates/pt-br.email.auth.confirm.tpl
index aaee0d5ba8..f949c3f248 100644
--- a/app/config/locale/templates/pt-br.email.auth.confirm.tpl
+++ b/app/config/locale/templates/pt-br.email.auth.confirm.tpl
@@ -10,7 +10,7 @@
Olá {{name}},
- Por favor, confirme o seu email acessando este link abaixo.
+ Por favor, confirme o seu email acessando o link abaixo.
{{redirect}}
diff --git a/app/config/locale/templates/pt-br.email.auth.invitation.tpl b/app/config/locale/templates/pt-br.email.auth.invitation.tpl
index e7a5645c5b..d0dceefb2f 100644
--- a/app/config/locale/templates/pt-br.email.auth.invitation.tpl
+++ b/app/config/locale/templates/pt-br.email.auth.invitation.tpl
@@ -10,10 +10,10 @@
Olá,
- Este email foi enviado a você porque
{{owner}} deseja lhe convidar a se tornar membro da equipe {{team}} no {{project}}.
+ Este email foi enviado a você porque
{{owner}} deseja convida-lo para se tornar membro da equipe {{team}} no {{project}}.
- Siga este link para se juntar a equipe {{team}}:
+ Siga o link abaixo para se juntar a equipe {{team}}:
{{redirect}}
diff --git a/app/config/locale/templates/pt-br.email.auth.recovery.tpl b/app/config/locale/templates/pt-br.email.auth.recovery.tpl
index e70a712cbf..4e722f2aee 100644
--- a/app/config/locale/templates/pt-br.email.auth.recovery.tpl
+++ b/app/config/locale/templates/pt-br.email.auth.recovery.tpl
@@ -10,7 +10,7 @@
Olá {{name}},
- Acesse este link para redefinir sua senha do {{project}}.
+ Acesse o link abaixo para redefinir sua senha do {{project}}.
{{redirect}}
diff --git a/app/config/locale/templates/ru.email.auth.confirm.tpl b/app/config/locale/templates/ru.email.auth.confirm.tpl
new file mode 100644
index 0000000000..29993e988f
--- /dev/null
+++ b/app/config/locale/templates/ru.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Здравствуйте, {{name}},
+
+
+ Перейдите по ссылке, чтобы подтвердить свой адрес электронной почты.
+
+
{{redirect}}
+
+
+ Если вы не запрашивали подтверждение этого адреса, проигнорируйте это сообщение.
+
+
+ Спасибо,
+
+ команда {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/ru.email.auth.invitation.tpl b/app/config/locale/templates/ru.email.auth.invitation.tpl
new file mode 100644
index 0000000000..41de21d09f
--- /dev/null
+++ b/app/config/locale/templates/ru.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Здравствуйте,
+
+
+ Это письмо отправлено вам, потому что
{{owner}} приглашает стать членом команды
{{team}} в проекте {{project}}.
+
+
+ Перейдите по ссылке, чтобы присоединиться к команде
{{team}} :
+
+
{{redirect}}
+
+
+ Если вы не заинтересованы, проигнорируйте это сообщение.
+
+
+ Спасибо,
+
+ команда {{project}}
+
diff --git a/app/config/locale/templates/ru.email.auth.recovery.tpl b/app/config/locale/templates/ru.email.auth.recovery.tpl
new file mode 100644
index 0000000000..680278e42c
--- /dev/null
+++ b/app/config/locale/templates/ru.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Здравствуйте, {{name}},
+
+
+ Перейдите по ссылке, чтобы сбросить пароль для проекта {{project}}.
+
+
{{redirect}}
+
+
+ Если вы не запрашивали сброс пароля, проигнорируйте это сообщение.
+
+
+ Спасибо,
+
+ команда {{project}}
+
diff --git a/app/config/locale/templates/si.email.auth.confirm.tpl b/app/config/locale/templates/si.email.auth.confirm.tpl
new file mode 100644
index 0000000000..c7be6ec681
--- /dev/null
+++ b/app/config/locale/templates/si.email.auth.confirm.tpl
@@ -0,0 +1,25 @@
+
+
+
+ ආයුබෝවන් {{name}},
+
+
+ ඔබගේ විද්යුත් තැපැල් ලිපිනය සත්යාපනය කිරීමට මෙම සබැඳිය අනුගමනය කරන්න.
+
+
{{redirect}}
+
+
+
+ ඔබ මෙම ලිපිනය සත්යාපනය කිරීමට ඉල්ලා නොසිටියේ නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.
+
+
+ ස්තූතියි,
+
+ {{project}} කණ්ඩායම
+
\ No newline at end of file
diff --git a/app/config/locale/templates/si.email.auth.invitation.tpl b/app/config/locale/templates/si.email.auth.invitation.tpl
new file mode 100644
index 0000000000..1a0842d2e8
--- /dev/null
+++ b/app/config/locale/templates/si.email.auth.invitation.tpl
@@ -0,0 +1,31 @@
+
+
+
+ ආයුබෝවන්,
+
+
+
+ මෙම තැපෑල ඔබ වෙත එවනු ලැබුවේ
{{owner}}ට ඔබව , {{project}} ව්යාපෘතියෙහි
{{team}} කණ්ඩායමේ කණ්ඩායම් සාමාජිකයෙකු වීමට ආරාධනා කිරීමට අවශ්ය වූ නිසාය.
+
+
+
+
+
{{team}} කණ්ඩායමට එක්වීමට මෙම සබැඳිය අනුගමනය කරන්න:
+
+
+
{{redirect}}
+
+
+ ඔබ උනන්දුවක් නොදක්වන්නේ නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැකිය.
+
+
+ ස්තූතියි,
+
+ {{project}} කණ්ඩායම.
+
\ No newline at end of file
diff --git a/app/config/locale/templates/si.email.auth.recovery.tpl b/app/config/locale/templates/si.email.auth.recovery.tpl
new file mode 100644
index 0000000000..bcf32b61ba
--- /dev/null
+++ b/app/config/locale/templates/si.email.auth.recovery.tpl
@@ -0,0 +1,25 @@
+
+
+
+ ආයුබෝවන් {{name}},
+
+
+ ඔබගේ {{project}} ව්යාපෘතියෙහි මුරපදය නැවත සැකසීමට මෙම සබැඳිය අනුගමනය කරන්න
+
+
+
{{redirect}}
+
+
+ ඔබගේ මුරපදය නැවත සැකසීමට ඔබ ඉල්ලා නොසිටියේ නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.
+
+
+ ස්තූතියි,
+
+ {{project}} කණ්ඩායම
+
\ No newline at end of file
diff --git a/app/config/locale/templates/sl.email.auth.confirm.tpl b/app/config/locale/templates/sl.email.auth.confirm.tpl
new file mode 100644
index 0000000000..e7f15272da
--- /dev/null
+++ b/app/config/locale/templates/sl.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Pozdravljeni {{name}},
+
+
+ Sledite tej povezavi za potrditev vašega email naslova.
+
+
{{redirect}}
+
+
+ Če niste zahtevali potrditve tega naslova, lahko to sporočilo prezrete.
+
+
+ Hvala,
+
+ {{project}} ekipa
+
\ No newline at end of file
diff --git a/app/config/locale/templates/sl.email.auth.invitation.tpl b/app/config/locale/templates/sl.email.auth.invitation.tpl
new file mode 100644
index 0000000000..13467789a3
--- /dev/null
+++ b/app/config/locale/templates/sl.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Pozdravljeni,
+
+
+ To sporočilo vam je bilo posredovano, ker vas je
{{owner}} povabil/a, da postanete član
{{team}} ekipe za {{project}}.
+
+
+ Sledite tej povezavi, da se pridružite
{{team}} ekipi:
+
+
{{redirect}}
+
+
+ Če vas ne zanima, lahko to sporočilo prezrete.
+
+
+ Hvala,
+
+ {{project}} ekipa
+
diff --git a/app/config/locale/templates/sl.email.auth.recovery.tpl b/app/config/locale/templates/sl.email.auth.recovery.tpl
new file mode 100644
index 0000000000..701805e12e
--- /dev/null
+++ b/app/config/locale/templates/sl.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Pozdravljeni {{name}},
+
+
+ Za ponastavitev vašega {{project}} gesla sledite tej povezavi.
+
+
{{redirect}}
+
+
+ Če niste zahtevali ponastavitve gesla, lahko to sporočilo prezrete.
+
+
+ Hvala,
+
+ {{project}} ekipa
+
diff --git a/app/config/locale/templates/sv.email.auth.confirm.tpl b/app/config/locale/templates/sv.email.auth.confirm.tpl
new file mode 100644
index 0000000000..0b1e4451ff
--- /dev/null
+++ b/app/config/locale/templates/sv.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Hej {{name}},
+
+
+ Vänligen följ länken nedan för att verifiera din epostadress.
+
+
{{redirect}}
+
+
+ Om du inte vill verifiera din epostadress så kan du ignorera detta meddelande.
+
+
+ Tack,
+
+ {{project}}-teamet
+
\ No newline at end of file
diff --git a/app/config/locale/templates/sv.email.auth.invitation.tpl b/app/config/locale/templates/sv.email.auth.invitation.tpl
new file mode 100644
index 0000000000..604e94227d
--- /dev/null
+++ b/app/config/locale/templates/sv.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Hej,
+
+
+
{{owner}} vill bjuda in dig att bli del av
{{team}}-teamet inom {{project}}.
+
+
+ Följ denna länk för att bli del av
{{team}}-teamet:
+
+
{{redirect}}
+
+
+ Om du inte är intresserad så kan du ignorera detta meddelande.
+
+
+ Tack,
+
+ {{project}}-teamet
+
diff --git a/app/config/locale/templates/sv.email.auth.recovery.tpl b/app/config/locale/templates/sv.email.auth.recovery.tpl
new file mode 100644
index 0000000000..dba9221559
--- /dev/null
+++ b/app/config/locale/templates/sv.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Hej {{name}},
+
+
+ Följ denna länk för att ändra ditt {{project}} lösenord.
+
+
{{redirect}}
+
+
+ Om du inte bett om att ändr ditt lösenord så kan du ignorera detta meddelande.
+
+
+ Tack,
+
+ {{project}}-teamet
+
diff --git a/app/config/locale/templates/ta.email.auth.confirm.tpl b/app/config/locale/templates/ta.email.auth.confirm.tpl
new file mode 100644
index 0000000000..25a34d067c
--- /dev/null
+++ b/app/config/locale/templates/ta.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ வணக்கம் {{name}},
+
+
+ இந்த இணைப்பைப் பின்தொடர்ந்து உங்கள் மின்னஞ்சல் முகவரியை சரிபார்க்கவும்.
+
+
{{redirect}}
+
+
+ இந்த முகவரியை சரிபார்க்க நீங்கள் கேட்கவில்லை என்றால், இந்த செய்தியை நீங்கள் புறக்கணிக்கலாம்.
+
+
+ நன்றி,
+
+ {{project}} குழு
+
diff --git a/app/config/locale/templates/ta.email.auth.invitation.tpl b/app/config/locale/templates/ta.email.auth.invitation.tpl
new file mode 100644
index 0000000000..b9c417c269
--- /dev/null
+++ b/app/config/locale/templates/ta.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ வணக்கம்,
+
+
+ இந்த மின்னஞ்சல் உங்களுக்கு அனுப்பப்பட்டது, ஏனெனில்
{{owner}} உங்களை
{{team}} குழுவின் {{project}} திட்டத்தில் உறுப்பினராக அழைக்க விரும்பினார்கள்.
+
+
+ இந்த இணைப்பைப் பின்தொடர்ந்து
{{team}} குழுவில் சேரவும்:
+
+
{{redirect}}
+
+
+ இந்த முகவரியை சரிபார்க்க நீங்கள் கேட்கவில்லை என்றால், இந்த செய்தியை நீங்கள் புறக்கணிக்கலாம்.
+
+
+ நன்றி,
+
+ {{project}} குழு
+
diff --git a/app/config/locale/templates/ta.email.auth.recovery.tpl b/app/config/locale/templates/ta.email.auth.recovery.tpl
new file mode 100644
index 0000000000..455a6cf25b
--- /dev/null
+++ b/app/config/locale/templates/ta.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ வணக்கம் {{name}},
+
+
+ இந்த இணைப்பைப் பின்தொடர்ந்து உங்கள் {{project}} திட்டத்தின் கடவுச்சொல்லை மீட்கவும்.
+
+
{{redirect}}
+
+
+ உங்கள் கடவுச்சொல்லை மீட்டமைக்க நீங்கள் கேட்கவில்லை என்றால், இந்த செய்தியை நீங்கள் புறக்கணிக்கலாம்.
+
+
+ நன்றி,
+
+ {{project}} குழு
+
diff --git a/app/config/locale/templates/vi.email.auth.confirm.tpl b/app/config/locale/templates/vi.email.auth.confirm.tpl
new file mode 100644
index 0000000000..40c7d496e1
--- /dev/null
+++ b/app/config/locale/templates/vi.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Xin chào {{name}},
+
+
+ Hãy vào liên kết này để xác nhận địa chỉ email của bạn.
+
+
{{redirect}}
+
+
+ Xin hãy bỏ qua email này nếu bạn không yêu cầu xác nhận địa chỉ này.
+
+
+ Xin cảm ơn,
+
+ {{project}} team
+
\ No newline at end of file
diff --git a/app/config/locale/templates/vi.email.auth.invitation.tpl b/app/config/locale/templates/vi.email.auth.invitation.tpl
new file mode 100644
index 0000000000..387c537f55
--- /dev/null
+++ b/app/config/locale/templates/vi.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ Xin chào,
+
+
+ Bạn nhận được email này vì
{{owner}} muốn mời bạn tham gia {{project}} cùng với
{{team}} team.
+
+
+ Hãy theo liên kết này để tham gia vào
{{team}} team:
+
+
{{redirect}}
+
+
+ Nếu bạn không thích tham gia, hãy bỏ qua lời nhắn này.
+
+
+ Xin cảm ơn,
+
+ {{project}} team
+
diff --git a/app/config/locale/templates/vi.email.auth.recovery.tpl b/app/config/locale/templates/vi.email.auth.recovery.tpl
new file mode 100644
index 0000000000..57c704f0cd
--- /dev/null
+++ b/app/config/locale/templates/vi.email.auth.recovery.tpl
@@ -0,0 +1,24 @@
+
+
+
+ Xin chào {{name}},
+
+
+ Hãy theo liên kết này để khôi phục mật khẩu của bạn ở {{project}}.
+
+
{{redirect}}
+
+
+ Hãy bỏ qua lời nhắn này nếu bạn không yêu cầu khôi phục mật khẩu.
+
+
+ Xin cảm ơn,
+
+ {{project}} team
+
diff --git a/app/config/locale/templates/zh-cn.email.auth.confirm.tpl b/app/config/locale/templates/zh-cn.email.auth.confirm.tpl
new file mode 100644
index 0000000000..a557d451c7
--- /dev/null
+++ b/app/config/locale/templates/zh-cn.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ {{name}} 你好,
+
+
+ 请点击下方的链接验证你的电子邮箱地址。
+
+
{{redirect}}
+
+
+ 如果你没有请求验证本邮箱,请忽略这份邮件。
+
+
+ 谢谢。
+
+ 来自 {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/zh-cn.email.auth.invitation.tpl b/app/config/locale/templates/zh-cn.email.auth.invitation.tpl
new file mode 100644
index 0000000000..7ee56a401a
--- /dev/null
+++ b/app/config/locale/templates/zh-cn.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ 你好,
+
+
+
{{owner}}邀请您加入{{project}}项目的
{{team}}小组。
+
+
+ 请点击下方的链接加入{{team}}小组:
+
+
{{redirect}}
+
+
+ 如果您没有加入该小组的计划,请忽略本邮件。
+
+
+ 谢谢。
+
+ 来自 {{project}}
+
diff --git a/app/config/locale/templates/zh-cn.email.auth.recovery.tpl b/app/config/locale/templates/zh-cn.email.auth.recovery.tpl
new file mode 100644
index 0000000000..8a473b5537
--- /dev/null
+++ b/app/config/locale/templates/zh-cn.email.auth.recovery.tpl
@@ -0,0 +1,25 @@
+
+
+
+ {{name}} 你好,
+
+
+ 请点击下方的链接重新设置{{project}}的密码。
+ Follow this link to reset your {{project}} password.
+
+
{{redirect}}
+
+
+ 如果您未曾申请重设密码,请忽略本邮件。
+
+
+ 谢谢。
+
+ 来自 {{project}}
+
diff --git a/app/config/locale/templates/zh-tw.email.auth.confirm.tpl b/app/config/locale/templates/zh-tw.email.auth.confirm.tpl
new file mode 100644
index 0000000000..9ba081bb91
--- /dev/null
+++ b/app/config/locale/templates/zh-tw.email.auth.confirm.tpl
@@ -0,0 +1,24 @@
+
+
+
+ {{name}} 你好,
+
+
+ 請點擊下方的鏈接驗證你的電子郵箱地址。
+
+
{{redirect}}
+
+
+ 如果你沒有請求驗證本郵箱,請忽略這份郵件。
+
+
+ 謝謝。
+
+ 來自 {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/zh-tw.email.auth.invitation.tpl b/app/config/locale/templates/zh-tw.email.auth.invitation.tpl
new file mode 100644
index 0000000000..08fb921fd7
--- /dev/null
+++ b/app/config/locale/templates/zh-tw.email.auth.invitation.tpl
@@ -0,0 +1,27 @@
+
+
+
+ 你好,
+
+
+
{{owner}}邀請您加入{{project}}項目的
{{team}}小組。
+
+
+ 請點擊下方的鏈接加入{{team}}小組:
+
+
{{redirect}}
+
+
+ 如果您沒有加入該小組的計劃,請忽略本郵件。
+
+
+ 謝謝。
+
+ 來自 {{project}}
+
\ No newline at end of file
diff --git a/app/config/locale/templates/zh-tw.email.auth.recovery.tpl b/app/config/locale/templates/zh-tw.email.auth.recovery.tpl
new file mode 100644
index 0000000000..8a473b5537
--- /dev/null
+++ b/app/config/locale/templates/zh-tw.email.auth.recovery.tpl
@@ -0,0 +1,25 @@
+
+
+
+ {{name}} 你好,
+
+
+ 请点击下方的链接重新设置{{project}}的密码。
+ Follow this link to reset your {{project}} password.
+
+
{{redirect}}
+
+
+ 如果您未曾申请重设密码,请忽略本邮件。
+
+
+ 谢谢。
+
+ 来自 {{project}}
+
diff --git a/app/config/locale/vi.continents.php b/app/config/locale/vi.continents.php
new file mode 100644
index 0000000000..bb6e5d9ad0
--- /dev/null
+++ b/app/config/locale/vi.continents.php
@@ -0,0 +1,11 @@
+ 'Châu Phi',
+ 'AN' => 'Nam Cực',
+ 'AS' => 'Châu Á',
+ 'EU' => 'Châu Âu',
+ 'NA' => 'Bắc Mỹ',
+ 'OC' => 'Châu Đại Dương',
+ 'SA' => 'Nam Mỹ',
+];
diff --git a/app/config/locale/vi.countries.php b/app/config/locale/vi.countries.php
new file mode 100644
index 0000000000..f8f8de74af
--- /dev/null
+++ b/app/config/locale/vi.countries.php
@@ -0,0 +1,198 @@
+ 'Afghanistan',
+ 'AO' => 'Angola',
+ 'AL' => 'Albania',
+ 'AD' => 'Andorra',
+ 'AE' => 'United Arab Emirates',
+ 'AR' => 'Argentina',
+ 'AM' => 'Armenia',
+ 'AG' => 'Antigua and Barbuda',
+ 'AU' => 'Australia',
+ 'AT' => 'Austria',
+ 'AZ' => 'Azerbaijan',
+ 'BI' => 'Burundi',
+ 'BE' => 'Belgium',
+ 'BJ' => 'Benin',
+ 'BF' => 'Burkina Faso',
+ 'BD' => 'Bangladesh',
+ 'BG' => 'Bulgaria',
+ 'BH' => 'Bahrain',
+ 'BS' => 'Bahamas',
+ 'BA' => 'Bosnia and Herzegovina',
+ 'BY' => 'Belarus',
+ 'BZ' => 'Belize',
+ 'BO' => 'Bolivia',
+ 'BR' => 'Brazil',
+ 'BB' => 'Barbados',
+ 'BN' => 'Brunei',
+ 'BT' => 'Bhutan',
+ 'BW' => 'Botswana',
+ 'CF' => 'Central African Republic',
+ 'CA' => 'Canada',
+ 'CH' => 'Switzerland',
+ 'CL' => 'Chile',
+ 'CN' => 'China',
+ 'CI' => 'Ivory Coast',
+ 'CM' => 'Cameroon',
+ 'CD' => 'DR Congo',
+ 'CG' => 'Republic of the Congo',
+ 'CO' => 'Colombia',
+ 'KM' => 'Comoros',
+ 'CV' => 'Cape Verde',
+ 'CR' => 'Costa Rica',
+ 'CU' => 'Cuba',
+ 'CY' => 'Cyprus',
+ 'CZ' => 'Czechia',
+ 'DE' => 'Germany',
+ 'DJ' => 'Djibouti',
+ 'DM' => 'Dominica',
+ 'DK' => 'Denmark',
+ 'DO' => 'Dominican Republic',
+ 'DZ' => 'Algeria',
+ 'EC' => 'Ecuador',
+ 'EG' => 'Egypt',
+ 'ER' => 'Eritrea',
+ 'ES' => 'Spain',
+ 'EE' => 'Estonia',
+ 'ET' => 'Ethiopia',
+ 'FI' => 'Finland',
+ 'FJ' => 'Fiji',
+ 'FR' => 'France',
+ 'FM' => 'Micronesia',
+ 'GA' => 'Gabon',
+ 'GB' => 'United Kingdom',
+ 'GE' => 'Georgia',
+ 'GH' => 'Ghana',
+ 'GN' => 'Guinea',
+ 'GM' => 'Gambia',
+ 'GW' => 'Guinea-Bissau',
+ 'GQ' => 'Equatorial Guinea',
+ 'GR' => 'Greece',
+ 'GD' => 'Grenada',
+ 'GT' => 'Guatemala',
+ 'GY' => 'Guyana',
+ 'HN' => 'Honduras',
+ 'HR' => 'Croatia',
+ 'HT' => 'Haiti',
+ 'HU' => 'Hungary',
+ 'ID' => 'Indonesia',
+ 'IN' => 'India',
+ 'IE' => 'Ireland',
+ 'IR' => 'Iran',
+ 'IQ' => 'Iraq',
+ 'IS' => 'Iceland',
+ 'IL' => 'Israel',
+ 'IT' => 'Italy',
+ 'JM' => 'Jamaica',
+ 'JO' => 'Jordan',
+ 'JP' => 'Japan',
+ 'KZ' => 'Kazakhstan',
+ 'KE' => 'Kenya',
+ 'KG' => 'Kyrgyzstan',
+ 'KH' => 'Cambodia',
+ 'KI' => 'Kiribati',
+ 'KN' => 'Saint Kitts and Nevis',
+ 'KR' => 'South Korea',
+ 'KW' => 'Kuwait',
+ 'LA' => 'Laos',
+ 'LB' => 'Lebanon',
+ 'LR' => 'Liberia',
+ 'LY' => 'Libya',
+ 'LC' => 'Saint Lucia',
+ 'LI' => 'Liechtenstein',
+ 'LK' => 'Sri Lanka',
+ 'LS' => 'Lesotho',
+ 'LT' => 'Lithuania',
+ 'LU' => 'Luxembourg',
+ 'LV' => 'Latvia',
+ 'MA' => 'Morocco',
+ 'MC' => 'Monaco',
+ 'MD' => 'Moldova',
+ 'MG' => 'Madagascar',
+ 'MV' => 'Maldives',
+ 'MX' => 'Mexico',
+ 'MH' => 'Marshall Islands',
+ 'MK' => 'Macedonia',
+ 'ML' => 'Mali',
+ 'MT' => 'Malta',
+ 'MM' => 'Myanmar',
+ 'ME' => 'Montenegro',
+ 'MN' => 'Mongolia',
+ 'MZ' => 'Mozambique',
+ 'MR' => 'Mauritania',
+ 'MU' => 'Mauritius',
+ 'MW' => 'Malawi',
+ 'MY' => 'Malaysia',
+ 'NA' => 'Namibia',
+ 'NE' => 'Niger',
+ 'NG' => 'Nigeria',
+ 'NI' => 'Nicaragua',
+ 'NL' => 'Netherlands',
+ 'NO' => 'Norway',
+ 'NP' => 'Nepal',
+ 'NR' => 'Nauru',
+ 'NZ' => 'New Zealand',
+ 'OM' => 'Oman',
+ 'PK' => 'Pakistan',
+ 'PA' => 'Panama',
+ 'PE' => 'Peru',
+ 'PH' => 'Philippines',
+ 'PW' => 'Palau',
+ 'PG' => 'Papua New Guinea',
+ 'PL' => 'Poland',
+ 'KP' => 'North Korea',
+ 'PT' => 'Portugal',
+ 'PY' => 'Paraguay',
+ 'QA' => 'Qatar',
+ 'RO' => 'Romania',
+ 'RU' => 'Russia',
+ 'RW' => 'Rwanda',
+ 'SA' => 'Saudi Arabia',
+ 'SD' => 'Sudan',
+ 'SN' => 'Senegal',
+ 'SG' => 'Singapore',
+ 'SB' => 'Solomon Islands',
+ 'SL' => 'Sierra Leone',
+ 'SV' => 'El Salvador',
+ 'SM' => 'San Marino',
+ 'SO' => 'Somalia',
+ 'RS' => 'Serbia',
+ 'SS' => 'South Sudan',
+ 'ST' => 'São Tomé and Príncipe',
+ 'SR' => 'Suriname',
+ 'SK' => 'Slovakia',
+ 'SI' => 'Slovenia',
+ 'SE' => 'Sweden',
+ 'SZ' => 'Swaziland',
+ 'SC' => 'Seychelles',
+ 'SY' => 'Syria',
+ 'TD' => 'Chad',
+ 'TG' => 'Togo',
+ 'TH' => 'Thailand',
+ 'TJ' => 'Tajikistan',
+ 'TM' => 'Turkmenistan',
+ 'TL' => 'Timor-Leste',
+ 'TO' => 'Tonga',
+ 'TT' => 'Trinidad and Tobago',
+ 'TN' => 'Tunisia',
+ 'TR' => 'Turkey',
+ 'TV' => 'Tuvalu',
+ 'TZ' => 'Tanzania',
+ 'UG' => 'Uganda',
+ 'UA' => 'Ukraine',
+ 'UY' => 'Uruguay',
+ 'US' => 'United States',
+ 'UZ' => 'Uzbekistan',
+ 'VA' => 'Vatican City',
+ 'VC' => 'Saint Vincent and the Grenadines',
+ 'VE' => 'Venezuela',
+ 'VN' => 'Việt Nam',
+ 'VU' => 'Vanuatu',
+ 'WS' => 'Samoa',
+ 'YE' => 'Yemen',
+ 'ZA' => 'South Africa',
+ 'ZM' => 'Zambia',
+ 'ZW' => 'Zimbabwe',
+];
diff --git a/app/config/locale/vi.php b/app/config/locale/vi.php
new file mode 100644
index 0000000000..b444b11536
--- /dev/null
+++ b/app/config/locale/vi.php
@@ -0,0 +1,21 @@
+ '"Nghệ thuật khôn ngoan là nghệ thuật biết những gì cần bỏ qua."', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'vi',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s Team',
+ 'auth.emails.confirm.title' => 'Xác nhận tài khoản',
+ 'auth.emails.confirm.body' => 'vi.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => 'Đặt lại mật khẩu',
+ 'auth.emails.recovery.body' => 'vi.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => 'Lời mới vào %s Team ở %s',
+ 'auth.emails.invitation.body' => 'vi.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => 'Chưa xác định',
+
+ 'countries' => include 'vi.countries.php',
+ 'continents' => include 'vi.continents.php',
+];
diff --git a/app/config/locale/zh-cn.continents.php b/app/config/locale/zh-cn.continents.php
new file mode 100644
index 0000000000..625302189e
--- /dev/null
+++ b/app/config/locale/zh-cn.continents.php
@@ -0,0 +1,11 @@
+ '非洲',
+ 'AN' => '南极洲',
+ 'AS' => '亚洲',
+ 'EU' => '欧洲',
+ 'NA' => '北美洲',
+ 'OC' => '大洋洲',
+ 'SA' => '南美洲',
+];
diff --git a/app/config/locale/zh-cn.countries.php b/app/config/locale/zh-cn.countries.php
new file mode 100644
index 0000000000..c5c7224584
--- /dev/null
+++ b/app/config/locale/zh-cn.countries.php
@@ -0,0 +1,198 @@
+ '阿富汗',
+ 'AO' => '安哥拉',
+ 'AL' => '阿尔巴尼亚',
+ 'AD' => '安道尔',
+ 'AE' => '阿拉伯联合酋长国',
+ 'AR' => '阿根廷',
+ 'AM' => '亚美尼亚',
+ 'AG' => '安提瓜和巴布达',
+ 'AU' => '澳大利亚',
+ 'AT' => '奥地利',
+ 'AZ' => '阿塞拜疆',
+ 'BI' => '布隆迪',
+ 'BE' => '比利时',
+ 'BJ' => '贝宁',
+ 'BF' => '布基纳法索',
+ 'BD' => '孟加拉国',
+ 'BG' => '保加利亚',
+ 'BH' => '巴林',
+ 'BS' => '巴哈马',
+ 'BA' => '波黑',
+ 'BY' => '白罗斯',
+ 'BZ' => '伯利兹',
+ 'BO' => '玻利维亚',
+ 'BR' => '巴西',
+ 'BB' => '巴巴多斯',
+ 'BN' => '文莱',
+ 'BT' => '不丹',
+ 'BW' => '博茨瓦纳',
+ 'CF' => '中非共和国',
+ 'CA' => '加拿大',
+ 'CH' => '瑞士',
+ 'CL' => '智利',
+ 'CN' => '中国',
+ 'CI' => '象牙海岸',
+ 'CM' => '喀麦隆',
+ 'CD' => '刚果民主共和国',
+ 'CG' => '刚果共和国',
+ 'CO' => '哥伦比亚',
+ 'KM' => '科摩',
+ 'CV' => '佛得角',
+ 'CR' => '哥斯达黎加',
+ 'CU' => '古巴',
+ 'CY' => '塞浦路斯',
+ 'CZ' => '捷克',
+ 'DE' => '德国',
+ 'DJ' => '吉布提',
+ 'DM' => '多米尼克',
+ 'DK' => '丹麦',
+ 'DO' => '多明尼加共和国',
+ 'DZ' => '阿尔及利亚',
+ 'EC' => '厄瓜多尔',
+ 'EG' => '埃及',
+ 'ER' => '厄立特里亚',
+ 'ES' => '西班牙',
+ 'EE' => '爱沙尼亚',
+ 'ET' => '埃塞俄比亚',
+ 'FI' => '芬兰',
+ 'FJ' => '斐济',
+ 'FR' => '法国',
+ 'FM' => '密克罗尼西亚',
+ 'GA' => '加蓬',
+ 'GB' => '英国',
+ 'GE' => '格鲁吉亚',
+ 'GH' => '加纳',
+ 'GN' => '几内亚',
+ 'GM' => '冈比亚',
+ 'GW' => '几内亚比绍',
+ 'GQ' => '赤道几内亚',
+ 'GR' => '希腊',
+ 'GD' => '格林纳达',
+ 'GT' => '危地马拉',
+ 'GY' => '圭亚那',
+ 'HN' => '洪都拉斯',
+ 'HR' => '克罗地亚',
+ 'HT' => '海地',
+ 'HU' => '匈牙利',
+ 'ID' => '印度尼西亚',
+ 'IN' => '印度',
+ 'IE' => '爱尔兰',
+ 'IR' => '伊朗',
+ 'IQ' => '伊拉克',
+ 'IS' => '冰岛',
+ 'IL' => '以色列',
+ 'IT' => '意大利',
+ 'JM' => '牙买加',
+ 'JO' => '约旦',
+ 'JP' => '日本',
+ 'KZ' => '哈萨克斯坦',
+ 'KE' => '肯尼亚',
+ 'KG' => '吉尔吉斯斯坦',
+ 'KH' => '柬埔寨',
+ 'KI' => '基里巴斯',
+ 'KN' => '圣基茨和尼维斯',
+ 'KR' => '韩国',
+ 'KW' => '科威特',
+ 'LA' => '老挝',
+ 'LB' => '黎巴嫩',
+ 'LR' => '利比里亚',
+ 'LY' => '利比亚',
+ 'LC' => '圣卢西亚',
+ 'LI' => '列支敦士登',
+ 'LK' => '斯里兰卡',
+ 'LS' => '莱索托',
+ 'LT' => '立陶宛',
+ 'LU' => '卢森堡',
+ 'LV' => '拉脱维亚',
+ 'MA' => '摩洛哥',
+ 'MC' => '摩纳哥',
+ 'MD' => '摩尔多瓦',
+ 'MG' => '马达加斯加',
+ 'MV' => '马尔代夫',
+ 'MX' => '墨西哥',
+ 'MH' => '马绍尔群岛',
+ 'MK' => '马其顿共和国',
+ 'ML' => '马里',
+ 'MT' => '马耳他',
+ 'MM' => '缅甸',
+ 'ME' => '黑山',
+ 'MN' => '蒙古',
+ 'MZ' => '莫桑比克',
+ 'MR' => '毛里塔尼亚',
+ 'MU' => '毛里求斯',
+ 'MW' => '马拉维',
+ 'MY' => '马来西亚',
+ 'NA' => '纳米比亚',
+ 'NE' => '尼日尔',
+ 'NG' => '尼日利亚',
+ 'NI' => '尼加拉瓜',
+ 'NL' => '荷兰',
+ 'NO' => '挪威',
+ 'NP' => '尼泊尔',
+ 'NR' => '瑙鲁',
+ 'NZ' => '新西兰',
+ 'OM' => '阿曼',
+ 'PK' => '巴基斯坦',
+ 'PA' => '巴拿马',
+ 'PE' => '秘鲁',
+ 'PH' => '菲律宾',
+ 'PW' => '帕劳',
+ 'PG' => '巴布亚新几内亚',
+ 'PL' => '波兰',
+ 'KP' => '北朝鲜',
+ 'PT' => '葡萄牙',
+ 'PY' => '巴拉圭',
+ 'QA' => '卡塔尔',
+ 'RO' => '罗马尼亚',
+ 'RU' => '俄罗斯',
+ 'RW' => '卢旺达',
+ 'SA' => '沙特阿拉伯',
+ 'SD' => '苏丹',
+ 'SN' => '塞内加尔',
+ 'SG' => '新加坡',
+ 'SB' => '所罗门群岛',
+ 'SL' => '塞拉利昂',
+ 'SV' => '萨尔瓦多',
+ 'SM' => '圣马力诺',
+ 'SO' => '索马里',
+ 'RS' => '塞尔维亚',
+ 'SS' => '南苏丹',
+ 'ST' => '圣多美和普林西比',
+ 'SR' => '苏里南',
+ 'SK' => '斯洛伐克',
+ 'SI' => '斯洛文尼亚',
+ 'SE' => '瑞典',
+ 'SZ' => '斯威士兰',
+ 'SC' => '塞舌尔',
+ 'SY' => '叙利亚',
+ 'TD' => '乍得',
+ 'TG' => '多哥',
+ 'TH' => '泰国',
+ 'TJ' => '塔吉克斯坦',
+ 'TM' => '土库曼斯坦',
+ 'TL' => '东帝汶',
+ 'TO' => '汤加',
+ 'TT' => '特立尼达和多巴哥',
+ 'TN' => '突尼斯',
+ 'TR' => '土耳其',
+ 'TV' => '图瓦卢',
+ 'TZ' => '坦桑尼亚',
+ 'UG' => '乌干达',
+ 'UA' => '乌克兰',
+ 'UY' => '乌拉圭',
+ 'US' => '美国',
+ 'UZ' => '乌兹别克斯',
+ 'VA' => '梵蒂冈',
+ 'VC' => '圣文森特和格林纳丁斯',
+ 'VE' => '委内瑞拉',
+ 'VN' => '越南',
+ 'VU' => '瓦努阿图',
+ 'WS' => '萨摩亚',
+ 'YE' => '也门',
+ 'ZA' => '南非',
+ 'ZM' => '赞比亚',
+ 'ZW' => '津巴布韦',
+];
diff --git a/app/config/locale/zh-cn.php b/app/config/locale/zh-cn.php
new file mode 100644
index 0000000000..5f56d10df3
--- /dev/null
+++ b/app/config/locale/zh-cn.php
@@ -0,0 +1,21 @@
+ '"懂得取舍,方显睿智。"', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'zh',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s 小组',
+ 'auth.emails.confirm.title' => '账户确认',
+ 'auth.emails.confirm.body' => 'zh.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => '重设密码',
+ 'auth.emails.recovery.body' => 'zh.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => '邀请加入%s小组(%s)', // I used brackets to keep the order
+ 'auth.emails.invitation.body' => 'zh.email.auth.invitation.tpl',
+
+ 'locale.country.unknown' => '未知',
+
+ 'countries' => include 'zh-cn.countries.php',
+ 'continents' => include 'zh-cn.continents.php',
+];
diff --git a/app/config/locale/zh-tw.continents.php b/app/config/locale/zh-tw.continents.php
new file mode 100644
index 0000000000..e2a47e4855
--- /dev/null
+++ b/app/config/locale/zh-tw.continents.php
@@ -0,0 +1,11 @@
+ '非洲',
+ 'AN' => '南極洲',
+ 'AS' => '亞洲',
+ 'EU' => '歐洲',
+ 'NA' => '北美洲',
+ 'OC' => '大洋洲',
+ 'SA' => '南美洲',
+];
diff --git a/app/config/locale/zh-tw.countries.php b/app/config/locale/zh-tw.countries.php
new file mode 100644
index 0000000000..348e8b8bf9
--- /dev/null
+++ b/app/config/locale/zh-tw.countries.php
@@ -0,0 +1,198 @@
+ '阿富汗',
+ 'AO' => '安哥拉',
+ 'AL' => '阿爾巴尼亞',
+ 'AD' => '安道爾',
+ 'AE' => '阿拉伯聯合酋長國',
+ 'AR' => '阿根廷',
+ 'AM' => '亞美尼亞',
+ 'AG' => '安提瓜和巴布達',
+ 'AU' => '澳大利亞',
+ 'AT' => '奧地利',
+ 'AZ' => '阿塞拜疆',
+ 'BI' => '布隆迪',
+ 'BE' => '比利時',
+ 'BJ' => '貝甯',
+ 'BF' => '布基納法索',
+ 'BD' => '孟加拉國',
+ 'BG' => '保加利亞',
+ 'BH' => '巴林',
+ 'BS' => '巴哈馬',
+ 'BA' => '波黑',
+ 'BY' => '白羅斯',
+ 'BZ' => '伯利茲',
+ 'BO' => '玻利維亞',
+ 'BR' => '巴西',
+ 'BB' => '巴巴多斯',
+ 'BN' => '文萊',
+ 'BT' => '不丹',
+ 'BW' => '博茨瓦納',
+ 'CF' => '中非共和國',
+ 'CA' => '加拿大',
+ 'CH' => '瑞士',
+ 'CL' => '智利',
+ 'CN' => '中國',
+ 'CI' => '象牙海岸',
+ 'CM' => '喀麥隆',
+ 'CD' => '剛果民主共和國',
+ 'CG' => '剛果共和國',
+ 'CO' => '哥倫比亞',
+ 'KM' => '科摩',
+ 'CV' => '佛得角',
+ 'CR' => '哥斯達黎加',
+ 'CU' => '古巴',
+ 'CY' => '塞浦路斯',
+ 'CZ' => '捷克',
+ 'DE' => '德國',
+ 'DJ' => '吉布提',
+ 'DM' => '多米尼克',
+ 'DK' => '丹麥',
+ 'DO' => '多明尼加共和國',
+ 'DZ' => '阿爾及利亞',
+ 'EC' => '厄瓜多爾',
+ 'EG' => '埃及',
+ 'ER' => '厄立特裏亞',
+ 'ES' => '西班牙',
+ 'EE' => '愛沙尼亞',
+ 'ET' => '埃塞俄比亞',
+ 'FI' => '芬蘭',
+ 'FJ' => '斐濟',
+ 'FR' => '法國',
+ 'FM' => '密克羅尼西亞',
+ 'GA' => '加蓬',
+ 'GB' => '英國',
+ 'GE' => '格魯吉亞',
+ 'GH' => '加納',
+ 'GN' => '幾內亞',
+ 'GM' => '岡比亞',
+ 'GW' => '幾內亞比紹',
+ 'GQ' => '赤道幾內亞',
+ 'GR' => '希臘',
+ 'GD' => '格林納達',
+ 'GT' => '危地馬拉',
+ 'GY' => '圭亞那',
+ 'HN' => '洪都拉斯',
+ 'HR' => '克羅地亞',
+ 'HT' => '海地',
+ 'HU' => '匈牙利',
+ 'ID' => '印度尼西亞',
+ 'IN' => '印度',
+ 'IE' => '愛爾蘭',
+ 'IR' => '伊朗',
+ 'IQ' => '伊拉克',
+ 'IS' => '冰島',
+ 'IL' => '以色列',
+ 'IT' => '意大利',
+ 'JM' => '牙買加',
+ 'JO' => '約旦',
+ 'JP' => '日本',
+ 'KZ' => '哈薩克斯坦',
+ 'KE' => '肯尼亞',
+ 'KG' => '吉爾吉斯斯坦',
+ 'KH' => '柬埔寨',
+ 'KI' => '基裏巴斯',
+ 'KN' => '聖基茨和尼維斯',
+ 'KR' => '韓國',
+ 'KW' => '科威特',
+ 'LA' => '老撾',
+ 'LB' => '黎巴嫩',
+ 'LR' => '利比裏亞',
+ 'LY' => '利比亞',
+ 'LC' => '聖盧西亞',
+ 'LI' => '列支敦士登',
+ 'LK' => '斯裏蘭卡',
+ 'LS' => '萊索托',
+ 'LT' => '立陶宛',
+ 'LU' => '盧森堡',
+ 'LV' => '拉脫維亞',
+ 'MA' => '摩洛哥',
+ 'MC' => '摩納哥',
+ 'MD' => '摩爾多瓦',
+ 'MG' => '馬達加斯加',
+ 'MV' => '馬爾代夫',
+ 'MX' => '墨西哥',
+ 'MH' => '馬紹爾群島',
+ 'MK' => '馬其頓共和國',
+ 'ML' => '馬裏',
+ 'MT' => '馬耳他',
+ 'MM' => '緬甸',
+ 'ME' => '黑山',
+ 'MN' => '蒙古',
+ 'MZ' => '莫桑比克',
+ 'MR' => '毛裏塔尼亞',
+ 'MU' => '毛裏求斯',
+ 'MW' => '馬拉維',
+ 'MY' => '馬來西亞',
+ 'NA' => '納米比亞',
+ 'NE' => '尼日爾',
+ 'NG' => '尼日利亞',
+ 'NI' => '尼加拉瓜',
+ 'NL' => '荷蘭',
+ 'NO' => '挪威',
+ 'NP' => '尼泊爾',
+ 'NR' => '瑙魯',
+ 'NZ' => '新西蘭',
+ 'OM' => '阿曼',
+ 'PK' => '巴基斯坦',
+ 'PA' => '巴拿馬',
+ 'PE' => '秘魯',
+ 'PH' => '菲律賓',
+ 'PW' => '帕勞',
+ 'PG' => '巴布亞新幾內亞',
+ 'PL' => '波蘭',
+ 'KP' => '北朝鮮',
+ 'PT' => '葡萄牙',
+ 'PY' => '巴拉圭',
+ 'QA' => '卡塔爾',
+ 'RO' => '羅馬尼亞',
+ 'RU' => '俄羅斯',
+ 'RW' => '盧旺達',
+ 'SA' => '沙特阿拉伯',
+ 'SD' => '蘇丹',
+ 'SN' => '塞內加爾',
+ 'SG' => '新加坡',
+ 'SB' => '所羅門群島',
+ 'SL' => '塞拉利昂',
+ 'SV' => '薩爾瓦多',
+ 'SM' => '聖馬力諾',
+ 'SO' => '索馬裏',
+ 'RS' => '塞爾維亞',
+ 'SS' => '南蘇丹',
+ 'ST' => '聖多美和普林西比',
+ 'SR' => '蘇裏南',
+ 'SK' => '斯洛伐克',
+ 'SI' => '斯洛文尼亞',
+ 'SE' => '瑞典',
+ 'SZ' => '斯威士蘭',
+ 'SC' => '塞舌爾',
+ 'SY' => '敘利亞',
+ 'TD' => '乍得',
+ 'TG' => '多哥',
+ 'TH' => '泰國',
+ 'TJ' => '塔吉克斯坦',
+ 'TM' => '土庫曼斯坦',
+ 'TL' => '東帝汶',
+ 'TO' => '湯加',
+ 'TT' => '特立尼達和多巴哥',
+ 'TN' => '突尼斯',
+ 'TR' => '土耳其',
+ 'TV' => '圖瓦盧',
+ 'TZ' => '坦桑尼亞',
+ 'UG' => '烏幹達',
+ 'UA' => '烏克蘭',
+ 'UY' => '烏拉圭',
+ 'US' => '美國',
+ 'UZ' => '烏茲別克斯',
+ 'VA' => '梵蒂岡',
+ 'VC' => '聖文森特和格林納丁斯',
+ 'VE' => '委內瑞拉',
+ 'VN' => '越南',
+ 'VU' => '瓦努阿圖',
+ 'WS' => '薩摩亞',
+ 'YE' => '也門',
+ 'ZA' => '南非',
+ 'ZM' => '贊比亞',
+ 'ZW' => '津巴布韋',
+];
\ No newline at end of file
diff --git a/app/config/locale/zh-tw.php b/app/config/locale/zh-tw.php
new file mode 100644
index 0000000000..6d4d83d461
--- /dev/null
+++ b/app/config/locale/zh-tw.php
@@ -0,0 +1,19 @@
+ '"懂得取舍,方顯睿智。"', // This is the line printed in the homepage and console 'view-source'
+ 'settings.locale' => 'zh-tw',
+ 'settings.direction' => 'ltr',
+
+ // Service - Users
+ 'auth.emails.team' => '%s 小組',
+ 'auth.emails.confirm.title' => '賬戶確認',
+ 'auth.emails.confirm.body' => 'zh-tw.email.auth.confirm.tpl',
+ 'auth.emails.recovery.title' => '重設密碼',
+ 'auth.emails.recovery.body' => 'zh.email.auth.recovery.tpl',
+ 'auth.emails.invitation.title' => '邀請加入%s小組(%s)',
+ 'auth.emails.invitation.body' => 'zh-tw.email.auth.invitation.tpl',
+ 'locale.country.unknown' => '未知',
+ 'countries' => include 'zh-tw.countries.php',
+ 'continents' => include 'zh-tw.continents.php',
+];
\ No newline at end of file
diff --git a/app/config/providers.php b/app/config/providers.php
index 01b7b6b429..140dbeaf6f 100644
--- a/app/config/providers.php
+++ b/app/config/providers.php
@@ -34,7 +34,7 @@ return [
'microsoft' => [
'developers' => 'https://developer.microsoft.com/en-us/',
'icon' => 'icon-windows',
- 'enabled' => false,
+ 'enabled' => true,
],
'twitter' => [
'developers' => 'https://developer.twitter.com/',
@@ -46,4 +46,29 @@ return [
'icon' => 'icon-linkedin',
'enabled' => true,
],
+ 'slack' => [
+ 'developers' => 'https://api.slack.com/',
+ 'icon' => 'icon-slack',
+ 'enabled' => true,
+ ],
+ 'dropbox' => [
+ 'developers' => 'https://www.dropbox.com/developers/documentation',
+ 'icon' => 'icon-dropbox',
+ 'enabled' => true,
+ ],
+ 'apple' => [
+ 'developers' => 'https://developer.apple.com/',
+ 'icon' => 'icon-apple',
+ 'enabled' => false,
+ ],
+ 'amazon' => [
+ 'developers' => 'https://developer.amazon.com/apps-and-games/services-and-apis',
+ 'icon' => 'icon-amazon',
+ 'enabled' => true,
+ ],
+ 'vk' => [
+ 'developers' => 'https://vk.com/dev',
+ 'icon' => 'icon-vk',
+ 'enabled' => true,
+ ],
];
diff --git a/app/controllers/account.php b/app/controllers/account.php
index cb95a0f3e1..1809ade66b 100644
--- a/app/controllers/account.php
+++ b/app/controllers/account.php
@@ -202,9 +202,7 @@ $utopia->patch('/v1/account/name')
->label('sdk.namespace', 'account')
->label('sdk.method', 'updateName')
->label('sdk.description', 'Update currently logged in user account name.')
- ->param('name', '', function () {
- return new Text(100);
- }, 'User name')
+ ->param('name', '', function () { return new Text(100); }, 'User name')
->action(
function ($name) use ($response, $user, $projectDB, $audit) {
$user = $projectDB->updateDocument(array_merge($user->getArrayCopy(), [
@@ -228,12 +226,8 @@ $utopia->patch('/v1/account/password')
->label('sdk.namespace', 'account')
->label('sdk.method', 'updatePassword')
->label('sdk.description', 'Update currently logged in user password. For validation, user is required to pass the password twice.')
- ->param('password', '', function () {
- return new Password();
- }, 'New password')
- ->param('old-password', '', function () {
- return new Password();
- }, 'Old password')
+ ->param('password', '', function () { return new Password(); }, 'New password')
+ ->param('old-password', '', function () { return new Password(); }, 'Old password')
->action(
function ($password, $oldPassword) use ($response, $user, $projectDB, $audit) {
if (!Auth::passwordVerify($oldPassword, $user->getAttribute('password'))) { // Double check user password
@@ -261,12 +255,8 @@ $utopia->patch('/v1/account/email')
->label('sdk.namespace', 'account')
->label('sdk.method', 'updateEmail')
->label('sdk.description', 'Update currently logged in user account email address. After changing user address, user confirmation status is being reset and a new confirmation mail is sent. For security measures, user password is required to complete this request.')
- ->param('email', '', function () {
- return new Email();
- }, 'Email Address')
- ->param('password', '', function () {
- return new Password();
- }, 'User Password')
+ ->param('email', '', function () { return new Email(); }, 'Email Address')
+ ->param('password', '', function () { return new Password(); }, 'User Password')
->action(
function ($email, $password) use ($response, $user, $projectDB, $audit) {
if (!Auth::passwordVerify($password, $user->getAttribute('password'))) { // Double check user password
@@ -308,9 +298,7 @@ $utopia->patch('/v1/account/prefs')
->label('scope', 'account')
->label('sdk.namespace', 'account')
->label('sdk.method', 'updatePrefs')
- ->param('prefs', '', function () {
- return new \Utopia\Validator\Mock();
- }, 'Prefs key-value JSON object string.')
+ ->param('prefs', '', function () { return new \Utopia\Validator\Mock();}, 'Prefs key-value JSON object string.')
->label('sdk.description', 'Update currently logged in user account preferences. You can pass only the specific settings you wish to update.')
->action(
function ($prefs) use ($response, $user, $projectDB, $audit) {
diff --git a/app/controllers/auth.php b/app/controllers/auth.php
index 5d07bef47f..1d0e260c9c 100644
--- a/app/controllers/auth.php
+++ b/app/controllers/auth.php
@@ -24,27 +24,15 @@ $utopia->post('/v1/auth/register')
->label('scope', 'auth')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'register')
- ->label('sdk.description', "Use this endpoint to allow a new user to register an account in your project. Use the success and failure URL's to redirect users back to your application after signup completes.\n\nIf registration completes successfully user will be sent with a confirmation email in order to confirm he is the owner of the account email address. Use the confirmation parameter to redirect the user from the confirmation email back to your app. When the user is redirected, use the /auth/confirm endpoint to complete the account confirmation.\n\nPlease notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.\n\nWhen accessing this route using Javascript from the browser, success and failure parameter URLs are required. Appwrite server will respond with a 301 redirect status code and will set the user session cookie. This behavior is enforced because modern browsers are limiting 3rd party cookies in XHR of fetch requests to protect user privacy.")
+ ->label('sdk.description', '/docs/refernces/register.md')
->label('sdk.cookies', true)
->label('abuse-limit', 10)
- ->param('email', '', function () {
- return new Email();
- }, 'Account email')
- ->param('password', '', function () {
- return new Password();
- }, 'User password')
- ->param('confirm', '', function () use ($clients) {
- return new Host($clients);
- }, 'Confirmation URL to redirect user after confirm token has been sent to user email') // TODO add our own built-in confirm page
- ->param('success', null, function () use ($clients) {
- return new Host($clients);
- }, 'Redirect when registration succeed', true)
- ->param('failure', null, function () use ($clients) {
- return new Host($clients);
- }, 'Redirect when registration failed', true)
- ->param('name', '', function () {
- return new Text(100);
- }, 'User name', true)
+ ->param('email', '', function () { return new Email(); }, 'Account email')
+ ->param('password', '', function () { return new Password(); }, 'User password')
+ ->param('confirm', '', function () use ($clients) { return new Host($clients); }, 'Confirmation URL to redirect user after confirm token has been sent to user email') // TODO add our own built-in confirm page
+ ->param('success', null, function () use ($clients) { return new Host($clients); }, 'Redirect when registration succeed', true)
+ ->param('failure', null, function () use ($clients) { return new Host($clients); }, 'Redirect when registration failed', true)
+ ->param('name', '', function () { return new Text(100); }, 'User name', true)
->action(
function ($email, $password, $confirm, $success, $failure, $name) use ($request, $response, $register, $audit, $projectDB, $project, $webhook) {
if ('console' === $project->getUid()) {
@@ -202,15 +190,11 @@ $utopia->post('/v1/auth/register/confirm')
->label('scope', 'public')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'confirm')
- ->label('sdk.description', 'Use this endpoint to complete the confirmation of the user account email address. Both the **userId** and **token** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the /auth/register endpoint.')
+ ->label('sdk.description', '/docs/refernces/confirm.md')
->label('abuse-limit', 10)
->label('abuse-key', 'url:{url},userId:{param-userId}')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID')
- ->param('token', '', function () {
- return new Text(256);
- }, 'Confirmation secret token')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID')
+ ->param('token', '', function () { return new Text(256); }, 'Confirmation secret token')
->action(
function ($userId, $token) use ($response, $request, $projectDB, $audit) {
$profile = $projectDB->getCollection([ // Get user by email address
@@ -256,12 +240,10 @@ $utopia->post('/v1/auth/register/confirm/resend')
->label('scope', 'account')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'confirmResend')
- ->label('sdk.description', "This endpoint allows the user to request your app to resend him his email confirmation message. The redirect arguments acts the same way as in /auth/register endpoint.\n\nPlease notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.")
+ ->label('sdk.description', '/docs/refernces/confirm-resend.md')
->label('abuse-limit', 10)
->label('abuse-key', 'url:{url},userId:{param-userId}')
- ->param('confirm', '', function () use ($clients) {
- return new Host($clients);
- }, 'Confirmation URL to redirect user to your app after confirm token has been sent to user email.')
+ ->param('confirm', '', function () use ($clients) { return new Host($clients); }, 'Confirmation URL to redirect user to your app after confirm token has been sent to user email.')
->action(
function ($confirm) use ($response, $request, $projectDB, $user, $register, $project) {
if ($user->getAttribute('confirm', false)) {
@@ -322,22 +304,14 @@ $utopia->post('/v1/auth/login')
->label('scope', 'auth')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'login')
- ->label('sdk.description', "Allow the user to login into his account by providing a valid email and password combination. Use the success and failure arguments to provide a redirect URL\'s back to your app when login is completed. \n\nPlease notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.\n\nWhen accessing this route using Javascript from the browser, success and failure parameter URLs are required. Appwrite server will respond with a 301 redirect status code and will set the user session cookie. This behavior is enforced because modern browsers are limiting 3rd party cookies in XHR of fetch requests to protect user privacy.")
+ ->label('sdk.description', '/docs/refernces/login.md')
->label('sdk.cookies', true)
->label('abuse-limit', 10)
->label('abuse-key', 'url:{url},email:{param-email}')
- ->param('email', '', function () {
- return new Email();
- }, 'User account email address')
- ->param('password', '', function () {
- return new Password();
- }, 'User account password')
- ->param('success', null, function () use ($clients) {
- return new Host($clients);
- }, 'URL to redirect back to your app after a successful login attempt.')
- ->param('failure', null, function () use ($clients) {
- return new Host($clients);
- }, 'URL to redirect back to your app after a failed login attempt.')
+ ->param('email', '', function () { return new Email(); }, 'User account email address')
+ ->param('password', '', function () { return new Password(); }, 'User account password')
+ ->param('success', null, function () use ($clients) { return new Host($clients); }, 'URL to redirect back to your app after a successful login attempt.')
+ ->param('failure', null, function () use ($clients) { return new Host($clients); }, 'URL to redirect back to your app after a failed login attempt.')
->action(
function ($email, $password, $success, $failure) use ($response, $request, $projectDB, $audit, $webhook) {
$profile = $projectDB->getCollection([ // Get user by email address
@@ -415,7 +389,7 @@ $utopia->delete('/v1/auth/logout')
->label('scope', 'account')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'logout')
- ->label('sdk.description', 'Use this endpoint to log out the currently logged in user from his account. When succeed this endpoint will delete the user session and remove the session secret cookie from the user client.')
+ ->label('sdk.description', '/docs/refernces/logout.md')
->label('abuse-limit', 100)
->action(
function () use ($response, $request, $user, $projectDB, $audit, $webhook) {
@@ -446,11 +420,9 @@ $utopia->delete('/v1/auth/logout/:id')
->label('scope', 'account')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'logoutBySession')
- ->label('sdk.description', 'Use this endpoint to log out the currently logged in user from all his account sessions across all his different devices. When using the option id argument, only the session unique ID provider will be deleted.')
+ ->label('sdk.description', '/docs/refernces/logout-by-session.md')
->label('abuse-limit', 100)
- ->param('id', null, function () {
- return new UID();
- }, 'User specific session unique ID number. if 0 delete all sessions.')
+ ->param('id', null, function () { return new UID(); }, 'User specific session unique ID number. if 0 delete all sessions.')
->action(
function ($id) use ($response, $request, $user, $projectDB, $audit) {
$tokens = $user->getAttribute('tokens', []);
@@ -481,15 +453,11 @@ $utopia->post('/v1/auth/recovery')
->label('scope', 'auth')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'recovery')
- ->label('sdk.description', 'Sends the user an email with a temporary secret token for password reset. When the user clicks the confirmation link he is redirected back to your app password reset redirect URL with a secret token and email address values attached to the URL query string. Use the query string params to submit a request to the /auth/password/reset endpoint to complete the process.')
+ ->label('sdk.description', '/docs/refernces/recovery.md')
->label('abuse-limit', 10)
->label('abuse-key', 'url:{url},email:{param-email}')
- ->param('email', '', function () {
- return new Email();
- }, 'User account email address.')
- ->param('reset', '', function () use ($clients) {
- return new Host($clients);
- }, 'Reset URL in your app to redirect the user after the reset token has been sent to the user email.')
+ ->param('email', '', function () { return new Email(); }, 'User account email address.')
+ ->param('reset', '', function () use ($clients) { return new Host($clients); }, 'Reset URL in your app to redirect the user after the reset token has been sent to the user email.')
->action(
function ($email, $reset) use ($request, $response, $projectDB, $register, $audit, $project) {
$profile = $projectDB->getCollection([ // Get user by email address
@@ -565,21 +533,13 @@ $utopia->put('/v1/auth/recovery/reset')
->label('scope', 'auth')
->label('sdk.namespace', 'auth')
->label('sdk.method', 'recoveryReset')
- ->label('sdk.description', "Use this endpoint to complete the user account password reset. Both the **userId** and **token** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the /auth/recovery endpoint.\n\nPlease notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.")
+ ->label('sdk.description', '/docs/refernces/recovery-reset.md')
->label('abuse-limit', 10)
->label('abuse-key', 'url:{url},userId:{param-userId}')
- ->param('userId', '', function () {
- return new UID();
- }, 'User account email address.')
- ->param('token', '', function () {
- return new Text(256);
- }, 'Valid reset token.')
- ->param('password-a', '', function () {
- return new Password();
- }, 'New password.')
- ->param('password-b', '', function () {
- return new Password();
- }, 'New password again.')
+ ->param('userId', '', function () { return new UID(); }, 'User account email address.')
+ ->param('token', '', function () { return new Text(256); }, 'Valid reset token.')
+ ->param('password-a', '', function () { return new Password(); }, 'New password.')
+ ->param('password-b', '', function () {return new Password(); }, 'New password again.')
->action(
function ($userId, $token, $passwordA, $passwordB) use ($response, $projectDB, $audit) {
if ($passwordA !== $passwordB) {
@@ -639,15 +599,9 @@ $utopia->get('/v1/auth/oauth/:provider')
->label('sdk.location', true)
->label('abuse-limit', 50)
->label('abuse-key', 'ip:{ip}')
- ->param('provider', '', function () use ($providers) {
- return new WhiteList(array_keys($providers));
- }, 'OAuth Provider')
- ->param('success', '', function () use ($clients) {
- return new Host($clients);
- }, 'URL to redirect back to your app after a successful login attempt.', true)
- ->param('failure', '', function () use ($clients) {
- return new Host($clients);
- }, 'URL to redirect back to your app after a failed login attempt.', true)
+ ->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth Provider')
+ ->param('success', '', function () use ($clients) { return new Host($clients); }, 'URL to redirect back to your app after a successful login attempt.', true)
+ ->param('failure', '', function () use ($clients) { return new Host($clients); }, 'URL to redirect back to your app after a failed login attempt.', true)
->action(
function ($provider, $success, $failure) use ($response, $request, $project) {
$callback = $request->getServer('REQUEST_SCHEME', 'https').'://'.$request->getServer('HTTP_HOST').'/v1/auth/oauth/callback/'.$provider.'/'.$project->getUid();
@@ -681,23 +635,13 @@ $utopia->get('/v1/auth/oauth/callback/:provider/:projectId')
->desc('OAuth Callback')
->label('error', __DIR__.'/../views/general/error.phtml')
->label('scope', 'auth')
- //->label('sdk.namespace', 'auth')
- //->label('sdk.method', 'oauthCallback')
->label('abuse-limit', 50)
->label('abuse-key', 'ip:{ip}')
->label('docs', false)
- ->param('projectId', '', function () {
- return new Text(1024);
- }, 'Project unique ID')
- ->param('provider', '', function () use ($providers) {
- return new WhiteList(array_keys($providers));
- }, 'OAuth provider')
- ->param('code', '', function () {
- return new Text(1024);
- }, 'OAuth code')
- ->param('state', '', function () {
- return new Text(2048);
- }, 'Login state params', true)
+ ->param('projectId', '', function () { return new Text(1024); }, 'Project unique ID')
+ ->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth provider')
+ ->param('code', '', function () { return new Text(1024); }, 'OAuth code')
+ ->param('state', '', function () { return new Text(2048); }, 'Login state params', true)
->action(
function ($projectId, $provider, $code, $state) use ($response, $request, $domain) {
$response->redirect($request->getServer('REQUEST_SCHEME', 'https').'://'.$domain.'/v1/auth/oauth/'.$provider.'/redirect?'
@@ -710,43 +654,20 @@ $utopia->get('/v1/auth/oauth/:provider/redirect')
->label('error', __DIR__.'/../views/general/error.phtml')
->label('webhook', 'auth.oauth')
->label('scope', 'auth')
- //->label('sdk.namespace', 'auth')
- //->label('sdk.method', 'oauthRedirect')
->label('abuse-limit', 50)
->label('abuse-key', 'ip:{ip}')
->label('docs', false)
- ->param('provider', '', function () use ($providers) {
- return new WhiteList(array_keys($providers));
- }, 'OAuth provider')
- ->param('code', '', function () {
- return new Text(1024);
- }, 'OAuth code')
- ->param('state', '', function () {
- return new Text(2048);
- }, 'OAuth state params', true)
+ ->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth provider')
+ ->param('code', '', function () { return new Text(1024); }, 'OAuth code')
+ ->param('state', '', function () { return new Text(2048); }, 'OAuth state params', true)
->action(
function ($provider, $code, $state) use ($response, $request, $user, $projectDB, $project, $audit) {
$callback = $request->getServer('REQUEST_SCHEME', 'https').'://'.$request->getServer('HTTP_HOST').'/v1/auth/oauth/callback/'.$provider.'/'.$project->getUid();
$defaultState = ['success' => $project->getAttribute('url', ''), 'failure' => ''];
$validateURL = new URL();
- if (!empty($state)) {
- try {
- $state = array_merge($defaultState, json_decode($state, true));
- } catch (\Exception $exception) {
- throw new Exception('Failed to parse login state params as passed from OAuth provider');
- }
- } else {
- $state = $defaultState;
- }
-
- if (!$validateURL->isValid($state['success'])) {
- throw new Exception('Invalid redirect URL for success login', 400);
- }
-
- if (!empty($state['failure']) && !$validateURL->isValid($state['failure'])) {
- throw new Exception('Invalid redirect URL for failure login', 400);
- }
+ // Uncomment this while testing amazon oAuth
+ // $state = html_entity_decode($state);
$appId = $project->getAttribute('usersOauth'.ucfirst($provider).'Appid', '');
$appSecret = $project->getAttribute('usersOauth'.ucfirst($provider).'Secret', '{}');
@@ -766,6 +687,24 @@ $utopia->get('/v1/auth/oauth/:provider/redirect')
$oauth = new $classname($appId, $appSecret, $callback);
+ if (!empty($state)) {
+ try {
+ $state = array_merge($defaultState, $oauth->parseState($state));
+ } catch (\Exception $exception) {
+ throw new Exception('Failed to parse login state params as passed from OAuth provider');
+ }
+ } else {
+ $state = $defaultState;
+ }
+
+ if (!$validateURL->isValid($state['success'])) {
+ throw new Exception('Invalid redirect URL for success login', 400);
+ }
+
+ if (!empty($state['failure']) && !$validateURL->isValid($state['failure'])) {
+ throw new Exception('Invalid redirect URL for failure login', 400);
+ }
+
$accessToken = $oauth->getAccessToken($code);
if (empty($accessToken)) {
diff --git a/app/controllers/avatars.php b/app/controllers/avatars.php
index 77580a59b4..0f42264490 100644
--- a/app/controllers/avatars.php
+++ b/app/controllers/avatars.php
@@ -87,81 +87,48 @@ $avatarCallback = function ($type, $code, $width, $height, $quality) use ($types
$utopia->get('/v1/avatars/credit-cards/:code')
->desc('Get Credit Card Icon')
- ->param('code', '', function () use ($types) {
- return new WhiteList(array_keys($types['credit-cards']));
- }, 'Credit Card Code. Possible values: '.implode(', ', array_keys($types['credit-cards'])).'.')
- ->param('width', 100, function () {
- return new Range(0, 2000);
- }, 'Image width. Pass an integer between 0 to 2000. Defaults to 100', true)
- ->param('height', 100, function () {
- return new Range(0, 2000);
- }, 'Image height. Pass an integer between 0 to 2000. Defaults to 100', true)
- ->param('quality', 100, function () {
- return new Range(0, 100);
- }, 'Image quality. Pass an integer between 0 to 100. Defaults to 100', true)
+ ->param('code', '', function () use ($types) { return new WhiteList(array_keys($types['credit-cards'])); }, 'Credit Card Code. Possible values: '.implode(', ', array_keys($types['credit-cards'])).'.')
+ ->param('width', 100, function () { return new Range(0, 2000); }, 'Image width. Pass an integer between 0 to 2000. Defaults to 100', true)
+ ->param('height', 100, function () { return new Range(0, 2000); }, 'Image height. Pass an integer between 0 to 2000. Defaults to 100', true)
+ ->param('quality', 100, function () { return new Range(0, 100); }, 'Image quality. Pass an integer between 0 to 100. Defaults to 100', true)
->label('scope', 'avatars.read')
->label('sdk.namespace', 'avatars')
->label('sdk.method', 'getCreditCard')
->label('sdk.description', 'Need to display your users with your billing method or there payment methods? The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.')
- ->action(function ($code, $width, $height, $quality) use ($avatarCallback) {
- return $avatarCallback('credit-cards', $code, $width, $height, $quality);
+ ->action(function ($code, $width, $height, $quality) use ($avatarCallback) { return $avatarCallback('credit-cards', $code, $width, $height, $quality);
});
$utopia->get('/v1/avatars/browsers/:code')
->desc('Get Browser Icon')
- ->param('code', '', function () use ($types) {
- return new WhiteList(array_keys($types['browsers']));
- }, 'Browser Code.')
- ->param('width', 100, function () {
- return new Range(0, 2000);
- }, 'Image width. Pass an integer between 0 to 2000. Defaults to 100', true)
- ->param('height', 100, function () {
- return new Range(0, 2000);
- }, 'Image height. Pass an integer between 0 to 2000. Defaults to 100', true)
- ->param('quality', 100, function () {
- return new Range(0, 100);
- }, 'Image quality. Pass an integer between 0 to 100. Defaults to 100', true)
+ ->param('code', '', function () use ($types) { return new WhiteList(array_keys($types['browsers'])); }, 'Browser Code.')
+ ->param('width', 100, function () { return new Range(0, 2000); }, 'Image width. Pass an integer between 0 to 2000. Defaults to 100', true)
+ ->param('height', 100, function () { return new Range(0, 2000); }, 'Image height. Pass an integer between 0 to 2000. Defaults to 100', true)
+ ->param('quality', 100, function () { return new Range(0, 100); }, 'Image quality. Pass an integer between 0 to 100. Defaults to 100', true)
->label('scope', 'avatars.read')
->label('sdk.namespace', 'avatars')
->label('sdk.method', 'getBrowser')
->label('sdk.description', 'You can use this endpoint to show different browser icons to your users, The code argument receives the browser code as appear in your user /account/sessions endpoint. Use width, height and quality arguments to change the output settings.')
- ->action(function ($code, $width, $height, $quality) use ($avatarCallback) {
- return $avatarCallback('browsers', $code, $width, $height, $quality);
+ ->action(function ($code, $width, $height, $quality) use ($avatarCallback) { return $avatarCallback('browsers', $code, $width, $height, $quality);
});
$utopia->get('/v1/avatars/flags/:code')
->desc('Get Country Flag')
- ->param('code', '', function () use ($types) {
- return new WhiteList(array_keys($types['flags']));
- }, 'Country Code. ISO Alpha-2 country code format.')
- ->param('width', 100, function () {
- return new Range(0, 2000);
- }, 'Image width. Pass an integer between 0 to 2000. Defaults to 100', true)
- ->param('height', 100, function () {
- return new Range(0, 2000);
- }, 'Image height. Pass an integer between 0 to 2000. Defaults to 100', true)
- ->param('quality', 100, function () {
- return new Range(0, 100);
- }, 'Image quality. Pass an integer between 0 to 100. Defaults to 100', true)
+ ->param('code', '', function () use ($types) { return new WhiteList(array_keys($types['flags'])); }, 'Country Code. ISO Alpha-2 country code format.')
+ ->param('width', 100, function () { return new Range(0, 2000); }, 'Image width. Pass an integer between 0 to 2000. Defaults to 100', true)
+ ->param('height', 100, function () { return new Range(0, 2000); }, 'Image height. Pass an integer between 0 to 2000. Defaults to 100', true)
+ ->param('quality', 100, function () { return new Range(0, 100); }, 'Image quality. Pass an integer between 0 to 100. Defaults to 100', true)
->label('scope', 'avatars.read')
->label('sdk.namespace', 'avatars')
->label('sdk.method', 'getFlag')
->label('sdk.description', 'You can use this endpoint to show different country flags icons to your users, The code argument receives the a 2 letter country code. Use width, height and quality arguments to change the output settings.')
- ->action(function ($code, $width, $height, $quality) use ($avatarCallback) {
- return $avatarCallback('flags', $code, $width, $height, $quality);
+ ->action(function ($code, $width, $height, $quality) use ($avatarCallback) { return $avatarCallback('flags', $code, $width, $height, $quality);
});
$utopia->get('/v1/avatars/image')
->desc('Get Image from URL')
- ->param('url', '', function () {
- return new URL();
- }, 'Image URL which you want to crop.')
- ->param('width', 400, function () {
- return new Range(0, 2000);
- }, 'Resize preview image width, Pass an integer between 0 to 4000', true)
- ->param('height', 400, function () {
- return new Range(0, 2000);
- }, 'Resize preview image height, Pass an integer between 0 to 4000', true)
+ ->param('url', '', function () { return new URL(); }, 'Image URL which you want to crop.')
+ ->param('width', 400, function () { return new Range(0, 2000); }, 'Resize preview image width, Pass an integer between 0 to 4000', true)
+ ->param('height', 400, function () { return new Range(0, 2000); }, 'Resize preview image height, Pass an integer between 0 to 4000', true)
->label('scope', 'avatars.read')
->label('sdk.namespace', 'avatars')
->label('sdk.method', 'getImage')
@@ -226,9 +193,7 @@ $utopia->get('/v1/avatars/image')
$utopia->get('/v1/avatars/favicon')
->desc('Get Favicon')
- ->param('url', '', function () {
- return new URL();
- }, 'Website URL which you want to fetch the favicon from.')
+ ->param('url', '', function () { return new URL(); }, 'Website URL which you want to fetch the favicon from.')
->label('scope', 'avatars.read')
->label('sdk.namespace', 'avatars')
->label('sdk.method', 'getFavicon')
@@ -377,18 +342,10 @@ $utopia->get('/v1/avatars/favicon')
$utopia->get('/v1/avatars/qr')
->desc('Text to QR Generator')
- ->param('text', '', function () {
- return new Text(512);
- }, 'Plain text to be converted to QR code image')
- ->param('size', 400, function () {
- return new Range(0, 1000);
- }, 'QR code size. Pass an integer between 0 to 1000. Defaults to 400.', true)
- ->param('margin', 1, function () {
- return new Range(0, 10);
- }, 'Margin From Edge. Pass an integer between 0 to 10. Defaults to 1.', true)
- ->param('download', 0, function () {
- return new Range(0, 1);
- }, 'Return resulting image with \'Content-Disposition: attachment \' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.', true)
+ ->param('text', '', function () { return new Text(512); }, 'Plain text to be converted to QR code image')
+ ->param('size', 400, function () { return new Range(0, 1000); }, 'QR code size. Pass an integer between 0 to 1000. Defaults to 400.', true)
+ ->param('margin', 1, function () { return new Range(0, 10); }, 'Margin From Edge. Pass an integer between 0 to 10. Defaults to 1.', true)
+ ->param('download', 0, function () { return new Range(0, 1); }, 'Return resulting image with \'Content-Disposition: attachment \' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.', true)
->label('scope', 'avatars.read')
->label('sdk.namespace', 'avatars')
->label('sdk.method', 'getQR')
diff --git a/app/controllers/console.php b/app/controllers/console.php
index ef36ba9e01..b213158d2a 100644
--- a/app/controllers/console.php
+++ b/app/controllers/console.php
@@ -174,9 +174,7 @@ $utopia->get('/console/database/collection')
->desc('Platform console project settings')
->label('permission', 'public')
->label('scope', 'console')
- ->param('id', '', function () {
- return new UID();
- }, 'Collection unique ID.')
+ ->param('id', '', function () { return new UID(); }, 'Collection unique ID.')
->action(function ($id) use ($layout, $projectDB) {
$collection = $projectDB->getDocument($id, false);
diff --git a/app/controllers/database.php b/app/controllers/database.php
index e27d1feff7..6b2a2460a3 100644
--- a/app/controllers/database.php
+++ b/app/controllers/database.php
@@ -27,18 +27,10 @@ $utopia->get('/v1/database')
->label('sdk.namespace', 'database')
->label('sdk.method', 'listCollections')
->label('sdk.description', 'Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project collections. [Learn more about different API modes](/docs/modes).')
- ->param('search', '', function () {
- return new Text(256);
- }, 'Search term to filter your list results.', true)
- ->param('limit', 25, function () {
- return new Range(0, 100);
- }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
- ->param('offset', 0, function () {
- return new Range(0, 40000);
- }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
- ->param('orderType', 'ASC', function () {
- return new WhiteList(['ASC', 'DESC']);
- }, 'Order result by ASC or DESC order.', true)
+ ->param('search', '', function () { return new Text(256); }, 'Search term to filter your list results.', true)
+ ->param('limit', 25, function () { return new Range(0, 100); }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
+ ->param('offset', 0, function () { return new Range(0, 40000); }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
+ ->param('orderType', 'ASC', function () { return new WhiteList(['ASC', 'DESC']); }, 'Order result by ASC or DESC order.', true)
->action(
function ($search, $limit, $offset, $orderType) use ($response, $projectDB) {
/*$vl = new Structure($projectDB);
@@ -82,9 +74,7 @@ $utopia->get('/v1/database/:collectionId')
->label('sdk.namespace', 'database')
->label('sdk.method', 'getCollection')
->label('sdk.description', 'Get collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.')
- ->param('collectionId', '', function () {
- return new UID();
- }, 'Collection unique ID.')
+ ->param('collectionId', '', function () { return new UID(); }, 'Collection unique ID.')
->action(
function ($collectionId) use ($response, $projectDB) {
$collection = $projectDB->getDocument($collectionId, false);
@@ -104,18 +94,10 @@ $utopia->post('/v1/database')
->label('sdk.namespace', 'database')
->label('sdk.method', 'createCollection')
->label('sdk.description', 'Create a new Collection.')
- ->param('name', '', function () {
- return new Text(256);
- }, 'Collection name.')
- ->param('read', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('write', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('rules', [], function () use ($projectDB) {
- return new ArrayList(new Collection($projectDB, [Database::SYSTEM_COLLECTION_RULES], ['$collection' => Database::SYSTEM_COLLECTION_RULES, '$permissions' => ['read' => [], 'write' => []]]));
- }, 'Array of [rule objects](/docs/rules). Each rule define a collection field name, data type and validation', true)
+ ->param('name', '', function () { return new Text(256); }, 'Collection name.')
+ ->param('read', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('write', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('rules', [], function () use ($projectDB) { return new ArrayList(new Collection($projectDB, [Database::SYSTEM_COLLECTION_RULES], ['$collection' => Database::SYSTEM_COLLECTION_RULES, '$permissions' => ['read' => [], 'write' => []]])); }, 'Array of [rule objects](/docs/rules). Each rule define a collection field name, data type and validation', true)
->action(
function ($name, $read, $write, $rules) use ($response, $projectDB, $webhook, $audit) {
$parsedRules = [];
@@ -179,21 +161,11 @@ $utopia->put('/v1/database/:collectionId')
->label('sdk.namespace', 'database')
->label('sdk.method', 'updateCollection')
->label('sdk.description', 'Update collection by its unique ID.')
- ->param('collectionId', '', function () {
- return new UID();
- }, 'Collection unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Collection name.')
- ->param('read', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('write', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('rules', [], function () use ($projectDB) {
- return new ArrayList(new Collection($projectDB, [Database::SYSTEM_COLLECTION_RULES], ['$collection' => Database::SYSTEM_COLLECTION_RULES, '$permissions' => ['read' => [], 'write' => []]]));
- }, 'Array of [rule objects](/docs/rules). Each rule define a collection field name, data type and validation', true)
+ ->param('collectionId', '', function () { return new UID(); }, 'Collection unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Collection name.')
+ ->param('read', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('write', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('rules', [], function () use ($projectDB) { return new ArrayList(new Collection($projectDB, [Database::SYSTEM_COLLECTION_RULES], ['$collection' => Database::SYSTEM_COLLECTION_RULES, '$permissions' => ['read' => [], 'write' => []]])); }, 'Array of [rule objects](/docs/rules). Each rule define a collection field name, data type and validation', true)
->action(
function ($collectionId, $name, $read, $write, $rules) use ($response, $projectDB) {
$collection = $projectDB->getDocument($collectionId, false);
@@ -239,9 +211,7 @@ $utopia->delete('/v1/database/:collectionId')
->label('sdk.namespace', 'database')
->label('sdk.method', 'deleteCollection')
->label('sdk.description', 'Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.')
- ->param('collectionId', '', function () {
- return new UID();
- }, 'Collection unique ID.')
+ ->param('collectionId', '', function () { return new UID(); }, 'Collection unique ID.')
->action(
function ($collectionId) use ($response, $projectDB, $audit) {
$collection = $projectDB->getDocument($collectionId, false);
@@ -270,36 +240,16 @@ $utopia->get('/v1/database/:collectionId/documents')
->label('sdk.namespace', 'database')
->label('sdk.method', 'listDocuments')
->label('sdk.description', 'Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project documents. [Learn more about different API modes](/docs/modes).')
- ->param('collectionId', null, function () {
- return new UID();
- }, 'Collection unique ID.')
- ->param('filters', [], function () {
- return new ArrayList(new Text(128));
- }, 'Array of filter strings. Each filter is constructed from a key name, comparison operator (=, !=, >, <, <=, >=) and a value. You can also use a dot (.) separator in attribute names to filter by child document attributes. Examples: \'name=John Doe\' or \'category.$uid>=5bed2d152c362\'', true)
- ->param('offset', 0, function () {
- return new Range(0, 900000000);
- }, 'Offset value. Use this value to manage pagination.', true)
- ->param('limit', 50, function () {
- return new Range(0, 1000);
- }, 'Maximum number of documents to return in response. Use this value to manage pagination.', true)
- ->param('order-field', '$uid', function () {
- return new Text(128);
- }, 'Document field that results will be sorted by.', true)
- ->param('order-type', 'ASC', function () {
- return new WhiteList(array('DESC', 'ASC'));
- }, 'Order direction. Possible values are DESC for descending order, or ASC for ascending order.', true)
- ->param('order-cast', 'string', function () {
- return new WhiteList(array('int', 'string', 'date', 'time', 'datetime'));
- }, 'Order field type casting. Possible values are int, string, date, time or datetime. The database will attempt to cast the order field to the value you pass here. The default value is a string.', true)
- ->param('search', '', function () {
- return new Text(256);
- }, 'Search query. Enter any free text search. The database will try to find a match against all document attributes and children.', true)
- ->param('first', 0, function () {
- return new Range(0, 1);
- }, 'Return only first document. Pass 1 for true or 0 for false. The default value is 0.', true)
- ->param('last', 0, function () {
- return new Range(0, 1);
- }, 'Return only last document. Pass 1 for true or 0 for false. The default value is 0.', true)
+ ->param('collectionId', null, function () { return new UID(); }, 'Collection unique ID.')
+ ->param('filters', [], function () { return new ArrayList(new Text(128)); }, 'Array of filter strings. Each filter is constructed from a key name, comparison operator (=, !=, >, <, <=, >=) and a value. You can also use a dot (.) separator in attribute names to filter by child document attributes. Examples: \'name=John Doe\' or \'category.$uid>=5bed2d152c362\'', true)
+ ->param('offset', 0, function () { return new Range(0, 900000000); }, 'Offset value. Use this value to manage pagination.', true)
+ ->param('limit', 50, function () { return new Range(0, 1000); }, 'Maximum number of documents to return in response. Use this value to manage pagination.', true)
+ ->param('order-field', '$uid', function () { return new Text(128); }, 'Document field that results will be sorted by.', true)
+ ->param('order-type', 'ASC', function () { return new WhiteList(array('DESC', 'ASC')); }, 'Order direction. Possible values are DESC for descending order, or ASC for ascending order.', true)
+ ->param('order-cast', 'string', function () { return new WhiteList(array('int', 'string', 'date', 'time', 'datetime')); }, 'Order field type casting. Possible values are int, string, date, time or datetime. The database will attempt to cast the order field to the value you pass here. The default value is a string.', true)
+ ->param('search', '', function () { return new Text(256); }, 'Search query. Enter any free text search. The database will try to find a match against all document attributes and children.', true)
+ ->param('first', 0, function () { return new Range(0, 1); }, 'Return only first document. Pass 1 for true or 0 for false. The default value is 0.', true)
+ ->param('last', 0, function () { return new Range(0, 1); }, 'Return only last document. Pass 1 for true or 0 for false. The default value is 0.', true)
->action(
function ($collectionId, $filters, $offset, $limit, $orderField, $orderType, $orderCast, $search, $first, $last) use ($response, $projectDB, $isDev) {
$collection = $projectDB->getDocument($collectionId, $isDev);
@@ -356,12 +306,8 @@ $utopia->get('/v1/database/:collectionId/documents/:documentId')
->label('sdk.namespace', 'database')
->label('sdk.method', 'getDocument')
->label('sdk.description', 'Get document by its unique ID. This endpoint response returns a JSON object with the document data.')
- ->param('collectionId', null, function () {
- return new UID();
- }, 'Collection unique ID')
- ->param('documentId', null, function () {
- return new UID();
- }, 'Document unique ID')
+ ->param('collectionId', null, function () { return new UID(); }, 'Collection unique ID')
+ ->param('documentId', null, function () { return new UID(); }, 'Document unique ID')
->action(
function ($collectionId, $documentId) use ($response, $request, $projectDB, $isDev) {
$document = $projectDB->getDocument($documentId, $isDev);
@@ -405,29 +351,17 @@ $utopia->post('/v1/database/:collectionId/documents')
->label('sdk.namespace', 'database')
->label('sdk.method', 'createDocument')
->label('sdk.description', 'Create a new Document.')
- ->param('collectionId', null, function () {
- return new UID();
- }, 'Collection unique ID.')
- ->param('data', [], function () {
- return new \Utopia\Validator\Mock();
- }, 'Document data as JSON string.')
- ->param('read', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('write', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('parentDocument', '', function () {
- return new UID();
- }, 'Parent document unique ID. Use when you want your new document to be a child of a parent document.', true)
- ->param('parentProperty', '', function () {
- return new Key();
- }, 'Parent document property name. Use when you want your new document to be a child of a parent document.', true)
- ->param('parentPropertyType', Document::SET_TYPE_ASSIGN, function () {
- return new WhiteList([Document::SET_TYPE_ASSIGN, Document::SET_TYPE_APPEND, Document::SET_TYPE_PREPEND]);
- }, 'Parent document property connection type. You can set this value to **assign**, **append** or **prepend**, default value is assign. Use when you want your new document to be a child of a parent document.', true)
+ ->param('collectionId', null, function () { return new UID(); }, 'Collection unique ID.')
+ ->param('data', [], function () { return new \Utopia\Validator\Mock(); }, 'Document data as JSON string.')
+ ->param('read', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('write', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('parentDocument', '', function () { return new UID(); }, 'Parent document unique ID. Use when you want your new document to be a child of a parent document.', true)
+ ->param('parentProperty', '', function () { return new Key(); }, 'Parent document property name. Use when you want your new document to be a child of a parent document.', true)
+ ->param('parentPropertyType', Document::SET_TYPE_ASSIGN, function () { return new WhiteList([Document::SET_TYPE_ASSIGN, Document::SET_TYPE_APPEND, Document::SET_TYPE_PREPEND]); }, 'Parent document property connection type. You can set this value to **assign**, **append** or **prepend**, default value is assign. Use when you want your new document to be a child of a parent document.', true)
->action(
function ($collectionId, $data, $read, $write, $parentDocument, $parentProperty, $parentPropertyType) use ($response, $projectDB, $webhook, $audit) {
+ $data = (is_string($data) && $result = json_decode($data, true)) ? $result : $data; // Cast to JSON array
+
if (empty($data)) {
throw new Exception('Missing payload', 400);
}
@@ -435,7 +369,7 @@ $utopia->post('/v1/database/:collectionId/documents')
if (isset($data['$uid'])) {
throw new Exception('$uid is not allowed for creating new documents, try update instead', 400);
}
-
+
$collection = $projectDB->getDocument($collectionId/*, $isDev*/);
if (is_null($collection->getUid()) || Database::SYSTEM_COLLECTION_COLLECTIONS != $collection->getCollection()) {
@@ -522,21 +456,11 @@ $utopia->patch('/v1/database/:collectionId/documents/:documentId')
->label('scope', 'documents.write')
->label('sdk.namespace', 'database')
->label('sdk.method', 'updateDocument')
- ->param('collectionId', null, function () {
- return new UID();
- }, 'Collection unique ID')
- ->param('documentId', null, function () {
- return new UID();
- }, 'Document unique ID')
- ->param('data', [], function () {
- return new \Utopia\Validator\Mock();
- }, 'Document data as JSON string')
- ->param('read', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('write', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('collectionId', null, function () { return new UID(); }, 'Collection unique ID')
+ ->param('documentId', null, function () { return new UID(); }, 'Document unique ID')
+ ->param('data', [], function () { return new \Utopia\Validator\Mock(); }, 'Document data as JSON string')
+ ->param('read', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('write', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
->action(
function ($collectionId, $documentId, $data, $read, $write) use ($response, $projectDB, &$output, $webhook, $audit, $isDev) {
$collection = $projectDB->getDocument($collectionId/*, $isDev*/);
@@ -609,12 +533,8 @@ $utopia->delete('/v1/database/:collectionId/documents/:documentId')
->label('sdk.namespace', 'database')
->label('sdk.method', 'deleteDocument')
->label('sdk.description', 'Delete document by its unique ID. This endpoint deletes only the parent documents, his attributes and relations to other documents. Child documents **will not** be deleted.')
- ->param('collectionId', null, function () {
- return new UID();
- }, 'Collection unique ID')
- ->param('documentId', null, function () {
- return new UID();
- }, 'Document unique ID')
+ ->param('collectionId', null, function () { return new UID(); }, 'Collection unique ID')
+ ->param('documentId', null, function () { return new UID(); }, 'Document unique ID')
->action(
function ($collectionId, $documentId) use ($response, $projectDB, $audit, $isDev) {
$collection = $projectDB->getDocument($collectionId, $isDev);
diff --git a/app/controllers/locale.php b/app/controllers/locale.php
index 3873cf71c3..f9c68c2c43 100644
--- a/app/controllers/locale.php
+++ b/app/controllers/locale.php
@@ -132,7 +132,7 @@ $utopia->get('/v1/locale/currencies')
->label('scope', 'locale.read')
->label('sdk.namespace', 'locale')
->label('sdk.method', 'getCurrencies')
- ->label('sdk.description', '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 supported language.')
+ ->label('sdk.description', '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 supported language.')
->action(
function () use ($response) {
$currencies = include __DIR__.'/../config/currencies.php';
diff --git a/app/controllers/projects.php b/app/controllers/projects.php
index 2633e023e9..b06e602d52 100644
--- a/app/controllers/projects.php
+++ b/app/controllers/projects.php
@@ -67,9 +67,7 @@ $utopia->get('/v1/projects/:projectId')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'getProject')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($request, $response, $providers, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -96,9 +94,7 @@ $utopia->get('/v1/projects/:projectId/usage')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'getProjectUsage')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($response, $consoleDB, $projectDB, $register) {
$project = $consoleDB->getDocument($projectId);
@@ -232,39 +228,17 @@ $utopia->post('/v1/projects')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'createProject')
- ->param('name', null, function () {
- return new Text(100);
- }, 'Project name')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
- ->param('description', '', function () {
- return new Text(255);
- }, 'Project description', true)
- ->param('logo', '', function () {
- return new Text(1024);
- }, 'Project logo', true)
- ->param('url', '', function () {
- return new URL();
- }, 'Project URL', true)
- ->param('legalName', '', function () {
- return new Text(256);
- }, 'Project Legal Name', true)
- ->param('legalCountry', '', function () {
- return new Text(256);
- }, 'Project Legal Country', true)
- ->param('legalState', '', function () {
- return new Text(256);
- }, 'Project Legal State', true)
- ->param('legalCity', '', function () {
- return new Text(256);
- }, 'Project Legal City', true)
- ->param('legalAddress', '', function () {
- return new Text(256);
- }, 'Project Legal Address', true)
- ->param('legalTaxId', '', function () {
- return new Text(256);
- }, 'Project Legal Tax ID', true)
+ ->param('name', null, function () { return new Text(100); }, 'Project name')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
+ ->param('description', '', function () { return new Text(255); }, 'Project description', true)
+ ->param('logo', '', function () { return new Text(1024); }, 'Project logo', true)
+ ->param('url', '', function () { return new URL(); }, 'Project URL', true)
+ ->param('legalName', '', function () { return new Text(256); }, 'Project Legal Name', true)
+ ->param('legalCountry', '', function () { return new Text(256); }, 'Project Legal Country', true)
+ ->param('legalState', '', function () { return new Text(256); }, 'Project Legal State', true)
+ ->param('legalCity', '', function () { return new Text(256); }, 'Project Legal City', true)
+ ->param('legalAddress', '', function () { return new Text(256); }, 'Project Legal Address', true)
+ ->param('legalTaxId', '', function () { return new Text(256); }, 'Project Legal Tax ID', true)
->action(
function ($name, $teamId, $description, $logo, $url, $legalName, $legalCountry, $legalState, $legalCity, $legalAddress, $legalTaxId) use ($response, $user, $consoleDB, $projectDB) {
$team = $projectDB->getDocument($teamId);
@@ -314,39 +288,17 @@ $utopia->patch('/v1/projects/:projectId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updateProject')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('name', null, function () {
- return new Text(100);
- }, 'Project name')
- ->param('description', '', function () {
- return new Text(255);
- }, 'Project description', true)
- ->param('logo', '', function () {
- return new Text(1024);
- }, 'Project logo', true)
- ->param('url', '', function () {
- return new URL();
- }, 'Project URL', true)
- ->param('legalName', '', function () {
- return new Text(256);
- }, 'Project Legal Name', true)
- ->param('legalCountry', '', function () {
- return new Text(256);
- }, 'Project Legal Country', true)
- ->param('legalState', '', function () {
- return new Text(256);
- }, 'Project Legal State', true)
- ->param('legalCity', '', function () {
- return new Text(256);
- }, 'Project Legal City', true)
- ->param('legalAddress', '', function () {
- return new Text(256);
- }, 'Project Legal Address', true)
- ->param('legalTaxId', '', function () {
- return new Text(256);
- }, 'Project Legal Tax ID', true)
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
+ ->param('name', null, function () { return new Text(100); }, 'Project name')
+ ->param('description', '', function () { return new Text(255); }, 'Project description', true)
+ ->param('logo', '', function () { return new Text(1024); }, 'Project logo', true)
+ ->param('url', '', function () { return new URL(); }, 'Project URL', true)
+ ->param('legalName', '', function () { return new Text(256); }, 'Project Legal Name', true)
+ ->param('legalCountry', '', function () { return new Text(256); }, 'Project Legal Country', true)
+ ->param('legalState', '', function () { return new Text(256); }, 'Project Legal State', true)
+ ->param('legalCity', '', function () { return new Text(256); }, 'Project Legal City', true)
+ ->param('legalAddress', '', function () { return new Text(256); }, 'Project Legal Address', true)
+ ->param('legalTaxId', '', function () { return new Text(256); }, 'Project Legal Tax ID', true)
->action(
function ($projectId, $name, $description, $logo, $url, $legalName, $legalCountry, $legalState, $legalCity, $legalAddress, $legalTaxId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -381,18 +333,10 @@ $utopia->patch('/v1/projects/:projectId/oauth')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updateProjectOAuth')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('provider', '', function () use ($providers) {
- return new WhiteList(array_keys($providers));
- }, 'Provider Name', false)
- ->param('appId', '', function () {
- return new Text(256);
- }, 'Provider App ID', true)
- ->param('secret', '', function () {
- return new text(256);
- }, 'Provider Secret Key', true)
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
+ ->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'Provider Name', false)
+ ->param('appId', '', function () { return new Text(256); }, 'Provider App ID', true)
+ ->param('secret', '', function () { return new text(256); }, 'Provider Secret Key', true)
->action(
function ($projectId, $provider, $appId, $secret) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -430,9 +374,7 @@ $utopia->delete('/v1/projects/:projectId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'deleteProject')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -466,9 +408,7 @@ $utopia->get('/v1/projects/:projectId/webhooks')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'listWebhooks')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -500,12 +440,8 @@ $utopia->get('/v1/projects/:projectId/webhooks/:webhookId')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'getWebhook')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('webhookId', null, function () {
- return new UID();
- }, 'Webhook unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('webhookId', null, function () { return new UID(); }, 'Webhook unique ID.')
->action(
function ($projectId, $webhookId) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -536,27 +472,13 @@ $utopia->post('/v1/projects/:projectId/webhooks')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'createWebhook')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Webhook name')
- ->param('events', null, function () {
- return new ArrayList(new Text(256));
- }, 'Webhook events list')
- ->param('url', null, function () {
- return new Text(2000);
- }, 'Webhook URL')
- ->param('security', null, function () {
- return new Range(0, 1);
- }, 'Certificate verification, 0 for disabled or 1 for enabled')
- ->param('httpUser', '', function () {
- return new Text(256);
- }, 'Webhook HTTP user', true)
- ->param('httpPass', '', function () {
- return new Text(256);
- }, 'Webhook HTTP password', true)
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Webhook name')
+ ->param('events', null, function () { return new ArrayList(new Text(256)); }, 'Webhook events list')
+ ->param('url', null, function () { return new Text(2000); }, 'Webhook URL')
+ ->param('security', null, function () { return new Range(0, 1); }, 'Certificate verification, 0 for disabled or 1 for enabled')
+ ->param('httpUser', '', function () { return new Text(256); }, 'Webhook HTTP user', true)
+ ->param('httpPass', '', function () { return new Text(256); }, 'Webhook HTTP password', true)
->action(
function ($projectId, $name, $events, $url, $security, $httpUser, $httpPass) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -614,30 +536,14 @@ $utopia->put('/v1/projects/:projectId/webhooks/:webhookId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updateWebhook')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('webhookId', null, function () {
- return new UID();
- }, 'Webhook unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Webhook name')
- ->param('events', null, function () {
- return new ArrayList(new Text(256));
- }, 'Webhook events list')
- ->param('url', null, function () {
- return new Text(2000);
- }, 'Webhook URL')
- ->param('security', null, function () {
- return new Range(0, 1);
- }, 'Certificate verification, 0 for disabled or 1 for enabled')
- ->param('httpUser', '', function () {
- return new Text(256);
- }, 'Webhook HTTP user', true)
- ->param('httpPass', '', function () {
- return new Text(256);
- }, 'Webhook HTTP password', true)
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('webhookId', null, function () { return new UID(); }, 'Webhook unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Webhook name')
+ ->param('events', null, function () { return new ArrayList(new Text(256)); }, 'Webhook events list')
+ ->param('url', null, function () { return new Text(2000); }, 'Webhook URL')
+ ->param('security', null, function () { return new Range(0, 1); }, 'Certificate verification, 0 for disabled or 1 for enabled')
+ ->param('httpUser', '', function () { return new Text(256); }, 'Webhook HTTP user', true)
+ ->param('httpPass', '', function () { return new Text(256); }, 'Webhook HTTP password', true)
->action(
function ($projectId, $webhookId, $name, $events, $url, $security, $httpUser, $httpPass) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -685,12 +591,8 @@ $utopia->delete('/v1/projects/:projectId/webhooks/:webhookId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'deleteWebhook')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('webhookId', null, function () {
- return new UID();
- }, 'Webhook unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('webhookId', null, function () { return new UID(); }, 'Webhook unique ID.')
->action(
function ($projectId, $webhookId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -720,9 +622,7 @@ $utopia->get('/v1/projects/:projectId/keys')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'listKeys')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -740,12 +640,8 @@ $utopia->get('/v1/projects/:projectId/keys/:keyId')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'getKey')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('keyId', null, function () {
- return new UID();
- }, 'Key unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('keyId', null, function () { return new UID(); }, 'Key unique ID.')
->action(
function ($projectId, $keyId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -769,15 +665,9 @@ $utopia->post('/v1/projects/:projectId/keys')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'createKey')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Key name')
- ->param('scopes', null, function () use ($scopes) {
- return new ArrayList(new WhiteList($scopes));
- }, 'Key scopes list')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Key name')
+ ->param('scopes', null, function () use ($scopes) { return new ArrayList(new WhiteList($scopes)); }, 'Key scopes list')
->action(
function ($projectId, $name, $scopes) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -821,18 +711,10 @@ $utopia->put('/v1/projects/:projectId/keys/:keyId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updateKey')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('keyId', null, function () {
- return new UID();
- }, 'Key unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Key name')
- ->param('scopes', null, function () use ($scopes) {
- return new ArrayList(new WhiteList($scopes));
- }, 'Key scopes list')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('keyId', null, function () { return new UID(); }, 'Key unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Key name')
+ ->param('scopes', null, function () use ($scopes) { return new ArrayList(new WhiteList($scopes)); }, 'Key scopes list')
->action(
function ($projectId, $keyId, $name, $scopes) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -865,12 +747,8 @@ $utopia->delete('/v1/projects/:projectId/keys/:keyId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'deleteKey')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('keyId', null, function () {
- return new UID();
- }, 'Key unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('keyId', null, function () { return new UID(); }, 'Key unique ID.')
->action(
function ($projectId, $keyId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -900,9 +778,7 @@ $utopia->get('/v1/projects/:projectId/tasks')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'listTasks')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -934,12 +810,8 @@ $utopia->get('/v1/projects/:projectId/tasks/:taskId')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'getTask')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('taskId', null, function () {
- return new UID();
- }, 'Task unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('taskId', null, function () { return new UID(); }, 'Task unique ID.')
->action(
function ($projectId, $taskId) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -970,36 +842,16 @@ $utopia->post('/v1/projects/:projectId/tasks')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'createTask')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Task name')
- ->param('status', null, function () {
- return new WhiteList(['play', 'pause']);
- }, 'Task status')
- ->param('schedule', null, function () {
- return new Cron();
- }, 'Task schedule syntax')
- ->param('security', null, function () {
- return new Range(0, 1);
- }, 'Certificate verification, 0 for disabled or 1 for enabled')
- ->param('httpMethod', '', function () {
- return new WhiteList(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT']);
- }, 'Task HTTP method')
- ->param('httpUrl', '', function () {
- return new URL();
- }, 'Task HTTP URL')
- ->param('httpHeaders', null, function () {
- return new ArrayList(new Text(256));
- }, 'Task HTTP headers list', true)
- ->param('httpUser', '', function () {
- return new Text(256);
- }, 'Task HTTP user', true)
- ->param('httpPass', '', function () {
- return new Text(256);
- }, 'Task HTTP password', true)
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Task name')
+ ->param('status', null, function () { return new WhiteList(['play', 'pause']); }, 'Task status')
+ ->param('schedule', null, function () { return new Cron(); }, 'Task schedule syntax')
+ ->param('security', null, function () { return new Range(0, 1); }, 'Certificate verification, 0 for disabled or 1 for enabled')
+ ->param('httpMethod', '', function () { return new WhiteList(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT']); }, 'Task HTTP method')
+ ->param('httpUrl', '', function () { return new URL(); }, 'Task HTTP URL')
+ ->param('httpHeaders', null, function () { return new ArrayList(new Text(256)); }, 'Task HTTP headers list', true)
+ ->param('httpUser', '', function () { return new Text(256); }, 'Task HTTP user', true)
+ ->param('httpPass', '', function () { return new Text(256); }, 'Task HTTP password', true)
->action(
function ($projectId, $name, $status, $schedule, $security, $httpMethod, $httpUrl, $httpHeaders, $httpUser, $httpPass) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1072,39 +924,17 @@ $utopia->put('/v1/projects/:projectId/tasks/:taskId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updateTask')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('taskId', null, function () {
- return new UID();
- }, 'Task unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Task name')
- ->param('status', null, function () {
- return new WhiteList(['play', 'pause']);
- }, 'Task status')
- ->param('schedule', null, function () {
- return new Cron();
- }, 'Task schedule syntax')
- ->param('security', null, function () {
- return new Range(0, 1);
- }, 'Certificate verification, 0 for disabled or 1 for enabled')
- ->param('httpMethod', '', function () {
- return new WhiteList(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT']);
- }, 'Task HTTP method')
- ->param('httpUrl', '', function () {
- return new URL();
- }, 'Task HTTP URL')
- ->param('httpHeaders', null, function () {
- return new ArrayList(new Text(256));
- }, 'Task HTTP headers list', true)
- ->param('httpUser', '', function () {
- return new Text(256);
- }, 'Task HTTP user', true)
- ->param('httpPass', '', function () {
- return new Text(256);
- }, 'Task HTTP password', true)
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('taskId', null, function () { return new UID(); }, 'Task unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Task name')
+ ->param('status', null, function () { return new WhiteList(['play', 'pause']); }, 'Task status')
+ ->param('schedule', null, function () { return new Cron(); }, 'Task schedule syntax')
+ ->param('security', null, function () { return new Range(0, 1); }, 'Certificate verification, 0 for disabled or 1 for enabled')
+ ->param('httpMethod', '', function () { return new WhiteList(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT']); }, 'Task HTTP method')
+ ->param('httpUrl', '', function () { return new URL(); }, 'Task HTTP URL')
+ ->param('httpHeaders', null, function () { return new ArrayList(new Text(256)); }, 'Task HTTP headers list', true)
+ ->param('httpUser', '', function () { return new Text(256); }, 'Task HTTP user', true)
+ ->param('httpPass', '', function () { return new Text(256); }, 'Task HTTP password', true)
->action(
function ($projectId, $taskId, $name, $status, $schedule, $security, $httpMethod, $httpUrl, $httpHeaders, $httpUser, $httpPass) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1164,12 +994,8 @@ $utopia->delete('/v1/projects/:projectId/tasks/:taskId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'deleteTask')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('taskId', null, function () {
- return new UID();
- }, 'Task unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('taskId', null, function () { return new UID(); }, 'Task unique ID.')
->action(
function ($projectId, $taskId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1199,9 +1025,7 @@ $utopia->get('/v1/projects/:projectId/platforms')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'listPlatforms')
- ->param('projectId', '', function () {
- return new UID();
- }, 'Project unique ID.')
+ ->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->action(
function ($projectId) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1221,12 +1045,8 @@ $utopia->get('/v1/projects/:projectId/platforms/:platformId')
->label('scope', 'projects.read')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'getPlatform')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('platformId', null, function () {
- return new UID();
- }, 'Platform unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('platformId', null, function () { return new UID(); }, 'Platform unique ID.')
->action(
function ($projectId, $platformId) use ($request, $response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1250,24 +1070,12 @@ $utopia->post('/v1/projects/:projectId/platforms')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'createPlatform')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('type', null, function () {
- return new WhiteList(['web', 'ios', 'android', 'unity']);
- }, 'Platform name')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Platform name')
- ->param('key', '', function () {
- return new Text(256);
- }, 'Package name for android or bundle ID for iOS', true)
- ->param('store', '', function () {
- return new Text(256);
- }, 'App store or Google Play store ID', true)
- ->param('url', '', function () {
- return new URL();
- }, 'Platform client URL', true)
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('type', null, function () { return new WhiteList(['web', 'ios', 'android', 'unity']); }, 'Platform name')
+ ->param('name', null, function () { return new Text(256); }, 'Platform name')
+ ->param('key', '', function () { return new Text(256); }, 'Package name for android or bundle ID for iOS', true)
+ ->param('store', '', function () { return new Text(256); }, 'App store or Google Play store ID', true)
+ ->param('url', '', function () { return new URL(); }, 'Platform client URL', true)
->action(
function ($projectId, $type, $name, $key, $store, $url) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1315,24 +1123,12 @@ $utopia->put('/v1/projects/:projectId/platforms/:platformId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updatePlatform')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('platformId', null, function () {
- return new UID();
- }, 'Platform unique ID.')
- ->param('name', null, function () {
- return new Text(256);
- }, 'Platform name')
- ->param('key', '', function () {
- return new Text(256);
- }, 'Package name for android or bundle ID for iOS', true)
- ->param('store', '', function () {
- return new Text(256);
- }, 'App store or Google Play store ID', true)
- ->param('url', '', function () {
- return new URL();
- }, 'Platform client URL', true)
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('platformId', null, function () { return new UID(); }, 'Platform unique ID.')
+ ->param('name', null, function () { return new Text(256); }, 'Platform name')
+ ->param('key', '', function () { return new Text(256); }, 'Package name for android or bundle ID for iOS', true)
+ ->param('store', '', function () { return new Text(256); }, 'App store or Google Play store ID', true)
+ ->param('url', '', function () { return new URL(); }, 'Platform client URL', true)
->action(
function ($projectId, $platformId, $name, $key, $store, $url) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
@@ -1368,12 +1164,8 @@ $utopia->delete('/v1/projects/:projectId/platforms/:platformId')
->label('scope', 'projects.write')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'deletePlatform')
- ->param('projectId', null, function () {
- return new UID();
- }, 'Project unique ID.')
- ->param('platformId', null, function () {
- return new UID();
- }, 'Platform unique ID.')
+ ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.')
+ ->param('platformId', null, function () { return new UID(); }, 'Platform unique ID.')
->action(
function ($projectId, $platformId) use ($response, $consoleDB) {
$project = $consoleDB->getDocument($projectId);
diff --git a/app/controllers/storage.php b/app/controllers/storage.php
index c397d69e3f..81c1b6ceac 100644
--- a/app/controllers/storage.php
+++ b/app/controllers/storage.php
@@ -119,18 +119,10 @@ $utopia->get('/v1/storage/files')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'listFiles')
->label('sdk.description', 'Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project files. [Learn more about different API modes](/docs/modes).')
- ->param('search', '', function () {
- return new Text(256);
- }, 'Search term to filter your list results.', true)
- ->param('limit', 25, function () {
- return new Range(0, 100);
- }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
- ->param('offset', 0, function () {
- return new Range(0, 2000);
- }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
- ->param('orderType', 'ASC', function () {
- return new WhiteList(['ASC', 'DESC']);
- }, 'Order result by ASC or DESC order.', true)
+ ->param('search', '', function () { return new Text(256); }, 'Search term to filter your list results.', true)
+ ->param('limit', 25, function () { return new Range(0, 100); }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
+ ->param('offset', 0, function () { return new Range(0, 2000); }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
+ ->param('orderType', 'ASC', function () { return new WhiteList(['ASC', 'DESC']); }, 'Order result by ASC or DESC order.', true)
->action(
function ($search, $limit, $offset, $orderType) use ($response, $projectDB) {
$results = $projectDB->getCollection([
@@ -159,9 +151,7 @@ $utopia->get('/v1/storage/files/:fileId')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'getFile')
->label('sdk.description', 'Get file by its unique ID. This endpoint response returns a JSON object with the file metadata.')
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID.')
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID.')
->action(
function ($fileId) use ($response, $projectDB) {
$file = $projectDB->getDocument($fileId);
@@ -180,24 +170,12 @@ $utopia->get('/v1/storage/files/:fileId/preview')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'getFilePreview')
->label('sdk.description', 'Get file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets will return file icon image. You can also pass query string arguments for cutting and resizing your preview image.')
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID')
- ->param('width', 0, function () {
- return new Range(0, 4000);
- }, 'Resize preview image width, Pass an integer between 0 to 4000', true)
- ->param('height', 0, function () {
- return new Range(0, 4000);
- }, 'Resize preview image height, Pass an integer between 0 to 4000', true)
- ->param('quality', 100, function () {
- return new Range(0, 100);
- }, 'Preview image quality. Pass an integer between 0 to 100. Defaults to 100', true)
- ->param('background', '', function () {
- return new HexColor();
- }, 'Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.', true)
- ->param('output', null, function () use ($outputs) {
- return new WhiteList(array_merge(array_keys($outputs), [null]));
- }, 'Output format type (jpeg, jpg, png, gif and webp)', true)
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID')
+ ->param('width', 0, function () { return new Range(0, 4000); }, 'Resize preview image width, Pass an integer between 0 to 4000', true)
+ ->param('height', 0, function () { return new Range(0, 4000); }, 'Resize preview image height, Pass an integer between 0 to 4000', true)
+ ->param('quality', 100, function () { return new Range(0, 100); }, 'Preview image quality. Pass an integer between 0 to 100. Defaults to 100', true)
+ ->param('background', '', function () { return new HexColor(); }, 'Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.', true)
+ ->param('output', null, function () use ($outputs) { return new WhiteList(array_merge(array_keys($outputs), [null])); }, 'Output format type (jpeg, jpg, png, gif and webp)', true)
//->param('storage', 'local', function () {return new WhiteList(array('local'));}, 'Selected storage device. defaults to local')
//->param('token', '', function () {return new Text(128);}, 'Preview token', true)
->action(
@@ -304,9 +282,7 @@ $utopia->get('/v1/storage/files/:fileId/download')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'getFileDownload')
->label('sdk.description', 'Get file content by its unique ID. The endpoint response return with a \'Content-Disposition: attachment\' header that tells the browser to start downloading the file to user downloads directory.')
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID.')
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID.')
->action(
function ($fileId) use ($response, $request, $projectDB) {
$file = $projectDB->getDocument($fileId);
@@ -356,12 +332,8 @@ $utopia->get('/v1/storage/files/:fileId/view')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'getFileView')
->label('sdk.description', 'Get file content by its unique ID. This endpoint is similar to the download method but returns with no \'Content-Disposition: attachment\' header.')
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID.')
- ->param('as', '', function () {
- return new WhiteList(['pdf', /*'html',*/ 'text']);
- }, 'Choose a file format to convert your file to. Currently you can only convert word and pdf files to pdf or txt. This option is currently experimental only, use at your own risk.', true)
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID.')
+ ->param('as', '', function () { return new WhiteList(['pdf', /*'html',*/ 'text']); }, 'Choose a file format to convert your file to. Currently you can only convert word and pdf files to pdf or txt. This option is currently experimental only, use at your own risk.', true)
->action(
function ($fileId, $as) use ($response, $request, $projectDB, $mimes) {
$file = $projectDB->getDocument($fileId);
@@ -428,18 +400,10 @@ $utopia->post('/v1/storage/files')
->label('sdk.method', 'createFile')
->label('sdk.description', 'Create a new file. The user who creates the file will automatically be assigned to read and write access unless he has passed custom values for read and write arguments.')
->label('sdk.consumes', 'multipart/form-data')
- ->param('files', [], function () {
- return new File();
- }, 'Binary Files.', false)
- ->param('read', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('write', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('folderId', '', function () {
- return new UID();
- }, 'Folder to associate files with.', true)
+ ->param('files', [], function () { return new File(); }, 'Binary Files.', false)
+ ->param('read', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('write', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('folderId', '', function () { return new UID(); }, 'Folder to associate files with.', true)
->action(
function ($files, $read, $write, $folderId) use ($request, $response, $user, $projectDB, $audit, $usage) {
$files = $request->getFiles('files');
@@ -558,18 +522,10 @@ $utopia->put('/v1/storage/files/:fileId')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'updateFile')
->label('sdk.description', 'Update file by its unique ID. Only users with write permissions have access to update this resource.')
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID.')
- ->param('read', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('write', [], function () {
- return new ArrayList(new Text(64));
- }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
- ->param('folderId', '', function () {
- return new UID();
- }, 'Folder to associate files with.', true)
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID.')
+ ->param('read', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with read permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('write', [], function () { return new ArrayList(new Text(64)); }, 'An array of strings with write permissions. [Learn more about permissions and roles](/docs/permissions).', true)
+ ->param('folderId', '', function () { return new UID(); }, 'Folder to associate files with.', true)
->action(
function ($fileId, $read, $write, $folderId) use ($response, $projectDB) {
$file = $projectDB->getDocument($fileId);
@@ -600,9 +556,7 @@ $utopia->delete('/v1/storage/files/:fileId')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'deleteFile')
->label('sdk.description', 'Delete a file by its unique ID. Only users with write permissions have access to delete this resource.')
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID.')
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID.')
->action(
function ($fileId) use ($response, $projectDB, $audit, $usage) {
$file = $projectDB->getDocument($fileId);
@@ -638,11 +592,8 @@ $utopia->get('/v1/storage/files/:fileId/scan')
->label('sdk.namespace', 'storage')
->label('sdk.method', 'getFileScan')
->label('sdk.hide', true)
- ->param('fileId', '', function () {
- return new UID();
- }, 'File unique ID.')
- ->param('storage', 'local', function () {
- return new WhiteList(['local']);
+ ->param('fileId', '', function () { return new UID(); }, 'File unique ID.')
+ ->param('storage', 'local', function () { return new WhiteList(['local']);
})
->action(
function ($fileId, $storage) use ($response, $request, $projectDB) {
diff --git a/app/controllers/teams.php b/app/controllers/teams.php
index 27a5fbe31a..84da0f23ec 100644
--- a/app/controllers/teams.php
+++ b/app/controllers/teams.php
@@ -24,18 +24,10 @@ $utopia->get('/v1/teams')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'listTeams')
->label('sdk.description', 'Get a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project teams. [Learn more about different API modes](/docs/modes).')
- ->param('search', '', function () {
- return new Text(256);
- }, 'Search term to filter your list results.', true)
- ->param('limit', 25, function () {
- return new Range(0, 100);
- }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
- ->param('offset', 0, function () {
- return new Range(0, 2000);
- }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
- ->param('orderType', 'ASC', function () {
- return new WhiteList(['ASC', 'DESC']);
- }, 'Order result by ASC or DESC order.', true)
+ ->param('search', '', function () { return new Text(256); }, 'Search term to filter your list results.', true)
+ ->param('limit', 25, function () { return new Range(0, 100); }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
+ ->param('offset', 0, function () { return new Range(0, 2000); }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
+ ->param('orderType', 'ASC', function () { return new WhiteList(['ASC', 'DESC']); }, 'Order result by ASC or DESC order.', true)
->action(
function ($search, $limit, $offset, $orderType) use ($response, $projectDB) {
$results = $projectDB->getCollection([
@@ -60,9 +52,7 @@ $utopia->get('/v1/teams/:teamId')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'getTeam')
->label('sdk.description', 'Get team by its unique ID. All team members have read access for this resource.')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
->action(
function ($teamId) use ($response, $projectDB) {
$team = $projectDB->getDocument($teamId);
@@ -81,9 +71,7 @@ $utopia->get('/v1/teams/:teamId/members')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'getTeamMembers')
->label('sdk.description', 'Get team members by the team unique ID. All team members have read access for this list of resources.')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
->action(
function ($teamId) use ($response, $projectDB) {
$team = $projectDB->getDocument($teamId);
@@ -135,12 +123,8 @@ $utopia->post('/v1/teams')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'createTeam')
->label('sdk.description', 'Create a new team. The user who creates the team will automatically be assigned as the owner of the team. The team owner can invite new members, who will be able add new owners and update or delete the team from your project.')
- ->param('name', null, function () {
- return new Text(100);
- }, 'Team name.')
- ->param('roles', ['owner'], function () {
- return new ArrayList(new Text(128));
- }, 'User roles array. Use this param to set the roles in the team for the user who created the team. The default role is **owner**, a role can be any string.', true)
+ ->param('name', null, function () { return new Text(100); }, 'Team name.')
+ ->param('roles', ['owner'], function () { return new ArrayList(new Text(128)); }, 'User roles array. Use this param to set the roles in the team for the user who created the team. The default role is **owner**, a role can be any string.', true)
->action(
function ($name, $roles) use ($response, $projectDB, $user, $mode) {
Authorization::disable();
@@ -201,12 +185,8 @@ $utopia->put('/v1/teams/:teamId')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'updateTeam')
->label('sdk.description', 'Update team by its unique ID. Only team owners have write access for this resource.')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
- ->param('name', null, function () {
- return new Text(100);
- }, 'Team name.')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
+ ->param('name', null, function () { return new Text(100); }, 'Team name.')
->action(
function ($teamId, $name) use ($response, $projectDB) {
$team = $projectDB->getDocument($teamId);
@@ -233,9 +213,7 @@ $utopia->delete('/v1/teams/:teamId')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'deleteTeam')
->label('sdk.description', 'Delete team by its unique ID. Only team owners have write access for this resource.')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
->action(
function ($teamId) use ($response, $projectDB) {
$team = $projectDB->getDocument($teamId);
@@ -275,21 +253,11 @@ $utopia->post('/v1/teams/:teamId/memberships')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'createTeamMembership')
->label('sdk.description', "Use this endpoint to invite a new member to your team. An email with a link to join the team will be sent to the new member email address. If member doesn't exists in the project it will be automatically created.\n\nUse the redirect parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the /teams/{teamId}/memberships/{inviteId}/status endpoint to finally join the user to the team.\n\nPlease notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.")
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
- ->param('email', '', function () {
- return new Email();
- }, 'New team member email address.')
- ->param('name', '', function () {
- return new Text(100);
- }, 'New team member name.', true)
- ->param('roles', [], function () {
- return new ArrayList(new Text(128));
- }, 'Invite roles array. Learn more about [roles and permissions](/docs/permissions).')
- ->param('redirect', '', function () use ($clients) {
- return new Host($clients);
- }, 'Reset page to redirect user back to your app from the invitation email.')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
+ ->param('email', '', function () { return new Email(); }, 'New team member email address.')
+ ->param('name', '', function () { return new Text(100); }, 'New team member name.', true)
+ ->param('roles', [], function () { return new ArrayList(new Text(128)); }, 'Invite roles array. Learn more about [roles and permissions](/docs/permissions).')
+ ->param('redirect', '', function () use ($clients) { return new Host($clients); }, 'Reset page to redirect user back to your app from the invitation email.')
->action(
function ($teamId, $email, $name, $roles, $redirect) use ($request, $response, $register, $project, $user, $audit, $projectDB) {
$name = (empty($name)) ? $email : $name;
@@ -428,15 +396,9 @@ $utopia->post('/v1/teams/:teamId/memberships/:inviteId/resend')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'createTeamMembershipResend')
->label('sdk.description', 'Use this endpoint to resend your invitation email for a user to join a team.')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
- ->param('inviteId', '', function () {
- return new UID();
- }, 'Invite unique ID.')
- ->param('redirect', '', function () use ($clients) {
- return new Host($clients);
- }, 'Reset page to redirect user back to your app from the invitation email.')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
+ ->param('inviteId', '', function () { return new UID(); }, 'Invite unique ID.')
+ ->param('redirect', '', function () use ($clients) { return new Host($clients); }, 'Reset page to redirect user back to your app from the invitation email.')
->action(
function ($teamId, $inviteId, $redirect) use ($response, $register, $project, $user, $audit, $projectDB) {
$membership = $projectDB->getDocument($inviteId);
@@ -515,24 +477,12 @@ $utopia->patch('/v1/teams/:teamId/memberships/:inviteId/status')
->label('sdk.method', 'updateTeamMembershipStatus')
->label('sdk.description', "Use this endpoint to let user accept an invitation to join a team after he is being redirect back to your app from the invitation email. Use the success and failure URL's to redirect users back to your application after the request completes.\n\nPlease notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.\n\nWhen not using the success or failure redirect arguments this endpoint will result with a 200 status code on success and with 401 status error on failure. This behavior was applied to help the web clients deal with browsers who don't allow to set 3rd party HTTP cookies needed for saving the account session token.")
->label('sdk.cookies', true)
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
- ->param('inviteId', '', function () {
- return new UID();
- }, 'Invite unique ID')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID')
- ->param('secret', '', function () {
- return new Text(256);
- }, 'Secret Key')
- ->param('success', null, function () use ($clients) {
- return new Host($clients);
- }, 'Redirect when registration succeed', true)
- ->param('failure', null, function () use ($clients) {
- return new Host($clients);
- }, 'Redirect when registration failed', true)
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
+ ->param('inviteId', '', function () { return new UID(); }, 'Invite unique ID')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID')
+ ->param('secret', '', function () { return new Text(256); }, 'Secret Key')
+ ->param('success', null, function () use ($clients) { return new Host($clients); }, 'Redirect when registration succeed', true)
+ ->param('failure', null, function () use ($clients) { return new Host($clients); }, 'Redirect when registration failed', true)
->action(
function ($teamId, $inviteId, $userId, $secret, $success, $failure) use ($response, $request, $user, $audit, $projectDB) {
$invite = $projectDB->getDocument($inviteId);
@@ -658,12 +608,8 @@ $utopia->delete('/v1/teams/:teamId/memberships/:inviteId')
->label('sdk.namespace', 'teams')
->label('sdk.method', 'deleteTeamMembership')
->label('sdk.description', 'This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member.')
- ->param('teamId', '', function () {
- return new UID();
- }, 'Team unique ID.')
- ->param('inviteId', '', function () {
- return new UID();
- }, 'Invite unique ID')
+ ->param('teamId', '', function () { return new UID(); }, 'Team unique ID.')
+ ->param('inviteId', '', function () { return new UID(); }, 'Invite unique ID')
->action(
function ($teamId, $inviteId) use ($response, $projectDB, $audit) {
$invite = $projectDB->getDocument($inviteId);
diff --git a/app/controllers/users.php b/app/controllers/users.php
index 522bdfe8e5..7cc4b4ed31 100644
--- a/app/controllers/users.php
+++ b/app/controllers/users.php
@@ -23,18 +23,10 @@ $utopia->get('/v1/users')
->label('sdk.namespace', 'users')
->label('sdk.method', 'listUsers')
->label('sdk.description', 'Get a list of all the project users. You can use the query params to filter your results.')
- ->param('search', '', function () {
- return new Text(256);
- }, 'Search term to filter your list results.', true)
- ->param('limit', 25, function () {
- return new Range(0, 100);
- }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
- ->param('offset', 0, function () {
- return new Range(0, 2000);
- }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
- ->param('orderType', 'ASC', function () {
- return new WhiteList(['ASC', 'DESC']);
- }, 'Order result by ASC or DESC order.', true)
+ ->param('search', '', function () { return new Text(256); }, 'Search term to filter your list results.', true)
+ ->param('limit', 25, function () { return new Range(0, 100); }, 'Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
+ ->param('offset', 0, function () { return new Range(0, 2000); }, 'Results offset. The default value is 0. Use this param to manage pagination.', true)
+ ->param('orderType', 'ASC', function () { return new WhiteList(['ASC', 'DESC']); }, 'Order result by ASC or DESC order.', true)
->action(
function ($search, $limit, $offset, $orderType) use ($response, $projectDB, $providers) {
$results = $projectDB->getCollection([
@@ -83,9 +75,7 @@ $utopia->get('/v1/users/:userId')
->label('sdk.namespace', 'users')
->label('sdk.method', 'getUser')
->label('sdk.description', 'Get user by its unique ID.')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
->action(
function ($userId) use ($response, $projectDB, $providers) {
$user = $projectDB->getDocument($userId);
@@ -124,9 +114,7 @@ $utopia->get('/v1/users/:userId/prefs')
->label('sdk.namespace', 'users')
->label('sdk.method', 'getUserPrefs')
->label('sdk.description', 'Get user preferences by its unique ID.')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
->action(
function ($userId) use ($response, $projectDB) {
$user = $projectDB->getDocument($userId);
@@ -157,9 +145,7 @@ $utopia->get('/v1/users/:userId/sessions')
->label('sdk.namespace', 'users')
->label('sdk.method', 'getUserSessions')
->label('sdk.description', 'Get user sessions list by its unique ID.')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
->action(
function ($userId) use ($response, $projectDB) {
$user = $projectDB->getDocument($userId);
@@ -221,9 +207,7 @@ $utopia->get('/v1/users/:userId/logs')
->label('sdk.namespace', 'users')
->label('sdk.method', 'getUserLogs')
->label('sdk.description', 'Get user activity logs list by its unique ID.')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
->action(
function ($userId) use ($response, $register, $projectDB, $project) {
$user = $projectDB->getDocument($userId);
@@ -284,15 +268,9 @@ $utopia->post('/v1/users')
->label('sdk.namespace', 'users')
->label('sdk.method', 'createUser')
->label('sdk.description', 'Create a new user.')
- ->param('email', '', function () {
- return new Email();
- }, 'User account email.')
- ->param('password', '', function () {
- return new Password();
- }, 'User account password.')
- ->param('name', '', function () {
- return new Text(100);
- }, 'User account name.', true)
+ ->param('email', '', function () { return new Email(); }, 'User account email.')
+ ->param('password', '', function () { return new Password(); }, 'User account password.')
+ ->param('name', '', function () { return new Text(100); }, 'User account name.', true)
->action(
function ($email, $password, $name) use ($response, $register, $projectDB, $providers) {
$profile = $projectDB->getCollection([ // Get user by email address
@@ -354,12 +332,8 @@ $utopia->patch('/v1/users/:userId/status')
->label('sdk.namespace', 'users')
->label('sdk.method', 'updateUserStatus')
->label('sdk.description', 'Update user status by its unique ID.')
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
- ->param('status', '', function () {
- return new WhiteList([Auth::USER_STATUS_ACTIVATED, Auth::USER_STATUS_BLOCKED, Auth::USER_STATUS_UNACTIVATED]);
- }, 'User Status code. To activate the user pass '.Auth::USER_STATUS_ACTIVATED.', to blocking the user pass '.Auth::USER_STATUS_BLOCKED.' and for disabling the user pass '.Auth::USER_STATUS_UNACTIVATED)
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
+ ->param('status', '', function () { return new WhiteList([Auth::USER_STATUS_ACTIVATED, Auth::USER_STATUS_BLOCKED, Auth::USER_STATUS_UNACTIVATED]); }, 'User Status code. To activate the user pass '.Auth::USER_STATUS_ACTIVATED.', to blocking the user pass '.Auth::USER_STATUS_BLOCKED.' and for disabling the user pass '.Auth::USER_STATUS_UNACTIVATED)
->action(
function ($userId, $status) use ($response, $projectDB) {
$user = $projectDB->getDocument($userId);
@@ -381,6 +355,34 @@ $utopia->patch('/v1/users/:userId/status')
}
);
+$utopia->patch('/v1/users/:userId/prefs')
+ ->desc('Update Account Prefs')
+ ->label('scope', 'users.write')
+ ->label('sdk.namespace', 'users')
+ ->label('sdk.method', 'updateUserPrefs')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
+ ->param('prefs', '', function () { return new \Utopia\Validator\Mock(); }, 'Prefs key-value JSON object string.')
+ ->label('sdk.description', 'Update user preferences by its unique ID. You can pass only the specific settings you wish to update.')
+ ->action(
+ function ($userId, $prefs) use ($response, $projectDB) {
+ $user = $projectDB->getDocument($userId);
+
+ if (empty($user->getUid()) || Database::SYSTEM_COLLECTION_USERS != $user->getCollection()) {
+ throw new Exception('User not found', 404);
+ }
+
+ $user = $projectDB->updateDocument(array_merge($user->getArrayCopy(), [
+ 'prefs' => json_encode(array_merge(json_decode($user->getAttribute('prefs', '{}'), true), $prefs)),
+ ]));
+ if (false === $user) {
+ throw new Exception('Failed saving user to DB', 500);
+ }
+
+ $response->json(array('result' => 'success'));
+ }
+ );
+
+
$utopia->delete('/v1/users/:userId/sessions/:session')
->desc('Delete User Session')
->label('scope', 'users.write')
@@ -388,12 +390,8 @@ $utopia->delete('/v1/users/:userId/sessions/:session')
->label('sdk.method', 'deleteUsersSession')
->label('sdk.description', 'Delete user sessions by its unique ID.')
->label('abuse-limit', 100)
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
- ->param('sessionId', null, function () {
- return new UID();
- }, 'User unique session ID.')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
+ ->param('sessionId', null, function () { return new UID(); }, 'User unique session ID.')
->action(
function ($userId, $sessionId) use ($response, $request, $projectDB) {
$user = $projectDB->getDocument($userId);
@@ -423,9 +421,7 @@ $utopia->delete('/v1/users/:userId/sessions')
->label('sdk.method', 'deleteUserSessions')
->label('sdk.description', 'Delete all user sessions by its unique ID.')
->label('abuse-limit', 100)
- ->param('userId', '', function () {
- return new UID();
- }, 'User unique ID.')
+ ->param('userId', '', function () { return new UID(); }, 'User unique ID.')
->action(
function ($userId) use ($response, $request, $projectDB) {
$user = $projectDB->getDocument($userId);
diff --git a/app/init.php b/app/init.php
index 7ea75a3c60..d399a59dc6 100644
--- a/app/init.php
+++ b/app/init.php
@@ -24,8 +24,9 @@ const APP_EMAIL_TEAM = 'team@'.APP_DOMAIN;
const APP_EMAIL_SECURITY = 'security@'.APP_DOMAIN;
const APP_USERAGENT = APP_NAME.'-Server/%s Please report abuse at '.APP_EMAIL_SECURITY;
const APP_MODE_ADMIN = 'admin';
-const APP_LOCALES = ['cat', 'de', 'en', 'es', 'fi', 'fr', 'gr', 'he', 'hi', 'id', 'it', 'nl', /* 'no',*/ 'pt-br', 'pt-pt', 'ro', 'tr', 'ua'];
+const APP_LOCALES = ['af', 'ar', 'cat', 'cz', 'de', 'en', 'es', 'fi', 'fr', 'gr', 'he', 'hi', 'hu', 'id', 'it', 'jv', 'lt', 'nl', 'no', 'pl', 'pt-br', 'pt-pt', 'ro', 'ru', 'si', 'sl', 'sv', 'ta', 'tr', 'ua', 'vi', 'zh-cn', 'zh-tw'];
const APP_PAGING_LIMIT = 15;
+const APP_VERSION_STABLE = '0.2.0';
$register = new Registry();
$request = new Request();
@@ -127,7 +128,11 @@ $locale = $request->getParam('locale', $request->getHeader('X-Appwrite-Locale',
Locale::$exceptions = false;
+
+Locale::setLanguage('af', include __DIR__.'/config/locale/af.php');
+Locale::setLanguage('ar', include __DIR__.'/config/locale/ar.php');
Locale::setLanguage('cat', include __DIR__.'/config/locale/cat.php');
+Locale::setLanguage('cz', include __DIR__.'/config/locale/cz.php');
Locale::setLanguage('de', include __DIR__.'/config/locale/de.php');
Locale::setLanguage('en', include __DIR__.'/config/locale/en.php');
Locale::setLanguage('es', include __DIR__.'/config/locale/es.php');
@@ -136,15 +141,27 @@ Locale::setLanguage('fr', include __DIR__.'/config/locale/fr.php');
Locale::setLanguage('gr', include __DIR__.'/config/locale/gr.php');
Locale::setLanguage('he', include __DIR__.'/config/locale/he.php');
Locale::setLanguage('hi', include __DIR__.'/config/locale/hi.php');
+Locale::setLanguage('hu', include __DIR__.'/config/locale/hu.php');
Locale::setLanguage('id', include __DIR__.'/config/locale/id.php');
Locale::setLanguage('it', include __DIR__.'/config/locale/it.php');
+Locale::setLanguage('jv', include __DIR__.'/config/locale/jv.php');
+Locale::setLanguage('lt', include __DIR__.'/config/locale/lt.php');
Locale::setLanguage('nl', include __DIR__.'/config/locale/nl.php');
-//Locale::setLanguage('no', include __DIR__.'/config/locale/no.php');
+Locale::setLanguage('no', include __DIR__.'/config/locale/no.php');
+Locale::setLanguage('pl', include __DIR__.'/config/locale/pl.php');
Locale::setLanguage('pt-br', include __DIR__.'/config/locale/pt-br.php');
Locale::setLanguage('pt-pt', include __DIR__.'/config/locale/pt-pt.php');
Locale::setLanguage('ro', include __DIR__.'/config/locale/ro.php');
+Locale::setLanguage('ru', include __DIR__ . '/config/locale/ru.php');
+Locale::setLanguage('si', include __DIR__ . '/config/locale/si.php');
+Locale::setLanguage('sl', include __DIR__ . '/config/locale/sl.php');
+Locale::setLanguage('sv', include __DIR__ . '/config/locale/sv.php');
+Locale::setLanguage('ta', include __DIR__ . '/config/locale/ta.php');
Locale::setLanguage('tr', include __DIR__.'/config/locale/tr.php');
Locale::setLanguage('ua', include __DIR__.'/config/locale/ua.php');
+Locale::setLanguage('vi', include __DIR__.'/config/locale/vi.php');
+Locale::setLanguage('zh-cn', include __DIR__.'/config/locale/zh-cn.php');
+Locale::setLanguage('zh-tw', include __DIR__.'/config/locale/zh-tw.php');
if (in_array($locale, APP_LOCALES)) {
Locale::setDefault($locale);
diff --git a/app/sdks/dart/README.md b/app/sdks/dart/README.md
index 866ec31955..de99069bd5 100644
--- a/app/sdks/dart/README.md
+++ b/app/sdks/dart/README.md
@@ -1,7 +1,7 @@
-# [Appwrite SDK for Dart](https://appwrite.io) [](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
+# Appwrite SDK for Dart

-
+
**WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).**
@@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for

-**API Version: 0.1.15**
-
## Installation
Add this to your package's pubspec.yaml file:
diff --git a/app/sdks/dart/lib/client.dart b/app/sdks/dart/lib/client.dart
index 2dd5f8f4a3..77a4092f08 100644
--- a/app/sdks/dart/lib/client.dart
+++ b/app/sdks/dart/lib/client.dart
@@ -9,7 +9,7 @@ class Client {
Dio http;
Client() {
- this.endPoint = 'https://appwrite.test/v1';
+ this.endPoint = 'https://https://appwrite.io/v1';
this.headers = {
'content-type': 'application/json',
'x-sdk-version': 'appwrite:dart:0.0.2',
diff --git a/app/sdks/dart/lib/services/auth.dart b/app/sdks/dart/lib/services/auth.dart
index 45c0be71a7..0db9f429db 100644
--- a/app/sdks/dart/lib/services/auth.dart
+++ b/app/sdks/dart/lib/services/auth.dart
@@ -15,7 +15,7 @@ class Auth extends Service {
/// the only valid redirect URL's are the once from domains you have set when
/// added your platforms in the console interface.
///
- /// When accessing this route using Javascript from the browser, success and
+ /// When accessing this route using JavaScript from the browser, success and
/// failure parameter URLs are required. Appwrite server will respond with a
/// 301 redirect status code and will set the user session cookie. This
/// behavior is enforced because modern browsers are limiting 3rd party cookies
@@ -116,7 +116,7 @@ class Auth extends Service {
/// the only valid redirect URL's are the once from domains you have set when
/// added your platforms in the console interface.
///
- /// When accessing this route using Javascript from the browser, success and
+ /// When accessing this route using JavaScript from the browser, success and
/// failure parameter URLs are required. Appwrite server will respond with a
/// 301 redirect status code and will set the user session cookie. This
/// behavior is enforced because modern browsers are limiting 3rd party cookies
diff --git a/app/sdks/dart/lib/services/locale.dart b/app/sdks/dart/lib/services/locale.dart
index 29f87ac5ea..406d25bbb9 100644
--- a/app/sdks/dart/lib/services/locale.dart
+++ b/app/sdks/dart/lib/services/locale.dart
@@ -49,9 +49,9 @@ class Locale extends Service {
return await this.client.call('get', path: path, params: params);
}
- /// 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 supported language.
+ /// 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 supported language.
Future getCurrencies() async {
String path = '/locale/currencies';
diff --git a/app/sdks/js/README.md b/app/sdks/js/README.md
index 03802a4e1e..4e6cd6bc0f 100644
--- a/app/sdks/js/README.md
+++ b/app/sdks/js/README.md
@@ -1,9 +1,9 @@
-# [Appwrite SDK for Javascript](https://appwrite.io) [](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
+# Appwrite SDK for Javascript

-
+
-This SDK if compitable with Appwrite server version 0.2.0 for older versions check previous releases.
+**This SDK is compatible with Appwrite server version 0.2.0. For older versions, please check previous releases.**
Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
@@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for

-**API Version: 0.1.15**
-
## Installation
To install via [NPM](https://www.npmjs.com/):
@@ -21,6 +19,12 @@ To install via [NPM](https://www.npmjs.com/):
npm install appwrite --save
```
+Install with CDN:
+
+```html
+
+```
+
## License
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
\ No newline at end of file
diff --git a/app/sdks/js/docs/examples/projects/create-task.md b/app/sdks/js/docs/examples/projects/create-task.md
index 4338198465..3262b4d9fe 100644
--- a/app/sdks/js/docs/examples/projects/create-task.md
+++ b/app/sdks/js/docs/examples/projects/create-task.md
@@ -4,7 +4,7 @@ sdk
.setProject('')
;
-let promise = sdk.projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
+let promise = sdk.projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
promise.then(function (response) {
console.log(response);
diff --git a/app/sdks/js/docs/examples/projects/update-task.md b/app/sdks/js/docs/examples/projects/update-task.md
index 3544916e3b..54116a41d0 100644
--- a/app/sdks/js/docs/examples/projects/update-task.md
+++ b/app/sdks/js/docs/examples/projects/update-task.md
@@ -4,7 +4,7 @@ sdk
.setProject('')
;
-let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
+let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
promise.then(function (response) {
console.log(response);
diff --git a/app/sdks/js/src/sdk.js b/app/sdks/js/src/sdk.js
index 5c6d2dd8b7..f142af9c29 100644
--- a/app/sdks/js/src/sdk.js
+++ b/app/sdks/js/src/sdk.js
@@ -2,7 +2,7 @@
window.Appwrite = function () {
let config = {
- endpoint: 'https://appwrite.test/v1',
+ endpoint: 'https://https://appwrite.io/v1',
project: '',
key: '',
locale: '',
@@ -500,7 +500,7 @@
* the only valid redirect URL's are the once from domains you have set when
* added your platforms in the console interface.
*
- * When accessing this route using Javascript from the browser, success and
+ * When accessing this route using JavaScript from the browser, success and
* failure parameter URLs are required. Appwrite server will respond with a
* 301 redirect status code and will set the user session cookie. This
* behavior is enforced because modern browsers are limiting 3rd party cookies
@@ -703,7 +703,7 @@
* the only valid redirect URL's are the once from domains you have set when
* added your platforms in the console interface.
*
- * When accessing this route using Javascript from the browser, success and
+ * When accessing this route using JavaScript from the browser, success and
* failure parameter URLs are required. Appwrite server will respond with a
* 301 redirect status code and will set the user session cookie. This
* behavior is enforced because modern browsers are limiting 3rd party cookies
@@ -1356,9 +1356,9 @@
/**
* List of currencies
*
- * 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 supported language.
+ * 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 supported language.
*
* @throws {Error}
* @return {Promise} */
diff --git a/app/sdks/js/src/sdk.min.js b/app/sdks/js/src/sdk.min.js
index 1b8e4af978..4bd61f2d4c 100644
--- a/app/sdks/js/src/sdk.min.js
+++ b/app/sdks/js/src/sdk.min.js
@@ -1,4 +1,4 @@
-(function(window){window.Appwrite=function(){let config={endpoint:'https://appwrite.test/v1',project:'',key:'',locale:'',mode:'',};let setEndpoint=function(endpoint){config.endpoint=endpoint;return this};let setProject=function(value){http.addGlobalHeader('X-Appwrite-Project',value);config.project=value;return this};let setKey=function(value){http.addGlobalHeader('X-Appwrite-Key',value);config.key=value;return this};let setLocale=function(value){http.addGlobalHeader('X-Appwrite-Locale',value);config.locale=value;return this};let setMode=function(value){http.addGlobalHeader('X-Appwrite-Mode',value);config.mode=value;return this};let http=function(document){let globalParams=[],globalHeaders=[];let addParam=function(url,param,value){let a=document.createElement('a'),regex=/(?:\?|&|&)+([^=]+)(?:=([^&]*))*/g;let match,str=[];a.href=url;param=encodeURIComponent(param);while(match=regex.exec(a.search))if(param!==match[1])str.push(match[1]+(match[2]?"="+match[2]:""));str.push(param+(value?"="+encodeURIComponent(value):""));a.search=str.join("&");return a.href};let buildQuery=function(params){let str=[];for(let p in params){if(Array.isArray(params[p])){for(let index=0;indexcreateTask('[PROJECT_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
\ No newline at end of file
+$result = $projects->createTask('[PROJECT_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
\ No newline at end of file
diff --git a/app/sdks/php/docs/examples/projects/create-webhook.md b/app/sdks/php/docs/examples/projects/create-webhook.md
index 6eacda1fc0..1bf92c8925 100644
--- a/app/sdks/php/docs/examples/projects/create-webhook.md
+++ b/app/sdks/php/docs/examples/projects/create-webhook.md
@@ -12,4 +12,4 @@ $client
$projects = new Projects($client);
-$result = $projects->createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0);
\ No newline at end of file
+$result = $projects->createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 1);
\ No newline at end of file
diff --git a/app/sdks/php/docs/examples/projects/update-task.md b/app/sdks/php/docs/examples/projects/update-task.md
index 59308c5d6d..0d9f3fb7a6 100644
--- a/app/sdks/php/docs/examples/projects/update-task.md
+++ b/app/sdks/php/docs/examples/projects/update-task.md
@@ -12,4 +12,4 @@ $client
$projects = new Projects($client);
-$result = $projects->updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
\ No newline at end of file
+$result = $projects->updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
\ No newline at end of file
diff --git a/app/sdks/php/docs/examples/projects/update-webhook.md b/app/sdks/php/docs/examples/projects/update-webhook.md
index 6f176a01fb..a7e42dcce2 100644
--- a/app/sdks/php/docs/examples/projects/update-webhook.md
+++ b/app/sdks/php/docs/examples/projects/update-webhook.md
@@ -12,4 +12,4 @@ $client
$projects = new Projects($client);
-$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1);
\ No newline at end of file
+$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0);
\ No newline at end of file
diff --git a/app/sdks/php/docs/locale.md b/app/sdks/php/docs/locale.md
index 7635546481..5ea8ab37fb 100644
--- a/app/sdks/php/docs/locale.md
+++ b/app/sdks/php/docs/locale.md
@@ -3,7 +3,7 @@
## Get User Locale
```http request
-GET https://appwrite.test/v1/locale
+GET https://https://appwrite.io/v1/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 supported language. **
@@ -11,7 +11,7 @@ GET https://appwrite.test/v1/locale
## List Countries
```http request
-GET https://appwrite.test/v1/locale/countries
+GET https://https://appwrite.io/v1/locale/countries
```
** List of all countries. You can use the locale header to get the data in supported language. **
@@ -19,7 +19,7 @@ GET https://appwrite.test/v1/locale/countries
## List EU Countries
```http request
-GET https://appwrite.test/v1/locale/countries/eu
+GET https://https://appwrite.io/v1/locale/countries/eu
```
** List of all countries that are currently members of the EU. You can use the locale header to get the data in supported language. UK brexit date is currently set to 2019-10-31 and will be updated if and when needed. **
@@ -27,7 +27,7 @@ GET https://appwrite.test/v1/locale/countries/eu
## List Countries Phone Codes
```http request
-GET https://appwrite.test/v1/locale/countries/phones
+GET https://https://appwrite.io/v1/locale/countries/phones
```
** List of all countries phone codes. You can use the locale header to get the data in supported language. **
@@ -35,8 +35,8 @@ GET https://appwrite.test/v1/locale/countries/phones
## List of currencies
```http request
-GET https://appwrite.test/v1/locale/currencies
+GET https://https://appwrite.io/v1/locale/currencies
```
-** 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 supported language. **
+** 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 supported language. **
diff --git a/app/sdks/php/docs/projects.md b/app/sdks/php/docs/projects.md
index 56b64f8874..6db3e1b510 100644
--- a/app/sdks/php/docs/projects.md
+++ b/app/sdks/php/docs/projects.md
@@ -3,13 +3,13 @@
## List Projects
```http request
-GET https://appwrite.test/v1/projects
+GET https://https://appwrite.io/v1/projects
```
## Create Project
```http request
-POST https://appwrite.test/v1/projects
+POST https://https://appwrite.io/v1/projects
```
### Parameters
@@ -31,7 +31,7 @@ POST https://appwrite.test/v1/projects
## Get Project
```http request
-GET https://appwrite.test/v1/projects/{projectId}
+GET https://https://appwrite.io/v1/projects/{projectId}
```
### Parameters
@@ -43,7 +43,7 @@ GET https://appwrite.test/v1/projects/{projectId}
## Update Project
```http request
-PATCH https://appwrite.test/v1/projects/{projectId}
+PATCH https://https://appwrite.io/v1/projects/{projectId}
```
### Parameters
@@ -65,7 +65,7 @@ PATCH https://appwrite.test/v1/projects/{projectId}
## Delete Project
```http request
-DELETE https://appwrite.test/v1/projects/{projectId}
+DELETE https://https://appwrite.io/v1/projects/{projectId}
```
### Parameters
@@ -77,7 +77,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}
## List Keys
```http request
-GET https://appwrite.test/v1/projects/{projectId}/keys
+GET https://https://appwrite.io/v1/projects/{projectId}/keys
```
### Parameters
@@ -89,7 +89,7 @@ GET https://appwrite.test/v1/projects/{projectId}/keys
## Create Key
```http request
-POST https://appwrite.test/v1/projects/{projectId}/keys
+POST https://https://appwrite.io/v1/projects/{projectId}/keys
```
### Parameters
@@ -103,7 +103,7 @@ POST https://appwrite.test/v1/projects/{projectId}/keys
## Get Key
```http request
-GET https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
+GET https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
```
### Parameters
@@ -116,7 +116,7 @@ GET https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
## Update Key
```http request
-PUT https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
+PUT https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
```
### Parameters
@@ -131,7 +131,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
## Delete Key
```http request
-DELETE https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
+DELETE https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
```
### Parameters
@@ -144,7 +144,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
## Update Project OAuth
```http request
-PATCH https://appwrite.test/v1/projects/{projectId}/oauth
+PATCH https://https://appwrite.io/v1/projects/{projectId}/oauth
```
### Parameters
@@ -159,7 +159,7 @@ PATCH https://appwrite.test/v1/projects/{projectId}/oauth
## List Platforms
```http request
-GET https://appwrite.test/v1/projects/{projectId}/platforms
+GET https://https://appwrite.io/v1/projects/{projectId}/platforms
```
### Parameters
@@ -171,7 +171,7 @@ GET https://appwrite.test/v1/projects/{projectId}/platforms
## Create Platform
```http request
-POST https://appwrite.test/v1/projects/{projectId}/platforms
+POST https://https://appwrite.io/v1/projects/{projectId}/platforms
```
### Parameters
@@ -188,7 +188,7 @@ POST https://appwrite.test/v1/projects/{projectId}/platforms
## Get Platform
```http request
-GET https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
+GET https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
```
### Parameters
@@ -201,7 +201,7 @@ GET https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
## Update Platform
```http request
-PUT https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
+PUT https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
```
### Parameters
@@ -218,7 +218,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
## Delete Platform
```http request
-DELETE https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
+DELETE https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
```
### Parameters
@@ -231,7 +231,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
## List Tasks
```http request
-GET https://appwrite.test/v1/projects/{projectId}/tasks
+GET https://https://appwrite.io/v1/projects/{projectId}/tasks
```
### Parameters
@@ -243,7 +243,7 @@ GET https://appwrite.test/v1/projects/{projectId}/tasks
## Create Task
```http request
-POST https://appwrite.test/v1/projects/{projectId}/tasks
+POST https://https://appwrite.io/v1/projects/{projectId}/tasks
```
### Parameters
@@ -264,7 +264,7 @@ POST https://appwrite.test/v1/projects/{projectId}/tasks
## Get Task
```http request
-GET https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
+GET https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
```
### Parameters
@@ -277,7 +277,7 @@ GET https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
## Update Task
```http request
-PUT https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
+PUT https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
```
### Parameters
@@ -299,7 +299,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
## Delete Task
```http request
-DELETE https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
+DELETE https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
```
### Parameters
@@ -312,7 +312,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
## Get Project
```http request
-GET https://appwrite.test/v1/projects/{projectId}/usage
+GET https://https://appwrite.io/v1/projects/{projectId}/usage
```
### Parameters
@@ -324,7 +324,7 @@ GET https://appwrite.test/v1/projects/{projectId}/usage
## List Webhooks
```http request
-GET https://appwrite.test/v1/projects/{projectId}/webhooks
+GET https://https://appwrite.io/v1/projects/{projectId}/webhooks
```
### Parameters
@@ -336,7 +336,7 @@ GET https://appwrite.test/v1/projects/{projectId}/webhooks
## Create Webhook
```http request
-POST https://appwrite.test/v1/projects/{projectId}/webhooks
+POST https://https://appwrite.io/v1/projects/{projectId}/webhooks
```
### Parameters
@@ -354,7 +354,7 @@ POST https://appwrite.test/v1/projects/{projectId}/webhooks
## Get Webhook
```http request
-GET https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
+GET https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
```
### Parameters
@@ -367,7 +367,7 @@ GET https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
## Update Webhook
```http request
-PUT https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
+PUT https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
```
### Parameters
@@ -386,7 +386,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
## Delete Webhook
```http request
-DELETE https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
+DELETE https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
```
### Parameters
diff --git a/app/sdks/php/docs/storage.md b/app/sdks/php/docs/storage.md
index 74182191fd..fd9268ef8e 100644
--- a/app/sdks/php/docs/storage.md
+++ b/app/sdks/php/docs/storage.md
@@ -3,7 +3,7 @@
## List Files
```http request
-GET https://appwrite.test/v1/storage/files
+GET https://https://appwrite.io/v1/storage/files
```
** Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project files. [Learn more about different API modes](/docs/modes). **
@@ -20,7 +20,7 @@ GET https://appwrite.test/v1/storage/files
## Create File
```http request
-POST https://appwrite.test/v1/storage/files
+POST https://https://appwrite.io/v1/storage/files
```
** Create a new file. The user who creates the file will automatically be assigned to read and write access unless he has passed custom values for read and write arguments. **
@@ -37,7 +37,7 @@ POST https://appwrite.test/v1/storage/files
## Get File
```http request
-GET https://appwrite.test/v1/storage/files/{fileId}
+GET https://https://appwrite.io/v1/storage/files/{fileId}
```
** Get file by its unique ID. This endpoint response returns a JSON object with the file metadata. **
@@ -51,7 +51,7 @@ GET https://appwrite.test/v1/storage/files/{fileId}
## Update File
```http request
-PUT https://appwrite.test/v1/storage/files/{fileId}
+PUT https://https://appwrite.io/v1/storage/files/{fileId}
```
** Update file by its unique ID. Only users with write permissions have access to update this resource. **
@@ -68,7 +68,7 @@ PUT https://appwrite.test/v1/storage/files/{fileId}
## Delete File
```http request
-DELETE https://appwrite.test/v1/storage/files/{fileId}
+DELETE https://https://appwrite.io/v1/storage/files/{fileId}
```
** Delete a file by its unique ID. Only users with write permissions have access to delete this resource. **
@@ -82,7 +82,7 @@ DELETE https://appwrite.test/v1/storage/files/{fileId}
## Get File for Download
```http request
-GET https://appwrite.test/v1/storage/files/{fileId}/download
+GET https://https://appwrite.io/v1/storage/files/{fileId}/download
```
** Get file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory. **
@@ -96,7 +96,7 @@ GET https://appwrite.test/v1/storage/files/{fileId}/download
## Get File Preview
```http request
-GET https://appwrite.test/v1/storage/files/{fileId}/preview
+GET https://https://appwrite.io/v1/storage/files/{fileId}/preview
```
** Get file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets will return file icon image. You can also pass query string arguments for cutting and resizing your preview image. **
@@ -115,7 +115,7 @@ GET https://appwrite.test/v1/storage/files/{fileId}/preview
## Get File for View
```http request
-GET https://appwrite.test/v1/storage/files/{fileId}/view
+GET https://https://appwrite.io/v1/storage/files/{fileId}/view
```
** Get file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header. **
diff --git a/app/sdks/php/docs/teams.md b/app/sdks/php/docs/teams.md
index a444072aeb..e71ca83e8f 100644
--- a/app/sdks/php/docs/teams.md
+++ b/app/sdks/php/docs/teams.md
@@ -3,7 +3,7 @@
## List Teams
```http request
-GET https://appwrite.test/v1/teams
+GET https://https://appwrite.io/v1/teams
```
** Get a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project teams. [Learn more about different API modes](/docs/modes). **
@@ -20,7 +20,7 @@ GET https://appwrite.test/v1/teams
## Create Team
```http request
-POST https://appwrite.test/v1/teams
+POST https://https://appwrite.io/v1/teams
```
** Create a new team. The user who creates the team will automatically be assigned as the owner of the team. The team owner can invite new members, who will be able add new owners and update or delete the team from your project. **
@@ -35,7 +35,7 @@ POST https://appwrite.test/v1/teams
## Get Team
```http request
-GET https://appwrite.test/v1/teams/{teamId}
+GET https://https://appwrite.io/v1/teams/{teamId}
```
** Get team by its unique ID. All team members have read access for this resource. **
@@ -49,7 +49,7 @@ GET https://appwrite.test/v1/teams/{teamId}
## Update Team
```http request
-PUT https://appwrite.test/v1/teams/{teamId}
+PUT https://https://appwrite.io/v1/teams/{teamId}
```
** Update team by its unique ID. Only team owners have write access for this resource. **
@@ -64,7 +64,7 @@ PUT https://appwrite.test/v1/teams/{teamId}
## Delete Team
```http request
-DELETE https://appwrite.test/v1/teams/{teamId}
+DELETE https://https://appwrite.io/v1/teams/{teamId}
```
** Delete team by its unique ID. Only team owners have write access for this resource. **
@@ -78,7 +78,7 @@ DELETE https://appwrite.test/v1/teams/{teamId}
## Get Team Members
```http request
-GET https://appwrite.test/v1/teams/{teamId}/members
+GET https://https://appwrite.io/v1/teams/{teamId}/members
```
** Get team members by the team unique ID. All team members have read access for this list of resources. **
@@ -92,7 +92,7 @@ GET https://appwrite.test/v1/teams/{teamId}/members
## Create Team Membership
```http request
-POST https://appwrite.test/v1/teams/{teamId}/memberships
+POST https://https://appwrite.io/v1/teams/{teamId}/memberships
```
** Use this endpoint to invite a new member to your team. An email with a link to join the team will be sent to the new member email address. If member doesn't exists in the project it will be automatically created.
@@ -114,7 +114,7 @@ Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWA
## Delete Team Membership
```http request
-DELETE https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}
+DELETE https://https://appwrite.io/v1/teams/{teamId}/memberships/{inviteId}
```
** This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. **
@@ -129,7 +129,7 @@ DELETE https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}
## Create Team Membership (Resend)
```http request
-POST https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}/resend
+POST https://https://appwrite.io/v1/teams/{teamId}/memberships/{inviteId}/resend
```
** Use this endpoint to resend your invitation email for a user to join a team. **
@@ -145,7 +145,7 @@ POST https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}/resend
## Update Team Membership Status
```http request
-PATCH https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}/status
+PATCH https://https://appwrite.io/v1/teams/{teamId}/memberships/{inviteId}/status
```
** Use this endpoint to let user accept an invitation to join a team after he is being redirect back to your app from the invitation email. Use the success and failure URL's to redirect users back to your application after the request completes.
diff --git a/app/sdks/php/docs/users.md b/app/sdks/php/docs/users.md
index 9f3fbf530c..abd22e4884 100644
--- a/app/sdks/php/docs/users.md
+++ b/app/sdks/php/docs/users.md
@@ -3,7 +3,7 @@
## List Users
```http request
-GET https://appwrite.test/v1/users
+GET https://https://appwrite.io/v1/users
```
** Get a list of all the project users. You can use the query params to filter your results. **
@@ -20,7 +20,7 @@ GET https://appwrite.test/v1/users
## Create User
```http request
-POST https://appwrite.test/v1/users
+POST https://https://appwrite.io/v1/users
```
** Create a new user. **
@@ -36,7 +36,7 @@ POST https://appwrite.test/v1/users
## Get User
```http request
-GET https://appwrite.test/v1/users/{userId}
+GET https://https://appwrite.io/v1/users/{userId}
```
** Get user by its unique ID. **
@@ -50,7 +50,7 @@ GET https://appwrite.test/v1/users/{userId}
## Get User Logs
```http request
-GET https://appwrite.test/v1/users/{userId}/logs
+GET https://https://appwrite.io/v1/users/{userId}/logs
```
** Get user activity logs list by its unique ID. **
@@ -64,7 +64,7 @@ GET https://appwrite.test/v1/users/{userId}/logs
## Get User Prefs
```http request
-GET https://appwrite.test/v1/users/{userId}/prefs
+GET https://https://appwrite.io/v1/users/{userId}/prefs
```
** Get user preferences by its unique ID. **
@@ -78,7 +78,7 @@ GET https://appwrite.test/v1/users/{userId}/prefs
## Get User Sessions
```http request
-GET https://appwrite.test/v1/users/{userId}/sessions
+GET https://https://appwrite.io/v1/users/{userId}/sessions
```
** Get user sessions list by its unique ID. **
@@ -92,7 +92,7 @@ GET https://appwrite.test/v1/users/{userId}/sessions
## Delete User Sessions
```http request
-DELETE https://appwrite.test/v1/users/{userId}/sessions
+DELETE https://https://appwrite.io/v1/users/{userId}/sessions
```
** Delete all user sessions by its unique ID. **
@@ -106,7 +106,7 @@ DELETE https://appwrite.test/v1/users/{userId}/sessions
## Delete User Session
```http request
-DELETE https://appwrite.test/v1/users/{userId}/sessions/:session
+DELETE https://https://appwrite.io/v1/users/{userId}/sessions/:session
```
** Delete user sessions by its unique ID. **
@@ -121,7 +121,7 @@ DELETE https://appwrite.test/v1/users/{userId}/sessions/:session
## Update user status
```http request
-PATCH https://appwrite.test/v1/users/{userId}/status
+PATCH https://https://appwrite.io/v1/users/{userId}/status
```
** Update user status by its unique ID. **
diff --git a/app/sdks/php/src/Appwrite/Client.php b/app/sdks/php/src/Appwrite/Client.php
index 1d6a3faf46..0a07f6588d 100644
--- a/app/sdks/php/src/Appwrite/Client.php
+++ b/app/sdks/php/src/Appwrite/Client.php
@@ -28,7 +28,7 @@ class Client
*
* @var string
*/
- protected $endpoint = 'https://appwrite.test/v1';
+ protected $endpoint = 'https://https://appwrite.io/v1';
/**
* Global Headers
diff --git a/app/sdks/php/src/Appwrite/Services/Auth.php b/app/sdks/php/src/Appwrite/Services/Auth.php
index dae305144c..aa0c32c3f2 100644
--- a/app/sdks/php/src/Appwrite/Services/Auth.php
+++ b/app/sdks/php/src/Appwrite/Services/Auth.php
@@ -20,7 +20,7 @@ class Auth extends Service
* the only valid redirect URL's are the once from domains you have set when
* added your platforms in the console interface.
*
- * When accessing this route using Javascript from the browser, success and
+ * When accessing this route using JavaScript from the browser, success and
* failure parameter URLs are required. Appwrite server will respond with a
* 301 redirect status code and will set the user session cookie. This
* behavior is enforced because modern browsers are limiting 3rd party cookies
@@ -188,7 +188,7 @@ class Auth extends Service
* the only valid redirect URL's are the once from domains you have set when
* added your platforms in the console interface.
*
- * When accessing this route using Javascript from the browser, success and
+ * When accessing this route using JavaScript from the browser, success and
* failure parameter URLs are required. Appwrite server will respond with a
* 301 redirect status code and will set the user session cookie. This
* behavior is enforced because modern browsers are limiting 3rd party cookies
diff --git a/app/sdks/php/src/Appwrite/Services/Locale.php b/app/sdks/php/src/Appwrite/Services/Locale.php
index 1ae5ae0427..b03c1c3e73 100644
--- a/app/sdks/php/src/Appwrite/Services/Locale.php
+++ b/app/sdks/php/src/Appwrite/Services/Locale.php
@@ -90,9 +90,9 @@ class Locale extends Service
/**
* List of currencies
*
- * 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 supported language.
+ * 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 supported language.
*
* @throws Exception
* @return array
diff --git a/app/sdks/python/README.md b/app/sdks/python/README.md
index 59928110e1..2ced831bf7 100644
--- a/app/sdks/python/README.md
+++ b/app/sdks/python/README.md
@@ -1,7 +1,7 @@
-# [Appwrite SDK for Python](https://appwrite.io) [](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
+# Appwrite SDK for Python

-
+
**WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).**
@@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for

-**API Version: 0.1.15**
-
## Installation
To install via [PyPI](https://pypi.org/):
diff --git a/app/sdks/python/appwrite/client.py b/app/sdks/python/appwrite/client.py
index a9d3b11ada..0de0b48346 100644
--- a/app/sdks/python/appwrite/client.py
+++ b/app/sdks/python/appwrite/client.py
@@ -4,7 +4,7 @@ import requests
class Client:
def __init__(self):
self._self_signed = False
- self._endpoint = 'https://appwrite.test/v1'
+ self._endpoint = 'https://https://appwrite.io/v1'
self._global_headers = {
'content-type': '',
'x-sdk-version': 'appwrite:python:1.0.0',
diff --git a/app/sdks/ruby/README.md b/app/sdks/ruby/README.md
index 82892eac6b..4124c7550a 100644
--- a/app/sdks/ruby/README.md
+++ b/app/sdks/ruby/README.md
@@ -1,7 +1,7 @@
-# [Appwrite SDK for Ruby](https://appwrite.io) [](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
+# Appwrite SDK for Ruby

-
+
**WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).**
@@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for

-**API Version: 0.1.15**
-
## Installation
To install via [Gem](https://rubygems.org/):
diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php
index d1698a0d4c..8f2cd6043e 100644
--- a/app/tasks/sdks.php
+++ b/app/tasks/sdks.php
@@ -17,10 +17,11 @@ use Appwrite\SDK\Language\Dart;
$cli = new CLI();
$version = '0.2.0'; // Server version
+$warning = '**This SDK is compatible with Appwrite server version ' . $version . '. For older versions, please check previous releases.**';
$cli
->task('generate')
- ->action(function () use ($version) {
+ ->action(function () use ($warning) {
function getSSLPage($url)
{
$ch = curl_init();
@@ -43,7 +44,7 @@ $cli
'gitRepo' => 'git@github.com:appwrite/sdk-for-php.git',
'gitRepoName' => 'sdk-for-php',
'gitUserName' => 'appwrite',
- 'warning' => 'This SDK if compitable with Appwrite server version ' . $version . ' for older versions check previous releases.',
+ 'warning' => $warning,
'platform' => 'server',
],
'js' => [
@@ -53,7 +54,7 @@ $cli
'gitRepo' => 'git@github.com:appwrite/sdk-for-js.git',
'gitRepoName' => 'sdk-for-js',
'gitUserName' => 'appwrite',
- 'warning' => 'This SDK if compitable with Appwrite server version ' . $version . ' for older versions check previous releases.',
+ 'warning' => $warning,
'platform' => 'client',
],
'node' => [
@@ -63,7 +64,7 @@ $cli
'gitRepo' => 'git@github.com:appwrite/sdk-for-node.git',
'gitRepoName' => 'sdk-for-node',
'gitUserName' => 'appwrite',
- 'warning' => 'This SDK if compitable with Appwrite server version ' . $version . ' for older versions check previous releases.',
+ 'warning' => $warning,
'platform' => 'server',
],
'python' => [
diff --git a/app/views/console/comps/footer.phtml b/app/views/console/comps/footer.phtml
index 13b1b3e785..9e6d0383e8 100644
--- a/app/views/console/comps/footer.phtml
+++ b/app/views/console/comps/footer.phtml
@@ -4,7 +4,7 @@ $home = $this->getParam('home', '');
\ No newline at end of file
+
diff --git a/build.sh b/build.sh
index e4364c45d1..b3be98262e 100644
--- a/build.sh
+++ b/build.sh
@@ -8,7 +8,7 @@ echo "Updating git repository"
git fetch origin
git reset --hard origin/master
-if test `find "./app/db/GeoLite2/GeoLite2-Country.mmdb" -mmin +259200`
+if test $(find "./app/db/GeoLite2/GeoLite2-Country.mmdb" -mmin +259200)
then
printf "${RED}GEO country DB has not been updated for more than 6 months. Go to https://dev.maxmind.com/geoip/geoip2/geolite2/ for more info${NC}\n"
fi
@@ -23,8 +23,8 @@ composer update --ignore-platform-reqs --optimize-autoloader --no-dev --no-plugi
echo 'Starting build...'
-docker build -t appwrite/appwrite:$1 .
+docker build -t appwrite/appwrite:"$1" .
echo 'Pushing build to registry...'
-docker push appwrite/appwrite:$1
\ No newline at end of file
+docker push appwrite/appwrite:"$1"
diff --git a/composer.lock b/composer.lock
index 40ac77a0cc..365bdd5a2d 100644
--- a/composer.lock
+++ b/composer.lock
@@ -12,12 +12,12 @@
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-for-php.git",
- "reference": "456e2f153393bd67b7d706db1ec104ba211cf25a"
+ "reference": "ab0fe8f5669e6a8fc7a8d5e8c711f939412fb33e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/456e2f153393bd67b7d706db1ec104ba211cf25a",
- "reference": "456e2f153393bd67b7d706db1ec104ba211cf25a",
+ "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/ab0fe8f5669e6a8fc7a8d5e8c711f939412fb33e",
+ "reference": "ab0fe8f5669e6a8fc7a8d5e8c711f939412fb33e",
"shasum": ""
},
"require": {
@@ -39,7 +39,7 @@
"BSD-3-Clause"
],
"description": "Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)",
- "time": "2019-10-01T18:05:56+00:00"
+ "time": "2019-10-03T22:07:26+00:00"
},
{
"name": "appwrite/php-clamav",
@@ -92,7 +92,7 @@
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator",
- "reference": "21f848c7c8a6f3f721c23d9c8bbdf8fff886863d"
+ "reference": "0ece44cf81c04ebb8784a60830b088238189ec78"
},
"require": {
"ext-curl": "*",
@@ -122,7 +122,7 @@
}
],
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
- "time": "2019-10-01 17:57:36"
+ "time": "2019-10-04 05:50:53"
},
{
"name": "bacon/bacon-qr-code",
@@ -1994,7 +1994,7 @@
},
{
"name": "phpdocumentor/reflection-common",
- "version": "dev-master",
+ "version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
@@ -2046,40 +2046,36 @@
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "4.3.2",
+ "version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e"
+ "reference": "8fcadfe5f85c38705151c9ab23b4781f23e6a70e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e",
- "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8fcadfe5f85c38705151c9ab23b4781f23e6a70e",
+ "reference": "8fcadfe5f85c38705151c9ab23b4781f23e6a70e",
"shasum": ""
},
"require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0",
- "phpdocumentor/type-resolver": "~0.4 || ^1.0.0",
- "webmozart/assert": "^1.0"
+ "php": ">=7.1",
+ "phpdocumentor/type-resolver": "^0",
+ "webmozart/assert": "^1"
},
"require-dev": {
- "doctrine/instantiator": "^1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
+ "doctrine/instantiator": "^1",
+ "mockery/mockery": "^1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.x-dev"
+ "dev-master": "5.x-dev"
}
},
"autoload": {
"psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
+ "phpDocumentor\\Reflection\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -2093,35 +2089,34 @@
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2019-09-12T14:27:41+00:00"
+ "time": "2019-06-15T20:45:01+00:00"
},
{
"name": "phpdocumentor/type-resolver",
- "version": "dev-master",
+ "version": "0.7.x-dev",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9"
+ "reference": "6f6f66c1d4e14e9b0ad124cae85864dfa03104c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
- "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6f6f66c1d4e14e9b0ad124cae85864dfa03104c7",
+ "reference": "6f6f66c1d4e14e9b0ad124cae85864dfa03104c7",
"shasum": ""
},
"require": {
- "php": "^7.1",
- "phpdocumentor/reflection-common": "^2.0"
+ "php": ">=7.1",
+ "phpdocumentor/reflection-common": "~2.0.0-beta1"
},
"require-dev": {
- "ext-tokenizer": "^7.1",
"mockery/mockery": "~1",
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "~6"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-master": "0.x-dev"
}
},
"autoload": {
@@ -2140,26 +2135,26 @@
}
],
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
- "time": "2019-08-22T18:11:29+00:00"
+ "time": "2019-08-22T17:55:41+00:00"
},
{
"name": "phpspec/prophecy",
- "version": "dev-master",
+ "version": "1.9.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
- "reference": "bcdce71d674f4f7b86df0ff3a418d43b7fe141f7"
+ "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bcdce71d674f4f7b86df0ff3a418d43b7fe141f7",
- "reference": "bcdce71d674f4f7b86df0ff3a418d43b7fe141f7",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203",
+ "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.0.2",
"php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
+ "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
"sebastian/comparator": "^1.1|^2.0|^3.0",
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
},
@@ -2203,7 +2198,7 @@
"spy",
"stub"
],
- "time": "2019-09-09T15:23:21+00:00"
+ "time": "2019-10-03T11:07:50+00:00"
},
{
"name": "phpunit/php-code-coverage",
diff --git a/docker-compose.yml b/docker-compose.yml
index c45a3294f7..fd9632f0af 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -36,7 +36,7 @@ services:
- _APP_INFLUXDB_PORT=8086
- _APP_STATSD_HOST=telegraf
- _APP_STATSD_PORT=8125
-
+
mariadb:
image: appwrite/mariadb:1.0.0 # fix issues when upgrading using: mysql_upgrade -u root -p
restart: unless-stopped
@@ -63,7 +63,7 @@ services:
restart: unless-stopped
volumes:
- ./storage:/storage:rw
-
+
redis:
image: redis:5.0
restart: unless-stopped
@@ -78,4 +78,4 @@ services:
telegraf:
image: appwrite/telegraf:1.0.0
ports:
- - "8125:8125/udp"
\ No newline at end of file
+ - "8125:8125/udp"
diff --git a/docker/nginx.conf b/docker/nginx.conf
index d92e24fbb4..db1dc8c20f 100644
--- a/docker/nginx.conf
+++ b/docker/nginx.conf
@@ -88,7 +88,7 @@ http {
add_header Cache-Control "public";
}
- # CSS and Javascript
+ # CSS and JavaScript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
@@ -145,4 +145,4 @@ http {
deny all;
}
}
-}
\ No newline at end of file
+}
diff --git a/docs/references/auth/confirm-resend.md b/docs/references/auth/confirm-resend.md
new file mode 100644
index 0000000000..420f9bc113
--- /dev/null
+++ b/docs/references/auth/confirm-resend.md
@@ -0,0 +1,3 @@
+This endpoint allows the user to request your app to resend him his email confirmation message. The redirect arguments acts the same way as in /auth/register endpoint.
+
+Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.
\ No newline at end of file
diff --git a/docs/references/auth/confirm.md b/docs/references/auth/confirm.md
new file mode 100644
index 0000000000..1826e605aa
--- /dev/null
+++ b/docs/references/auth/confirm.md
@@ -0,0 +1 @@
+Use this endpoint to complete the confirmation of the user account email address. Both the **userId** and **token** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the /auth/register endpoint.
\ No newline at end of file
diff --git a/docs/references/auth/login.md b/docs/references/auth/login.md
new file mode 100644
index 0000000000..1bbd0fbdb7
--- /dev/null
+++ b/docs/references/auth/login.md
@@ -0,0 +1,5 @@
+Allow the user to login into his account by providing a valid email and password combination. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed.
+
+Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.
+
+When accessing this route using JavaScript from the browser, success and failure parameter URLs are required. Appwrite server will respond with a 301 redirect status code and will set the user session cookie. This behavior is enforced because modern browsers are limiting 3rd party cookies in XHR of fetch requests to protect user privacy.
\ No newline at end of file
diff --git a/docs/references/auth/logout-by-session.md b/docs/references/auth/logout-by-session.md
new file mode 100644
index 0000000000..4184532fd9
--- /dev/null
+++ b/docs/references/auth/logout-by-session.md
@@ -0,0 +1 @@
+Use this endpoint to log out the currently logged in user from all his account sessions across all his different devices. When using the option id argument, only the session unique ID provider will be deleted.
\ No newline at end of file
diff --git a/docs/references/auth/logout.md b/docs/references/auth/logout.md
new file mode 100644
index 0000000000..534b191187
--- /dev/null
+++ b/docs/references/auth/logout.md
@@ -0,0 +1 @@
+Use this endpoint to log out the currently logged in user from his account. When succeed this endpoint will delete the user session and remove the session secret cookie from the user client.
\ No newline at end of file
diff --git a/docs/references/auth/recovery-reset.md b/docs/references/auth/recovery-reset.md
new file mode 100644
index 0000000000..8d1336450a
--- /dev/null
+++ b/docs/references/auth/recovery-reset.md
@@ -0,0 +1,3 @@
+Use this endpoint to complete the user account password reset. Both the **userId** and **token** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the /auth/recovery endpoint.
+
+Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.
\ No newline at end of file
diff --git a/docs/references/auth/recovery.md b/docs/references/auth/recovery.md
new file mode 100644
index 0000000000..e15db5ac6b
--- /dev/null
+++ b/docs/references/auth/recovery.md
@@ -0,0 +1 @@
+Sends the user an email with a temporary secret token for password reset. When the user clicks the confirmation link he is redirected back to your app password reset redirect URL with a secret token and email address values attached to the URL query string. Use the query string params to submit a request to the /auth/password/reset endpoint to complete the process.
\ No newline at end of file
diff --git a/docs/references/auth/register.md b/docs/references/auth/register.md
new file mode 100644
index 0000000000..a5195eef10
--- /dev/null
+++ b/docs/references/auth/register.md
@@ -0,0 +1,7 @@
+Use this endpoint to allow a new user to register an account in your project. Use the success and failure URL's to redirect users back to your application after signup completes.
+
+If registration completes successfully user will be sent with a confirmation email in order to confirm he is the owner of the account email address. Use the confirmation parameter to redirect the user from the confirmation email back to your app. When the user is redirected, use the /auth/confirm endpoint to complete the account confirmation.
+
+Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.
+
+When accessing this route using JavaScript from the browser, success and failure parameter URLs are required. Appwrite server will respond with a 301 redirect status code and will set the user session cookie. This behavior is enforced because modern browsers are limiting 3rd party cookies in XHR of fetch requests to protect user privacy.
\ No newline at end of file
diff --git a/docs/AddOAuthProvider.md b/docs/tutorials/add-oauth-provider.md
similarity index 71%
rename from docs/AddOAuthProvider.md
rename to docs/tutorials/add-oauth-provider.md
index bca7d3bc82..bbb20e138f 100644
--- a/docs/AddOAuthProvider.md
+++ b/docs/tutorials/add-oauth-provider.md
@@ -1,28 +1,31 @@
# Adding a New OAuth Provider
-This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [code of conduct](../CODE_OF_CONDUCT.md) and the [contributing guide](../CONTRIBUTING.md).
+This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](../CODE_OF_CONDUCT.md) and the [Contributing Guide](../CONTRIBUTING.md).
## Getting Started
### Agenda
-OAuth providers help users to log in easily to apps and websites without the need to provide passwords or any other type of credentials. Appwrite goal is to have support from as many **major** OAuth providers as possible.
+OAuth providers help users to log in easily to apps and websites without the need to provide passwords or any other type of credentials. Appwrite's goal is to have support from as many **major** OAuth providers as possible.
As of the writing of these lines, we do not accept any minor OAuth providers. For us to accept some smaller and potentially unlimited number of OAuth providers, some product design and software architecture changes must be applied first.
### List Your new Provider
-The first step to follow in adding a new OAuth provider is to add it to the list in providers config file array, located at:
+The first step in adding a new OAuth provider is to add it to the list in providers config file array, located at:
```
./app/config/providers.php
```
-Make sure to fill all data needed and that your provider array key name is in camelCase format and has no spaces or special characters.
+Make sure to fill all data needed and that your provider array key name:
+
+- is in camelCase format
+- has no spaces or special characters.
### Add Provider Logo
-Add a logo image to your new provider in this path: `./public/images/oauth`. Your logo should be a png 100×100px file with the name of your provider (all lowercase). Please make sure to leave about 20px padding around the logo to be consistent with other logos.
+Add a logo image to your new provider in this path: `./public/images/oauth`. Your logo should be a png 100×100px file with the name of your provider (all lowercase). Please make sure to leave about 30px padding around the logo to be consistent with other logos.
### Add Provider Class
@@ -36,7 +39,7 @@ Create a new class that extends the basic OAuth provider abstract class in this
Note that the class name should start with a capital letter as PHP FIG standards suggest.
-Once a new class is created, you can start to implement your new provider's login flow. The best way to do this right is to have a look at another provider's implementation and try to follow the same standards.
+Once a new class is created, you can start to implement your new provider's login flow. The best way to do this corrrectly is to have a look at another provider's implementation and try to follow the same standards.
Please mention in your documentation what resources or API docs you used to implement the provider's OAuth protocol.
@@ -46,4 +49,4 @@ After you finished adding your new provider to Appwrite you should be able to se
Add credentials and check both a successful and a failed login (where the user rejects integration on provider page).
-If everything goes well, just send us the pull request and be ready to respond to any feedback which can arise during our code review.
+If everything goes well, just submit a pull request and be ready to respond to any feedback which can arise during our code review.
diff --git a/docs/EnviornementVariables.md b/docs/tutorials/environment-variables.md
similarity index 66%
rename from docs/EnviornementVariables.md
rename to docs/tutorials/environment-variables.md
index cd2d55ea92..d4ab417a0c 100644
--- a/docs/EnviornementVariables.md
+++ b/docs/tutorials/environment-variables.md
@@ -6,15 +6,15 @@ Appwrite environment variables allow you to edit your server setup configuration
### _APP_ENV
-Set your server running environment. By default the var is set to 'development' when deploying to production, change to: 'production'.
+Set your server running environment. By default the var is set to 'development'. When deploying to production, change it to: 'production'.
### _APP_OPTIONS_ABUSE
-Allows you to disabled abuse checks and API rate limiting. By default set to 'enabled'. To cancel the abuse checking set to 'disabled'. It is not recommended to disable this check-in production environment.
+Allows you to disable abuse checks and API rate limiting. By default set to 'enabled'. To cancel the abuse checking, set to 'disabled'. It is not recommended to disable this check in a production environment.
### _APP_OPENSSL_KEY_V1
-This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server is encrypting all secret data on your server like webhooks HTTP passwords, user sessions, and the storage files. The var is not set by default, if you wish to take advantage of Appwrite encryption capabilities you should change it and make sure to keep it a secret.
+This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server encrypts all secret data on your server like webhooks, HTTP passwords, user sessions, and storage files. The var is not set by default, if you wish to take advantage of Appwrite encryption capabilities you should change it and make sure to keep it a secret.
### _APP_CONSOLE_WHITELIST_EMAILS
@@ -28,13 +28,13 @@ To enable this option, pass a list of allowed email domains separated by a comma
### _APP_CONSOLE_WHITELIST_IPS
-This last option available allows you to restrict access to Appwrite console for users sharing the same set op IP addresses. This option is very useful for team working with a VPN service or a company IP.
+This last option allows you to restrict access to Appwrite console for users sharing the same set op IP addresses. This option is very useful for team working with a VPN service or a company IP.
-To enable activate this option, pass a list of allowed IP addresses separated by a comma.
+To enable/activate this option, pass a list of allowed IP addresses separated by a comma.
## Redis Server
-Appwrite is using a Redis server for managing cache, queues and scheduled tasks. The Redis env vars are used to allow Appwrite server to connect to the Redis container.
+Appwrite uses a Redis server for managing cache, queues and scheduled tasks. The Redis env vars are used to allow Appwrite server to connect to the Redis container.
### _APP_REDIS_HOST
@@ -70,7 +70,7 @@ MariaDB server database schema. Default value is: 'appwrite'
## InfluxDB
-Appwrite is using an InfluxDB server for managing time-series data and server stats. The InfluxDB env vars are used to allow Appwrite server to connect to the InfluxDB container.
+Appwrite uses an InfluxDB server for managing time-series data and server stats. The InfluxDB env vars are used to allow Appwrite server to connect to the InfluxDB container.
### _APP_INFLUXDB_HOST
@@ -82,7 +82,7 @@ InfluxDB server TCP port. Default value is: '8086'
## StatsD
-Appwrite is using a StatsD server for aggregating and sending stats data over a fast UDP connection. The StatsD env vars are used to allow Appwrite server to connect to the StatsD container.
+Appwrite uses a StatsD server for aggregating and sending stats data over a fast UDP connection. The StatsD env vars are used to allow Appwrite server to connect to the StatsD container.
### _APP_INFLUXDB_HOST
@@ -116,4 +116,4 @@ SMTP server user name. Empty by default.
### _APP_SMTP_PASSWORD
-SMTP server user password. Empty by default.
\ No newline at end of file
+SMTP server user password. Empty by default.
diff --git a/package-lock.json b/package-lock.json
index 82fc5d86f2..081a3b7fd6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -834,9 +834,9 @@
}
},
"appwrite": {
- "version": "1.0.21",
- "resolved": "https://registry.npmjs.org/appwrite/-/appwrite-1.0.21.tgz",
- "integrity": "sha512-NfNG9JQkOQypanMKOGzPzHVTZP1MTDipbTkRveIfmNd0W25OAqpE1up9f7KHaAi8yha1uyqkYW6l9QgjECZMEw==",
+ "version": "1.0.22",
+ "resolved": "https://registry.npmjs.org/appwrite/-/appwrite-1.0.22.tgz",
+ "integrity": "sha512-ofwb9opdkoY+AV8W2AkZY1z7gAqRlBZhbFj4ZMC9+UYhRAtLfaGnuyfRaWIKMFt7DII2Or261newdlwL/R2NsQ==",
"dev": true
},
"archy": {
@@ -2517,7 +2517,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"aproba": {
"version": "1.2.0",
@@ -2932,7 +2933,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -2988,6 +2990,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -3031,12 +3034,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
}
}
},
diff --git a/package.json b/package.json
index 1a46663e6e..d106d2ce2e 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"license": "BSD-3-Clause",
"repository": "public",
"devDependencies": {
- "appwrite": "^1.0.21",
+ "appwrite": "^1.0.22",
"gulp": "^4.0.0",
"gulp-clean-css": "^4.0.0",
"gulp-concat": "2.5.2",
diff --git a/public/images/oauth/amazon.png b/public/images/oauth/amazon.png
new file mode 100644
index 0000000000..9ce2da81e0
Binary files /dev/null and b/public/images/oauth/amazon.png differ
diff --git a/public/images/oauth/apple.png b/public/images/oauth/apple.png
new file mode 100644
index 0000000000..b0fdfd14f0
Binary files /dev/null and b/public/images/oauth/apple.png differ
diff --git a/public/images/oauth/bitbucket.png b/public/images/oauth/bitbucket.png
index 8c7442e9e7..afc980fbe3 100644
Binary files a/public/images/oauth/bitbucket.png and b/public/images/oauth/bitbucket.png differ
diff --git a/public/images/oauth/dropbox.png b/public/images/oauth/dropbox.png
new file mode 100644
index 0000000000..82fe965d61
Binary files /dev/null and b/public/images/oauth/dropbox.png differ
diff --git a/public/images/oauth/gitlab.png b/public/images/oauth/gitlab.png
index 35cb5e9dab..2ed27d2c41 100644
Binary files a/public/images/oauth/gitlab.png and b/public/images/oauth/gitlab.png differ
diff --git a/public/images/oauth/google.png b/public/images/oauth/google.png
index de66a7b99c..eeefddc814 100644
Binary files a/public/images/oauth/google.png and b/public/images/oauth/google.png differ
diff --git a/public/images/oauth/microsoft.png b/public/images/oauth/microsoft.png
new file mode 100644
index 0000000000..17aa8af89b
Binary files /dev/null and b/public/images/oauth/microsoft.png differ
diff --git a/public/images/oauth/slack.png b/public/images/oauth/slack.png
new file mode 100644
index 0000000000..9de2cbc5b3
Binary files /dev/null and b/public/images/oauth/slack.png differ
diff --git a/public/images/oauth/vk.png b/public/images/oauth/vk.png
new file mode 100644
index 0000000000..481303ab7c
Binary files /dev/null and b/public/images/oauth/vk.png differ
diff --git a/src/Auth/OAuth.php b/src/Auth/OAuth.php
index 70d7f448cf..a96ebb7a68 100644
--- a/src/Auth/OAuth.php
+++ b/src/Auth/OAuth.php
@@ -78,6 +78,20 @@ abstract class OAuth
*/
abstract public function getUserName(string $accessToken):string;
+ // The parseState function was designed specifically for Amazon OAuth Adapter to override.
+ // The response from Amazon is html encoded and hence it needs to be html_decoded before
+ // json_decoding
+
+ /**
+ * @param $state
+ *
+ * @return json
+ */
+ public function parseState(string $state)
+ {
+ return json_decode($state, true);
+ }
+
/**
* @param string $method
* @param string $url
diff --git a/src/Auth/OAuth/Amazon.php b/src/Auth/OAuth/Amazon.php
new file mode 100644
index 0000000000..71bb8aaee6
--- /dev/null
+++ b/src/Auth/OAuth/Amazon.php
@@ -0,0 +1,138 @@
+appID).
+ '&redirect_uri='.urlencode($this->callback).
+ '&response_type=code'.
+ '&state='.urlencode(json_encode($this->state)).
+ '&scope=profile';
+ }
+
+ /**
+ * @param string $code
+ *
+ * @return string
+ */
+ public function getAccessToken(string $code): string
+ {
+ $headers[] = 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8';
+ $accessToken = $this->request(
+ 'POST',
+ 'https://api.amazon.com/auth/o2/token',
+ $headers,
+ 'code=' . urlencode($code) .
+ '&client_id=' . urlencode($this->appID) .
+ '&client_secret=' . urlencode($this->appSecret).
+ '&redirect_uri='.urlencode($this->callback).
+ '&grant_type=authorization_code'
+ );
+ $accessToken = json_decode($accessToken, true);
+
+ if (isset($accessToken['access_token'])) {
+ return $accessToken['access_token'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserID(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['user_id'])) {
+ return $user['user_id'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserEmail(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['email'])) {
+ return $user['email'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserName(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['name'])) {
+ return $user['name'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return array
+ */
+ protected function getUser(string $accessToken): array
+ {
+ if (empty($this->user)) {
+ $user = $this->request('GET', 'https://api.amazon.com/user/profile?access_token='.urlencode($accessToken));
+ $this->user = json_decode($user, true);
+ }
+ return $this->user;
+ }
+}
diff --git a/src/Auth/OAuth/Apple.php b/src/Auth/OAuth/Apple.php
new file mode 100644
index 0000000000..fbe4b65b1a
--- /dev/null
+++ b/src/Auth/OAuth/Apple.php
@@ -0,0 +1,133 @@
+appID).
+ '&redirect_uri='.urlencode($this->callback).
+ '&state='.urlencode(json_encode($this->state)).
+ '&response_type=code'.
+ '&response_mode=form_post'.
+ '&scope=name+email';
+ }
+
+ /**
+ * @param string $code
+ *
+ * @return string
+ */
+ public function getAccessToken(string $code): string
+ {
+ $headers[] = 'Content-Type: application/x-www-form-urlencoded';
+ $accessToken = $this->request(
+ 'POST',
+ 'https://appleid.apple.com/auth/token',
+ $headers,
+ 'code='.urlencode($code).
+ '&client_id='.urlencode($this->appID).
+ '&client_secret='.urlencode($this->appSecret).
+ '&redirect_uri='.urlencode($this->callback).
+ '&grant_type=authorization_code'
+ );
+
+ var_dump($accessToken);
+ exit();
+
+ $accessToken = json_decode($accessToken, true);
+
+ if (isset($accessToken['access_token'])) {
+ return $accessToken['access_token'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserID(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['account_id'])) {
+ return $user['account_id'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserEmail(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['email'])) {
+ return $user['email'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserName(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['name'])) {
+ return $user['name']['display_name'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return array
+ */
+ protected function getUser(string $accessToken): array
+ {
+ if (empty($this->user)) {
+ $headers[] = 'Authorization: Bearer '. urlencode($accessToken);
+ $user = $this->request('POST', '', $headers);
+ $this->user = json_decode($user, true);
+ }
+
+ return $this->user;
+ }
+}
diff --git a/src/Auth/OAuth/Dropbox.php b/src/Auth/OAuth/Dropbox.php
new file mode 100644
index 0000000000..a4a6335f36
--- /dev/null
+++ b/src/Auth/OAuth/Dropbox.php
@@ -0,0 +1,128 @@
+appID).
+ '&redirect_uri='.urlencode($this->callback).
+ '&state='.urlencode(json_encode($this->state)).
+ '&response_type=code';
+ }
+
+ /**
+ * @param string $code
+ *
+ * @return string
+ */
+ public function getAccessToken(string $code): string
+ {
+ $headers[] = 'Content-Type: application/x-www-form-urlencoded';
+ $accessToken = $this->request(
+ 'POST',
+ 'https://api.dropboxapi.com/oauth2/token',
+ $headers,
+ 'code='.urlencode($code).
+ '&client_id='.urlencode($this->appID).
+ '&client_secret='.urlencode($this->appSecret).
+ '&redirect_uri='.urlencode($this->callback).
+ '&grant_type=authorization_code'
+ );
+
+ $accessToken = json_decode($accessToken, true);
+
+ if (isset($accessToken['access_token'])) {
+ return $accessToken['access_token'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserID(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['account_id'])) {
+ return $user['account_id'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserEmail(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['email'])) {
+ return $user['email'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserName(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['name'])) {
+ return $user['name']['display_name'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return array
+ */
+ protected function getUser(string $accessToken): array
+ {
+ if (empty($this->user)) {
+ $headers[] = 'Authorization: Bearer '. urlencode($accessToken);
+ $user = $this->request('POST', 'https://api.dropboxapi.com/2/users/get_current_account', $headers);
+ $this->user = json_decode($user, true);
+ }
+
+ return $this->user;
+ }
+}
diff --git a/src/Auth/OAuth/Gitlab.php b/src/Auth/OAuth/Gitlab.php
index fbf21a4bd3..fbc6df60fa 100644
--- a/src/Auth/OAuth/Gitlab.php
+++ b/src/Auth/OAuth/Gitlab.php
@@ -4,6 +4,9 @@ namespace Auth\OAuth;
use Auth\OAuth;
+// Reference Material
+// https://docs.gitlab.com/ee/api/oauth2.html
+
class Gitlab extends OAuth
{
/**
diff --git a/src/Auth/OAuth/Google.php b/src/Auth/OAuth/Google.php
index c07758d6b5..42f4357bd7 100644
--- a/src/Auth/OAuth/Google.php
+++ b/src/Auth/OAuth/Google.php
@@ -4,6 +4,10 @@ namespace Auth\OAuth;
use Auth\OAuth;
+// Reference Material
+// https://developers.google.com/oauthplayground/
+// https://developers.google.com/identity/protocols/OAuth2
+// https://developers.google.com/identity/protocols/OAuth2WebServer
class Google extends OAuth
{
/**
diff --git a/src/Auth/OAuth/Microsoft.php b/src/Auth/OAuth/Microsoft.php
new file mode 100644
index 0000000000..6bbf0bad83
--- /dev/null
+++ b/src/Auth/OAuth/Microsoft.php
@@ -0,0 +1,132 @@
+appID).
+ '&redirect_uri='.urlencode($this->callback).
+ '&state='.urlencode(json_encode($this->state)).
+ '&scope=offline_access+user.read'.
+ '&response_type=code'.
+ '&response_mode=query';
+ }
+
+ /**
+ * @param string $code
+ *
+ * @return string
+ */
+ public function getAccessToken(string $code): string
+ {
+ $headers[] = 'Content-Type: application/x-www-form-urlencoded';
+
+ $accessToken = $this->request(
+ 'POST',
+ 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
+ $headers,
+ 'code='.urlencode($code).
+ '&client_id='.urlencode($this->appID).
+ '&client_secret='.urlencode($this->appSecret).
+ '&redirect_uri='.urlencode($this->callback).
+ '&scope=offline_access+user.read'.
+ '&grant_type=authorization_code'
+ );
+
+ $accessToken = json_decode($accessToken, true);
+
+ if (isset($accessToken['access_token'])) {
+ return $accessToken['access_token'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserID(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['id'])) {
+ return $user['id'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserEmail(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['userPrincipalName'])) {
+ return $user['userPrincipalName'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserName(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['displayName'])) {
+ return $user['displayName'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return array
+ */
+ protected function getUser(string $accessToken): array
+ {
+ if (empty($this->user)) {
+ $headers[] = 'Authorization: Bearer '. urlencode($accessToken);
+ $user = $this->request('GET', 'https://graph.microsoft.com/v1.0/me', $headers);
+ $this->user = json_decode($user, true);
+ }
+
+ return $this->user;
+ }
+}
diff --git a/src/Auth/OAuth/Slack.php b/src/Auth/OAuth/Slack.php
new file mode 100644
index 0000000000..120dd4233d
--- /dev/null
+++ b/src/Auth/OAuth/Slack.php
@@ -0,0 +1,129 @@
+appID).
+ '&scope=identity.avatar+identity.basic+identity.email+identity.team'.
+ '&redirect_uri='.urlencode($this->callback).
+ '&state='.urlencode(json_encode($this->state));
+ }
+
+ /**
+ * @param string $code
+ *
+ * @return string
+ */
+ public function getAccessToken(string $code):string
+ {
+ // https://api.slack.com/docs/oauth#step_3_-_exchanging_a_verification_code_for_an_access_token
+ $accessToken = $this->request(
+ 'GET',
+ 'https://slack.com/api/oauth.access'.
+ '?client_id='.urlencode($this->appID).
+ '&client_secret='.urlencode($this->appSecret).
+ '&code='.urlencode($code).
+ '&redirect_uri='.urlencode($this->callback)
+ );
+
+ $accessToken = json_decode($accessToken, true); //
+
+ if (isset($accessToken['access_token'])) {
+ return $accessToken['access_token'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserID(string $accessToken):string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['user']['id'])) {
+ return $user['user']['id'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserEmail(string $accessToken):string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['user']['email'])) {
+ return $user['user']['email'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserName(string $accessToken):string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['user']['name'])) {
+ return $user['user']['name'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return array
+ */
+ protected function getUser(string $accessToken):array
+ {
+
+ if (empty($this->user)) {
+ // https://api.slack.com/methods/users.identity
+ $user = $this->request(
+ 'GET',
+ 'https://slack.com/api/users.identity?token='.urlencode($accessToken),
+ );
+
+ $this->user = json_decode($user, true);
+ }
+
+ return $this->user;
+ }
+}
diff --git a/src/Auth/OAuth/Vk.php b/src/Auth/OAuth/Vk.php
new file mode 100644
index 0000000000..ad860aff84
--- /dev/null
+++ b/src/Auth/OAuth/Vk.php
@@ -0,0 +1,150 @@
+appID).
+ '&redirect_uri='.urlencode($this->callback).
+ '&response_type=code'.
+ '&state='.urlencode(json_encode($this->state)).
+ '&v='.urlencode($this->version).
+ '&scope=openid+email';
+ }
+
+ /**
+ * @param string $code
+ *
+ * @return string
+ */
+ public function getAccessToken(string $code): string
+ {
+ $headers[] = 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8';
+ $accessToken = $this->request(
+ 'POST',
+ 'https://oauth.vk.com/access_token?',
+ $headers,
+ 'code=' . urlencode($code) .
+ '&client_id=' . urlencode($this->appID) .
+ '&client_secret=' . urlencode($this->appSecret).
+ '&redirect_uri='.urlencode($this->callback)
+ );
+ $accessToken = json_decode($accessToken, true);
+
+ if (isset($accessToken['email'])) {
+ $this->user['email'] = $accessToken['email'];
+ }
+
+ if (isset($accessToken['user_id'])) {
+ $this->user['user_id'] = $accessToken['user_id'];
+ }
+
+ if (isset($accessToken['access_token'])) {
+ return $accessToken['access_token'];
+ }
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserID(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['user_id'])) {
+ return $user['user_id'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserEmail(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['email'])) {
+ return $user['email'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return string
+ */
+ public function getUserName(string $accessToken): string
+ {
+ $user = $this->getUser($accessToken);
+
+ if (isset($user['name'])) {
+ return $user['name'];
+ }
+
+ return '';
+ }
+
+ /**
+ * @param string $accessToken
+ *
+ * @return array
+ */
+ protected function getUser(string $accessToken): array
+ {
+ if (empty($this->user['name'])) {
+ $user = $this->request(
+ 'GET',
+ 'https://api.vk.com/method/users.get?'.
+ 'v='.urlencode($this->version).
+ '&fields=id,name,email,first_name,last_name'.
+ '&access_token='.urlencode($accessToken)
+ );
+
+ $user = json_decode($user, true);
+ $this->user['name'] = $user['response'][0]['first_name'] ." ".$user['response'][0]['last_name'];
+ }
+ return $this->user;
+ }
+}