diff options
Diffstat (limited to 'client/angular.json')
-rw-r--r-- | client/angular.json | 186 |
1 files changed, 175 insertions, 11 deletions
diff --git a/client/angular.json b/client/angular.json index 477cd597f..a64596a08 100644 --- a/client/angular.json +++ b/client/angular.json | |||
@@ -7,11 +7,107 @@ | |||
7 | "root": "", | 7 | "root": "", |
8 | "sourceRoot": "src", | 8 | "sourceRoot": "src", |
9 | "projectType": "application", | 9 | "projectType": "application", |
10 | "i18n": { | ||
11 | "sourceLocale": { | ||
12 | "code": "en", | ||
13 | "baseHref": "/client/en-US/" | ||
14 | }, | ||
15 | "locales": { | ||
16 | "hu": { | ||
17 | "translation": "src/locale/angular.hu-HU.xlf", | ||
18 | "baseHref": "/client/hu-HU/" | ||
19 | }, | ||
20 | "th": { | ||
21 | "translation": "src/locale/angular.th-TH.xlf", | ||
22 | "baseHref": "/client/th-TH/" | ||
23 | }, | ||
24 | "fi": { | ||
25 | "translation": "src/locale/angular.fi-FI.xlf", | ||
26 | "baseHref": "/client/fi-FI/" | ||
27 | }, | ||
28 | "nl": { | ||
29 | "translation": "src/locale/angular.nl-NL.xlf", | ||
30 | "baseHref": "/client/nl-NL/" | ||
31 | }, | ||
32 | "gd": { | ||
33 | "translation": "src/locale/angular.gd.xlf", | ||
34 | "baseHref": "/client/gd/" | ||
35 | }, | ||
36 | "el": { | ||
37 | "translation": "src/locale/angular.el-GR.xlf", | ||
38 | "baseHref": "/client/el-GR/" | ||
39 | }, | ||
40 | "es": { | ||
41 | "translation": "src/locale/angular.es-ES.xlf", | ||
42 | "baseHref": "/client/es-ES/" | ||
43 | }, | ||
44 | "pt": { | ||
45 | "translation": "src/locale/angular.pt-BR.xlf", | ||
46 | "baseHref": "/client/pt-BR/" | ||
47 | }, | ||
48 | "pt-PT": { | ||
49 | "translation": "src/locale/angular.pt-PT.xlf", | ||
50 | "baseHref": "/client/pt-PT/" | ||
51 | }, | ||
52 | "sv": { | ||
53 | "translation": "src/locale/angular.sv-SE.xlf", | ||
54 | "baseHref": "/client/sv-SE/" | ||
55 | }, | ||
56 | "pl": { | ||
57 | "translation": "src/locale/angular.pl-PL.xlf", | ||
58 | "baseHref": "/client/pl-PL/" | ||
59 | }, | ||
60 | "ru": { | ||
61 | "translation": "src/locale/angular.ru-RU.xlf", | ||
62 | "baseHref": "/client/ru-RU/" | ||
63 | }, | ||
64 | "zh-Hans": { | ||
65 | "translation": "src/locale/angular.zh-Hans-CN.xlf", | ||
66 | "baseHref": "/client/zh-Hans-CN/" | ||
67 | }, | ||
68 | "zh-Hant": { | ||
69 | "translation": "src/locale/angular.zh-Hant-TW.xlf", | ||
70 | "baseHref": "/client/zh-Hant-TW/" | ||
71 | }, | ||
72 | "fr": { | ||
73 | "translation": "src/locale/angular.fr-FR.xlf", | ||
74 | "baseHref": "/client/fr-FR/" | ||
75 | }, | ||
76 | "ja": { | ||
77 | "translation": "src/locale/angular.ja-JP.xlf", | ||
78 | "baseHref": "/client/ja-JP/" | ||
79 | }, | ||
80 | "eu": { | ||
81 | "translation": "src/locale/angular.eu-ES.xlf", | ||
82 | "baseHref": "/client/eu-ES/" | ||
83 | }, | ||
84 | "ca": { | ||
85 | "translation": "src/locale/angular.ca-ES.xlf", | ||
86 | "baseHref": "/client/ca-ES/" | ||
87 | }, | ||
88 | "cs": { | ||
89 | "translation": "src/locale/angular.cs-CZ.xlf", | ||
90 | "baseHref": "/client/cs-CZ/" | ||
91 | }, | ||
92 | "eo": { | ||
93 | "translation": "src/locale/angular.eo.xlf", | ||
94 | "baseHref": "/client/eo/" | ||
95 | }, | ||
96 | "de": { | ||
97 | "translation": "src/locale/angular.de-DE.xlf", | ||
98 | "baseHref": "/client/de-DE/" | ||
99 | }, | ||
100 | "it": { | ||
101 | "translation": "src/locale/angular.it-IT.xlf", | ||
102 | "baseHref": "/client/it-IT/" | ||
103 | } | ||
104 | } | ||
105 | }, | ||
10 | "architect": { | 106 | "architect": { |
11 | "build": { | 107 | "build": { |
12 | "builder": "@angular-devkit/build-angular:browser", | 108 | "builder": "@angular-devkit/build-angular:browser", |
13 | "options": { | 109 | "options": { |
14 | "deployUrl": "client/", | 110 | "aot": true, |
15 | "outputPath": "dist", | 111 | "outputPath": "dist", |
16 | "index": "src/index.html", | 112 | "index": "src/index.html", |
17 | "main": "src/main.ts", | 113 | "main": "src/main.ts", |
@@ -53,7 +149,7 @@ | |||
53 | { | 149 | { |
54 | "type": "anyComponentStyle", | 150 | "type": "anyComponentStyle", |
55 | "maximumWarning": "6kb", | 151 | "maximumWarning": "6kb", |
56 | "maximumError": "10kb" | 152 | "maximumError": "50kb" |
57 | } | 153 | } |
58 | ], | 154 | ], |
59 | "fileReplacements": [ | 155 | "fileReplacements": [ |
@@ -64,6 +160,12 @@ | |||
64 | ] | 160 | ] |
65 | }, | 161 | }, |
66 | "hmr": { | 162 | "hmr": { |
163 | "budgets": [ | ||
164 | { | ||
165 | "type": "anyComponentStyle", | ||
166 | "maximumWarning": "6kb" | ||
167 | } | ||
168 | ], | ||
67 | "fileReplacements": [ | 169 | "fileReplacements": [ |
68 | { | 170 | { |
69 | "replace": "src/environments/environment.ts", | 171 | "replace": "src/environments/environment.ts", |
@@ -72,6 +174,12 @@ | |||
72 | ] | 174 | ] |
73 | }, | 175 | }, |
74 | "e2e": { | 176 | "e2e": { |
177 | "budgets": [ | ||
178 | { | ||
179 | "type": "anyComponentStyle", | ||
180 | "maximumWarning": "6kb" | ||
181 | } | ||
182 | ], | ||
75 | "fileReplacements": [ | 183 | "fileReplacements": [ |
76 | { | 184 | { |
77 | "replace": "src/environments/environment.ts", | 185 | "replace": "src/environments/environment.ts", |
@@ -79,12 +187,71 @@ | |||
79 | } | 187 | } |
80 | ] | 188 | ] |
81 | }, | 189 | }, |
82 | "fr_FR": { | 190 | "hu-HU": { |
83 | "aot": true, | 191 | "localize": [ "hu" ] |
84 | "outputPath": "dist/PeerTube-fr_FR", | 192 | }, |
85 | "i18nFile": "src/i18n/messages.fr_FR.xlf", | 193 | "th-TH": { |
86 | "i18nFormat": "xlf", | 194 | "localize": [ "th" ] |
87 | "i18nLocale": "fr_FR" | 195 | }, |
196 | "fi-FI": { | ||
197 | "localize": [ "fi" ] | ||
198 | }, | ||
199 | "nl-NL": { | ||
200 | "localize": [ "nl" ] | ||
201 | }, | ||
202 | "gd": { | ||
203 | "localize": [ "gd" ] | ||
204 | }, | ||
205 | "el-GR": { | ||
206 | "localize": [ "el" ] | ||
207 | }, | ||
208 | "es-ES": { | ||
209 | "localize": [ "es" ] | ||
210 | }, | ||
211 | "pt-BR": { | ||
212 | "localize": [ "pt" ] | ||
213 | }, | ||
214 | "pt-PT": { | ||
215 | "localize": [ "pt-PT" ] | ||
216 | }, | ||
217 | "sv-SE": { | ||
218 | "localize": [ "sv" ] | ||
219 | }, | ||
220 | "pl-PL": { | ||
221 | "localize": [ "pl" ] | ||
222 | }, | ||
223 | "ru-RU": { | ||
224 | "localize": [ "ru" ] | ||
225 | }, | ||
226 | "zh-Hans-CN": { | ||
227 | "localize": [ "zh-Hans" ] | ||
228 | }, | ||
229 | "zh-Hant-TW": { | ||
230 | "localize": [ "zh-Hant" ] | ||
231 | }, | ||
232 | "fr-FR": { | ||
233 | "localize": [ "fr" ] | ||
234 | }, | ||
235 | "ja-JP": { | ||
236 | "localize": [ "ja" ] | ||
237 | }, | ||
238 | "eu-ES": { | ||
239 | "localize": [ "eu" ] | ||
240 | }, | ||
241 | "ca-ES": { | ||
242 | "localize": [ "ca" ] | ||
243 | }, | ||
244 | "cs-CZ": { | ||
245 | "localize": [ "cs" ] | ||
246 | }, | ||
247 | "eo": { | ||
248 | "localize": [ "eo" ] | ||
249 | }, | ||
250 | "de-DE": { | ||
251 | "localize": [ "de" ] | ||
252 | }, | ||
253 | "it-IT": { | ||
254 | "localize": [ "it" ] | ||
88 | } | 255 | } |
89 | } | 256 | } |
90 | }, | 257 | }, |
@@ -106,9 +273,6 @@ | |||
106 | "e2e": { | 273 | "e2e": { |
107 | "browserTarget": "PeerTube:build:e2e", | 274 | "browserTarget": "PeerTube:build:e2e", |
108 | "proxyConfig": "e2e/proxy.config.json" | 275 | "proxyConfig": "e2e/proxy.config.json" |
109 | }, | ||
110 | "fr_FR": { | ||
111 | "browserTarget": "PeerTube:build:fr_FR" | ||
112 | } | 276 | } |
113 | } | 277 | } |
114 | }, | 278 | }, |