diff --git a/app/app.php b/app/app.php index 4e4af3987..02637ccec 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/locale/af.continents.php b/app/config/locale/af.continents.php new file mode 100644 index 000000000..5f64309e5 --- /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 000000000..b3c4838f3 --- /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 000000000..ae66ae30e --- /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/cz.continents.php b/app/config/locale/cz.continents.php new file mode 100644 index 000000000..d1e5bc36f --- /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 000000000..93393c30d --- /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 000000000..4162906ca --- /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/hu.continents.php b/app/config/locale/hu.continents.php new file mode 100644 index 000000000..57a88d6f7 --- /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 000000000..949313c35 --- /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 000000000..a4ca49b5c --- /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 09f377511..3997a4c50 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 cf8a339b1..ce4e56349 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 dfc8d1197..3cccea78e 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/ru.continents.php b/app/config/locale/ru.continents.php new file mode 100644 index 000000000..e07828bfb --- /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 000000000..2b54288a4 --- /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 000000000..49cd3f19e --- /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/sv.continents.php b/app/config/locale/sv.continents.php new file mode 100644 index 000000000..ba158cccf --- /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 000000000..7bfc8f22a --- /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 000000000..9f34de341 --- /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 000000000..4b16c1b80 --- /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 000000000..83d83b29d --- /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 000000000..d5b08bca6 --- /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 000000000..e0a6c4035 --- /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 000000000..eed6cf69d --- /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 000000000..0b5cec7b2 --- /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/cz.email.auth.confirm.tpl b/app/config/locale/templates/cz.email.auth.confirm.tpl new file mode 100644 index 000000000..481b440ab --- /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 000000000..8e8a8dc5c --- /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 000000000..d8a3e6a2b --- /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/hu.email.auth.confirm.tpl b/app/config/locale/templates/hu.email.auth.confirm.tpl new file mode 100644 index 000000000..680e0da2e --- /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 000000000..6dce55a63 --- /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 000000000..564d55bd0 --- /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 8106722d8..fedbe8018 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 be7becac4..9ec03cf39 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 6a5adb5cb..2756b1569 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/ru.email.auth.confirm.tpl b/app/config/locale/templates/ru.email.auth.confirm.tpl new file mode 100644 index 000000000..29993e988 --- /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 000000000..41de21d09 --- /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 000000000..680278e42 --- /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/sv.email.auth.confirm.tpl b/app/config/locale/templates/sv.email.auth.confirm.tpl new file mode 100644 index 000000000..0b1e4451f --- /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 000000000..604e94227 --- /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 000000000..dba922155 --- /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 000000000..25a34d067 --- /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 000000000..b9c417c26 --- /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 000000000..455a6cf25 --- /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 000000000..40c7d496e --- /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 000000000..387c537f5 --- /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 000000000..57c704f0c --- /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.email.auth.confirm.tpl b/app/config/locale/templates/zh.email.auth.confirm.tpl new file mode 100644 index 000000000..a557d451c --- /dev/null +++ b/app/config/locale/templates/zh.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.email.auth.invitation.tpl b/app/config/locale/templates/zh.email.auth.invitation.tpl new file mode 100644 index 000000000..7ee56a401 --- /dev/null +++ b/app/config/locale/templates/zh.email.auth.invitation.tpl @@ -0,0 +1,27 @@ + + +
+ 你好, +
+
+ {{owner}}邀请您加入{{project}}项目的{{team}}小组。 +
+
+ 请点击下方的链接加入{{team}}小组: +
+ {{redirect}} +
+
+ 如果您没有加入该小组的计划,请忽略本邮件。 +
+
+ 谢谢。 +
+ 来自 {{project}} +
diff --git a/app/config/locale/templates/zh.email.auth.recovery.tpl b/app/config/locale/templates/zh.email.auth.recovery.tpl new file mode 100644 index 000000000..8a473b553 --- /dev/null +++ b/app/config/locale/templates/zh.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 000000000..bb6e5d9ad --- /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 000000000..f8f8de74a --- /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 000000000..b444b1153 --- /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.continents.php b/app/config/locale/zh.continents.php new file mode 100644 index 000000000..625302189 --- /dev/null +++ b/app/config/locale/zh.continents.php @@ -0,0 +1,11 @@ + '非洲', + 'AN' => '南极洲', + 'AS' => '亚洲', + 'EU' => '欧洲', + 'NA' => '北美洲', + 'OC' => '大洋洲', + 'SA' => '南美洲', +]; diff --git a/app/config/locale/zh.countries.php b/app/config/locale/zh.countries.php new file mode 100644 index 000000000..c5c722458 --- /dev/null +++ b/app/config/locale/zh.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.php b/app/config/locale/zh.php new file mode 100644 index 000000000..b4499416f --- /dev/null +++ b/app/config/locale/zh.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.countries.php', + 'continents' => include 'zh.continents.php', +]; diff --git a/app/config/providers.php b/app/config/providers.php index aad044270..f831183f7 100644 --- a/app/config/providers.php +++ b/app/config/providers.php @@ -46,6 +46,11 @@ 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', diff --git a/app/controllers/auth.php b/app/controllers/auth.php index 5d07bef47..75d7da05f 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -24,7 +24,7 @@ $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', "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.cookies', true) ->label('abuse-limit', 10) ->param('email', '', function () { @@ -322,7 +322,7 @@ $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', "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.cookies', true) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},email:{param-email}') diff --git a/app/controllers/database.php b/app/controllers/database.php index e27d1feff..a9de951e8 100644 --- a/app/controllers/database.php +++ b/app/controllers/database.php @@ -428,6 +428,8 @@ $utopia->post('/v1/database/:collectionId/documents') }, '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 +437,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()) { diff --git a/app/init.php b/app/init.php index 7ea75a3c6..a2e173171 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 = ['cat', 'de', 'en', 'es', 'fi', 'fr', 'gr', 'he', 'hi', 'id', 'it', 'nl', /* 'no',*/ 'pt-br', 'pt-pt', 'ro', 'tr', 'ua', 'zh']; const APP_PAGING_LIMIT = 15; +const APP_VERSION_STABLE = '0.2.0'; $register = new Registry(); $request = new Request(); @@ -143,8 +144,10 @@ Locale::setLanguage('nl', include __DIR__.'/config/locale/nl.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('tr', include __DIR__.'/config/locale/tr.php'); Locale::setLanguage('ua', include __DIR__.'/config/locale/ua.php'); +Locale::setLanguage('zh', include __DIR__.'/config/locale/zh.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 866ec3195..de99069bd 100644 --- a/app/sdks/dart/README.md +++ b/app/sdks/dart/README.md @@ -1,7 +1,7 @@ -# [Appwrite SDK for Dart](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](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 ![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) **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 ![Appwrite](https://appwrite.io/images/github.png) -**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 2dd5f8f4a..77a4092f0 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 45c0be71a..0db9f429d 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 29f87ac5e..406d25bbb 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 03802a4e1..395936655 100644 --- a/app/sdks/js/README.md +++ b/app/sdks/js/README.md @@ -1,9 +1,9 @@ -# [Appwrite SDK for Javascript](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](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 ![License](https://img.shields.io/github/license/appwrite/sdk-for-js.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) -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 ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** - ## Installation To install via [NPM](https://www.npmjs.com/): diff --git a/app/sdks/js/docs/examples/projects/create-task.md b/app/sdks/js/docs/examples/projects/create-task.md index 433819846..3262b4d9f 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/create-webhook.md b/app/sdks/js/docs/examples/projects/create-webhook.md index 66a76c26c..1136c5eed 100644 --- a/app/sdks/js/docs/examples/projects/create-webhook.md +++ b/app/sdks/js/docs/examples/projects/create-webhook.md @@ -4,7 +4,7 @@ sdk .setProject('') ; -let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0); +let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 1); 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 3544916e3..54116a41d 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/docs/examples/projects/update-webhook.md b/app/sdks/js/docs/examples/projects/update-webhook.md index f58095253..ce876d5a6 100644 --- a/app/sdks/js/docs/examples/projects/update-webhook.md +++ b/app/sdks/js/docs/examples/projects/update-webhook.md @@ -4,7 +4,7 @@ sdk .setProject('') ; -let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1); +let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/src/sdk.js b/app/sdks/js/src/sdk.js index 5c6d2dd8b..f142af9c2 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 1b8e4af97..4bd61f2d4 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;indexcreateWebhook('[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/locale.md b/app/sdks/php/docs/locale.md index 763554648..5ea8ab37f 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 56b64f887..6db3e1b51 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 74182191f..fd9268ef8 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 a444072ae..e71ca83e8 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 9f3fbf530..abd22e488 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 1d6a3faf4..0a07f6588 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 dae305144..aa0c32c3f 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 1ae5ae042..b03c1c3e7 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 59928110e..2ced831bf 100644 --- a/app/sdks/python/README.md +++ b/app/sdks/python/README.md @@ -1,7 +1,7 @@ -# [Appwrite SDK for Python](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](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 ![License](https://img.shields.io/github/license/appwrite/sdk-for-python.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) **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 ![Appwrite](https://appwrite.io/images/github.png) -**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 a9d3b11ad..0de0b4834 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 82892eac6..4124c7550 100644 --- a/app/sdks/ruby/README.md +++ b/app/sdks/ruby/README.md @@ -1,7 +1,7 @@ -# [Appwrite SDK for Ruby](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](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 ![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) **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 ![Appwrite](https://appwrite.io/images/github.png) -**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 d1698a0d4..8f2cd6043 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 13b1b3e78..9e6d0383e 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/docs/EnviornementVariables.md b/docs/EnviornementVariables.md deleted file mode 100644 index cd2d55ea9..000000000 --- a/docs/EnviornementVariables.md +++ /dev/null @@ -1,119 +0,0 @@ -# Environment Variables - -Appwrite environment variables allow you to edit your server setup configuration and customize it. You can easily change the environment variables by changing them when running Appwrite using Docker CLI or Docker-Compose. - -## General Options - -### _APP_ENV - -Set your server running environment. By default the var is set to 'development' when deploying to production, change 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. - -### _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. - -### _APP_CONSOLE_WHITELIST_EMAILS - -This option is very useful for small teams or sole developers. To enable it, pass a list of allowed email addresses separated by a comma. - -### _APP_CONSOLE_WHITELIST_DOMAINS - -This option allows you to restrict access to Appwrite console for users sharing the same email domains. This option is very useful for team working with company emails domain. - -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. - -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. - -### _APP_REDIS_HOST - -Redis server hostname address. Default value is: 'redis' - -### _APP_REDIS_PORT - -Redis server TCP port. Default value is: '6379' - -## MariaDB Server - -Appwrite is using a MariaDB server for managing persistent database data. The MariaDB env vars are used to allow Appwrite server to connect to the MariaDB container. - -### _APP_DB_HOST - -MariaDB server host name address. Default value is: 'mariadb' - -### _APP_DB_PORT - -MariaDB server TCP port. Default value is: '3306' - -### _APP_DB_USER - -MariaDB server user name. Default value is: 'root' - -### _APP_DB_PASS - -MariaDB server user password. Default value is: 'password' - -### _APP_DB_SCHEMA - -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. - -### _APP_INFLUXDB_HOST - -InfluxDB server host name address. Default value is: 'influxdb' - -### _APP_INFLUXDB_PORT - -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. - -### _APP_INFLUXDB_HOST - -StatsD server host name address. Default value is: 'telegraf' - -### _APP_INFLUXDB_PORT - -StatsD server TCP port. Default value is: '8125' - -## SMTP - -Appwrite is using an SMTP server for emailing your projects users and server admins. The SMTP env vars are used to allow Appwrite server to connect to the SMTP container. - -If running in production, it might be easier to use a 3rd party SMTP server as it might be a little more difficult to set up a production SMTP server that will not send all your emails into your user's SPAM folder. - -### _APP_SMTP_HOST - -SMTP server host name address. Default value is: 'smtp' - -### _APP_SMTP_PORT - -SMTP server TCP port. Default value is: '25' - -### _APP_SMTP_SECURE - -SMTP secure connection protocol. Empty by default, Change to 'tls' if running on a secure connection. - -### _APP_SMTP_USERNAME - -SMTP server user name. Empty by default. - -### _APP_SMTP_PASSWORD - -SMTP server user password. Empty by default. \ No newline at end of file diff --git a/public/images/oauth/bitbucket.png b/public/images/oauth/bitbucket.png index 8c7442e9e..afc980fbe 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 index 20df74c10..82fe965d6 100644 Binary files a/public/images/oauth/dropbox.png and b/public/images/oauth/dropbox.png differ diff --git a/public/images/oauth/gitlab.png b/public/images/oauth/gitlab.png index 35cb5e9da..2ed27d2c4 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 de66a7b99..eeefddc81 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 index 9e40f2342..17aa8af89 100644 Binary files a/public/images/oauth/microsoft.png 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 000000000..9de2cbc5b Binary files /dev/null and b/public/images/oauth/slack.png differ diff --git a/src/Auth/OAuth/Slack.php b/src/Auth/OAuth/Slack.php new file mode 100644 index 000000000..120dd4233 --- /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; + } +}