]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/angular.json
Update scripts to update translations
[github/Chocobozzz/PeerTube.git] / client / angular.json
CommitLineData
54c3a22f
C
1{
2 "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 "version": 1,
4 "newProjectRoot": "projects",
5 "projects": {
6 "PeerTube": {
7 "root": "",
8 "sourceRoot": "src",
9 "projectType": "application",
361dcebc 10 "i18n": {
8cc56c7f
C
11 "sourceLocale": {
12 "code": "en",
13 "baseHref": "/client/en-US/"
14 },
361dcebc 15 "locales": {
520745bf 16 "ar": {
d10538b4
C
17 "translation": "src/locale/angular.ar.xlf",
18 "baseHref": "/client/ar/"
520745bf 19 },
361dcebc
C
20 "hu": {
21 "translation": "src/locale/angular.hu-HU.xlf",
8cc56c7f 22 "baseHref": "/client/hu-HU/"
361dcebc
C
23 },
24 "th": {
25 "translation": "src/locale/angular.th-TH.xlf",
8cc56c7f 26 "baseHref": "/client/th-TH/"
361dcebc
C
27 },
28 "fi": {
29 "translation": "src/locale/angular.fi-FI.xlf",
8cc56c7f 30 "baseHref": "/client/fi-FI/"
361dcebc
C
31 },
32 "nl": {
33 "translation": "src/locale/angular.nl-NL.xlf",
8cc56c7f 34 "baseHref": "/client/nl-NL/"
361dcebc
C
35 },
36 "gd": {
37 "translation": "src/locale/angular.gd.xlf",
8cc56c7f 38 "baseHref": "/client/gd/"
361dcebc
C
39 },
40 "el": {
41 "translation": "src/locale/angular.el-GR.xlf",
8cc56c7f 42 "baseHref": "/client/el-GR/"
361dcebc
C
43 },
44 "es": {
45 "translation": "src/locale/angular.es-ES.xlf",
8cc56c7f 46 "baseHref": "/client/es-ES/"
361dcebc 47 },
2a39506c
C
48 "oc": {
49 "translation": "src/locale/angular.oc.xlf",
50 "baseHref": "/client/oc/"
51 },
361dcebc
C
52 "pt": {
53 "translation": "src/locale/angular.pt-BR.xlf",
8cc56c7f 54 "baseHref": "/client/pt-BR/"
361dcebc
C
55 },
56 "pt-PT": {
57 "translation": "src/locale/angular.pt-PT.xlf",
8cc56c7f 58 "baseHref": "/client/pt-PT/"
361dcebc
C
59 },
60 "sv": {
61 "translation": "src/locale/angular.sv-SE.xlf",
8cc56c7f 62 "baseHref": "/client/sv-SE/"
361dcebc
C
63 },
64 "pl": {
65 "translation": "src/locale/angular.pl-PL.xlf",
8cc56c7f 66 "baseHref": "/client/pl-PL/"
361dcebc
C
67 },
68 "ru": {
69 "translation": "src/locale/angular.ru-RU.xlf",
8cc56c7f 70 "baseHref": "/client/ru-RU/"
361dcebc
C
71 },
72 "zh-Hans": {
73 "translation": "src/locale/angular.zh-Hans-CN.xlf",
8cc56c7f 74 "baseHref": "/client/zh-Hans-CN/"
361dcebc
C
75 },
76 "zh-Hant": {
77 "translation": "src/locale/angular.zh-Hant-TW.xlf",
8cc56c7f 78 "baseHref": "/client/zh-Hant-TW/"
361dcebc
C
79 },
80 "fr": {
81 "translation": "src/locale/angular.fr-FR.xlf",
8cc56c7f 82 "baseHref": "/client/fr-FR/"
361dcebc
C
83 },
84 "ja": {
85 "translation": "src/locale/angular.ja-JP.xlf",
8cc56c7f 86 "baseHref": "/client/ja-JP/"
361dcebc
C
87 },
88 "eu": {
89 "translation": "src/locale/angular.eu-ES.xlf",
8cc56c7f 90 "baseHref": "/client/eu-ES/"
361dcebc
C
91 },
92 "ca": {
93 "translation": "src/locale/angular.ca-ES.xlf",
8cc56c7f 94 "baseHref": "/client/ca-ES/"
361dcebc
C
95 },
96 "cs": {
97 "translation": "src/locale/angular.cs-CZ.xlf",
8cc56c7f 98 "baseHref": "/client/cs-CZ/"
361dcebc
C
99 },
100 "eo": {
101 "translation": "src/locale/angular.eo.xlf",
8cc56c7f 102 "baseHref": "/client/eo/"
361dcebc
C
103 },
104 "de": {
105 "translation": "src/locale/angular.de-DE.xlf",
8cc56c7f 106 "baseHref": "/client/de-DE/"
361dcebc
C
107 },
108 "it": {
109 "translation": "src/locale/angular.it-IT.xlf",
8cc56c7f 110 "baseHref": "/client/it-IT/"
0bd558a0
C
111 },
112 "vi": {
113 "translation": "src/locale/angular.vi-VN.xlf",
114 "baseHref": "/client/vi-VN/"
115 },
116 "kab": {
117 "translation": "src/locale/angular.kab.xlf",
118 "baseHref": "/client/kab/"
361dcebc
C
119 }
120 }
121 },
54c3a22f
C
122 "architect": {
123 "build": {
124 "builder": "@angular-devkit/build-angular:browser",
125 "options": {
2f5d2ec5 126 "aot": true,
66357162 127 "localize": true,
54c3a22f
C
128 "outputPath": "dist",
129 "index": "src/index.html",
130 "main": "src/main.ts",
16b55259 131 "tsConfig": "tsconfig.app.json",
54c3a22f
C
132 "polyfills": "src/polyfills.ts",
133 "stylePreprocessorOptions": {
134 "includePaths": [
135 "src/sass/include"
136 ]
137 },
138 "assets": [
139 "src/assets/images",
fcc7c060 140 "src/manifest.webmanifest"
54c3a22f
C
141 ],
142 "styles": [
143 "src/sass/application.scss"
144 ],
d88c9eb9
C
145 "allowedCommonJsDependencies": [
146 "@angularclass/hmr",
147 "debug",
148 "mousetrap",
149 "chart.js",
150 "linkifyjs/html",
151 "linkifyjs",
152 "markdown-it",
fc418874 153 "markdown-it-emoji/light",
d88c9eb9
C
154 "sanitize-html",
155 "socket.io-client",
156 "socket.io-parser",
157 "@app/+about/about-peertube/about-peertube-contributors.component",
158 "path",
159 "video.js",
160 "p2p-media-loader-hlsjs",
161 "videojs-hotkeys/videojs.hotkeys",
162 "p2p-media-loader-core",
163 "qrcode",
164 "webtorrent",
165 "cache-chunk-store",
166 "global/document",
167 "videojs-vtt.js",
168 "videojs-vtt.js",
169 "@babel/runtime/helpers/possibleConstructorReturn",
170 "@babel/runtime/helpers/inherits",
171 "@babel/runtime/helpers/construct",
b355b394
C
172 "@videojs/xhr",
173 "htmlparser2",
174 "url",
175 "parse-srcset",
176 "postcss"
d88c9eb9 177 ],
54c3a22f
C
178 "scripts": []
179 },
180 "configurations": {
181 "production": {
182 "optimization": true,
183 "outputHashing": "all",
184 "sourceMap": false,
54c3a22f
C
185 "namedChunks": false,
186 "aot": true,
187 "extractLicenses": true,
188 "vendorChunk": false,
189 "buildOptimizer": true,
a700f183
C
190 "serviceWorker": true,
191 "ngswConfigPath": "src/ngsw-config.json",
970ceac0
C
192 "budgets": [
193 {
194 "type": "initial",
970ceac0
C
195 "maximumWarning": "2mb",
196 "maximumError": "5mb"
970ceac0
C
197 },
198 {
199 "type": "anyComponentStyle",
200 "maximumWarning": "6kb",
4adebd51 201 "maximumError": "50kb"
970ceac0
C
202 }
203 ],
54c3a22f
C
204 "fileReplacements": [
205 {
206 "replace": "src/environments/environment.ts",
207 "with": "src/environments/environment.prod.ts"
208 }
209 ]
74af5a83 210 },
8c360747
C
211 "i18n": {
212 "optimization": false,
213 "outputHashing": "none",
214 "sourceMap": true,
8c360747
C
215 "namedChunks": true,
216 "aot": true,
217 "buildOptimizer": false,
218 "budgets": []
219 },
74af5a83 220 "hmr": {
66357162 221 "localize": false,
2f5d2ec5
C
222 "budgets": [
223 {
224 "type": "anyComponentStyle",
225 "maximumWarning": "6kb"
226 }
227 ],
74af5a83
C
228 "fileReplacements": [
229 {
230 "replace": "src/environments/environment.ts",
231 "with": "src/environments/environment.hmr.ts"
232 }
233 ]
234 },
235 "e2e": {
66357162 236 "localize": false,
2f5d2ec5
C
237 "budgets": [
238 {
239 "type": "anyComponentStyle",
240 "maximumWarning": "6kb"
241 }
242 ],
74af5a83
C
243 "fileReplacements": [
244 {
245 "replace": "src/environments/environment.ts",
246 "with": "src/environments/environment.e2e.ts"
247 }
248 ]
54c3a22f
C
249 }
250 }
251 },
252 "serve": {
253 "builder": "@angular-devkit/build-angular:dev-server",
254 "options": {
41b15c89
C
255 "baseHref": "/",
256 "deployUrl": "client/",
446d9f8c
C
257 "browserTarget": "PeerTube:build",
258 "proxyConfig": "proxy.config.json"
54c3a22f
C
259 },
260 "configurations": {
261 "production": {
262 "browserTarget": "PeerTube:build:production"
74af5a83
C
263 },
264 "hmr": {
265 "browserTarget": "PeerTube:build:hmr"
266 },
267 "e2e": {
446d9f8c
C
268 "browserTarget": "PeerTube:build:e2e",
269 "proxyConfig": "e2e/proxy.config.json"
54c3a22f
C
270 }
271 }
272 },
273 "extract-i18n": {
274 "builder": "@angular-devkit/build-angular:extract-i18n",
275 "options": {
276 "browserTarget": "PeerTube:build"
277 }
278 },
279 "test": {
280 "builder": "@angular-devkit/build-angular:karma",
281 "options": {
282 "main": "src/test.ts",
283 "karmaConfig": "./karma.conf.js",
284 "polyfills": "src/polyfills.ts",
285 "tsConfig": "src/tsconfig.spec.json",
286 "scripts": [],
287 "styles": [
288 "src/sass/application.scss"
289 ],
290 "assets": [
291 "src/assets/images",
fcc7c060 292 "src/manifest.webmanifest"
54c3a22f
C
293 ]
294 }
295 },
296 "lint": {
297 "builder": "@angular-devkit/build-angular:tslint",
298 "options": {
299 "tsConfig": [
16b55259 300 "tsconfig.app.json"
54c3a22f
C
301 ],
302 "exclude": [
303 "**/node_modules/**"
304 ]
305 }
3aea8eb2
C
306 },
307 "xliffmerge": {
308 "builder": "@ngx-i18nsupport/tooling:xliffmerge",
309 "options": {
310 "xliffmergeOptions": {
311 "i18nFormat": "xlf",
312 "srcDir": "src/locale",
313 "genDir": "src/locale",
3aea8eb2
C
314 "i18nBaseFile": "angular",
315 "defaultLanguage": "en-US",
316 "languages": [
d10538b4 317 "ar",
fbe77135
C
318 "ca-ES",
319 "cs-CZ",
320 "da-DK",
321 "de-DE",
322 "el-GR",
323 "en-GB",
3aea8eb2 324 "en-US",
fbe77135
C
325 "eo",
326 "es-ES",
327 "eu-ES",
328 "fa-IR",
329 "fi-FI",
330 "fr-FR",
331 "gd",
332 "gl-ES",
333 "hu-HU",
334 "it-IT",
335 "ja-JP",
336 "jbo",
0bd558a0 337 "kab",
fbe77135
C
338 "ko-KR",
339 "lt-LT",
340 "nb-NO",
341 "nl-NL",
342 "oc",
343 "pl-PL",
344 "pt-BR",
345 "pt-PT",
346 "ru-RU",
347 "sk-SK",
348 "sl-SI",
349 "sv-SE",
350 "ta",
351 "th-TH",
352 "tr-TR",
353 "uk-UA",
354 "vi-VN",
355 "zh-Hans-CN",
356 "zh-Hant-TW"
3aea8eb2
C
357 ]
358 }
359 }
54c3a22f
C
360 }
361 }
362 },
363 "PeerTube-e2e": {
74af5a83 364 "root": "e2e/",
54c3a22f
C
365 "sourceRoot": "",
366 "projectType": "application",
367 "architect": {
368 "e2e": {
369 "builder": "@angular-devkit/build-angular:protractor",
370 "options": {
74af5a83
C
371 "protractorConfig": "e2e/protractor.conf.js",
372 "devServerTarget": "PeerTube:serve:e2e"
9e3e2481
RK
373 },
374 "configurations": {
375 "local": {
376 "protractorConfig": "e2e/local-protractor.conf.js"
377 }
54c3a22f
C
378 }
379 },
380 "lint": {
381 "builder": "@angular-devkit/build-angular:tslint",
382 "options": {
383 "tsConfig": [
384 "e2e/tsconfig.e2e.json"
385 ],
386 "exclude": [
387 "**/node_modules/**"
388 ]
389 }
390 }
391 }
392 }
393 },
394 "defaultProject": "PeerTube",
395 "schematics": {
396 "@schematics/angular:component": {
397 "prefix": "app",
583eb04b 398 "style": "scss"
54c3a22f
C
399 },
400 "@schematics/angular:directive": {
401 "prefix": "app"
402 }
403 }
17c49e60 404}