]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/angular.json
Update scripts to update translations
[github/Chocobozzz/PeerTube.git] / client / angular.json
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",
10 "i18n": {
11 "sourceLocale": {
12 "code": "en",
13 "baseHref": "/client/en-US/"
14 },
15 "locales": {
16 "ar": {
17 "translation": "src/locale/angular.ar.xlf",
18 "baseHref": "/client/ar/"
19 },
20 "hu": {
21 "translation": "src/locale/angular.hu-HU.xlf",
22 "baseHref": "/client/hu-HU/"
23 },
24 "th": {
25 "translation": "src/locale/angular.th-TH.xlf",
26 "baseHref": "/client/th-TH/"
27 },
28 "fi": {
29 "translation": "src/locale/angular.fi-FI.xlf",
30 "baseHref": "/client/fi-FI/"
31 },
32 "nl": {
33 "translation": "src/locale/angular.nl-NL.xlf",
34 "baseHref": "/client/nl-NL/"
35 },
36 "gd": {
37 "translation": "src/locale/angular.gd.xlf",
38 "baseHref": "/client/gd/"
39 },
40 "el": {
41 "translation": "src/locale/angular.el-GR.xlf",
42 "baseHref": "/client/el-GR/"
43 },
44 "es": {
45 "translation": "src/locale/angular.es-ES.xlf",
46 "baseHref": "/client/es-ES/"
47 },
48 "oc": {
49 "translation": "src/locale/angular.oc.xlf",
50 "baseHref": "/client/oc/"
51 },
52 "pt": {
53 "translation": "src/locale/angular.pt-BR.xlf",
54 "baseHref": "/client/pt-BR/"
55 },
56 "pt-PT": {
57 "translation": "src/locale/angular.pt-PT.xlf",
58 "baseHref": "/client/pt-PT/"
59 },
60 "sv": {
61 "translation": "src/locale/angular.sv-SE.xlf",
62 "baseHref": "/client/sv-SE/"
63 },
64 "pl": {
65 "translation": "src/locale/angular.pl-PL.xlf",
66 "baseHref": "/client/pl-PL/"
67 },
68 "ru": {
69 "translation": "src/locale/angular.ru-RU.xlf",
70 "baseHref": "/client/ru-RU/"
71 },
72 "zh-Hans": {
73 "translation": "src/locale/angular.zh-Hans-CN.xlf",
74 "baseHref": "/client/zh-Hans-CN/"
75 },
76 "zh-Hant": {
77 "translation": "src/locale/angular.zh-Hant-TW.xlf",
78 "baseHref": "/client/zh-Hant-TW/"
79 },
80 "fr": {
81 "translation": "src/locale/angular.fr-FR.xlf",
82 "baseHref": "/client/fr-FR/"
83 },
84 "ja": {
85 "translation": "src/locale/angular.ja-JP.xlf",
86 "baseHref": "/client/ja-JP/"
87 },
88 "eu": {
89 "translation": "src/locale/angular.eu-ES.xlf",
90 "baseHref": "/client/eu-ES/"
91 },
92 "ca": {
93 "translation": "src/locale/angular.ca-ES.xlf",
94 "baseHref": "/client/ca-ES/"
95 },
96 "cs": {
97 "translation": "src/locale/angular.cs-CZ.xlf",
98 "baseHref": "/client/cs-CZ/"
99 },
100 "eo": {
101 "translation": "src/locale/angular.eo.xlf",
102 "baseHref": "/client/eo/"
103 },
104 "de": {
105 "translation": "src/locale/angular.de-DE.xlf",
106 "baseHref": "/client/de-DE/"
107 },
108 "it": {
109 "translation": "src/locale/angular.it-IT.xlf",
110 "baseHref": "/client/it-IT/"
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/"
119 }
120 }
121 },
122 "architect": {
123 "build": {
124 "builder": "@angular-devkit/build-angular:browser",
125 "options": {
126 "aot": true,
127 "localize": true,
128 "outputPath": "dist",
129 "index": "src/index.html",
130 "main": "src/main.ts",
131 "tsConfig": "tsconfig.app.json",
132 "polyfills": "src/polyfills.ts",
133 "stylePreprocessorOptions": {
134 "includePaths": [
135 "src/sass/include"
136 ]
137 },
138 "assets": [
139 "src/assets/images",
140 "src/manifest.webmanifest"
141 ],
142 "styles": [
143 "src/sass/application.scss"
144 ],
145 "allowedCommonJsDependencies": [
146 "@angularclass/hmr",
147 "debug",
148 "mousetrap",
149 "chart.js",
150 "linkifyjs/html",
151 "linkifyjs",
152 "markdown-it",
153 "markdown-it-emoji/light",
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",
172 "@videojs/xhr",
173 "htmlparser2",
174 "url",
175 "parse-srcset",
176 "postcss"
177 ],
178 "scripts": []
179 },
180 "configurations": {
181 "production": {
182 "optimization": true,
183 "outputHashing": "all",
184 "sourceMap": false,
185 "namedChunks": false,
186 "aot": true,
187 "extractLicenses": true,
188 "vendorChunk": false,
189 "buildOptimizer": true,
190 "serviceWorker": true,
191 "ngswConfigPath": "src/ngsw-config.json",
192 "budgets": [
193 {
194 "type": "initial",
195 "maximumWarning": "2mb",
196 "maximumError": "5mb"
197 },
198 {
199 "type": "anyComponentStyle",
200 "maximumWarning": "6kb",
201 "maximumError": "50kb"
202 }
203 ],
204 "fileReplacements": [
205 {
206 "replace": "src/environments/environment.ts",
207 "with": "src/environments/environment.prod.ts"
208 }
209 ]
210 },
211 "i18n": {
212 "optimization": false,
213 "outputHashing": "none",
214 "sourceMap": true,
215 "namedChunks": true,
216 "aot": true,
217 "buildOptimizer": false,
218 "budgets": []
219 },
220 "hmr": {
221 "localize": false,
222 "budgets": [
223 {
224 "type": "anyComponentStyle",
225 "maximumWarning": "6kb"
226 }
227 ],
228 "fileReplacements": [
229 {
230 "replace": "src/environments/environment.ts",
231 "with": "src/environments/environment.hmr.ts"
232 }
233 ]
234 },
235 "e2e": {
236 "localize": false,
237 "budgets": [
238 {
239 "type": "anyComponentStyle",
240 "maximumWarning": "6kb"
241 }
242 ],
243 "fileReplacements": [
244 {
245 "replace": "src/environments/environment.ts",
246 "with": "src/environments/environment.e2e.ts"
247 }
248 ]
249 }
250 }
251 },
252 "serve": {
253 "builder": "@angular-devkit/build-angular:dev-server",
254 "options": {
255 "baseHref": "/",
256 "deployUrl": "client/",
257 "browserTarget": "PeerTube:build",
258 "proxyConfig": "proxy.config.json"
259 },
260 "configurations": {
261 "production": {
262 "browserTarget": "PeerTube:build:production"
263 },
264 "hmr": {
265 "browserTarget": "PeerTube:build:hmr"
266 },
267 "e2e": {
268 "browserTarget": "PeerTube:build:e2e",
269 "proxyConfig": "e2e/proxy.config.json"
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",
292 "src/manifest.webmanifest"
293 ]
294 }
295 },
296 "lint": {
297 "builder": "@angular-devkit/build-angular:tslint",
298 "options": {
299 "tsConfig": [
300 "tsconfig.app.json"
301 ],
302 "exclude": [
303 "**/node_modules/**"
304 ]
305 }
306 },
307 "xliffmerge": {
308 "builder": "@ngx-i18nsupport/tooling:xliffmerge",
309 "options": {
310 "xliffmergeOptions": {
311 "i18nFormat": "xlf",
312 "srcDir": "src/locale",
313 "genDir": "src/locale",
314 "i18nBaseFile": "angular",
315 "defaultLanguage": "en-US",
316 "languages": [
317 "ar",
318 "ca-ES",
319 "cs-CZ",
320 "da-DK",
321 "de-DE",
322 "el-GR",
323 "en-GB",
324 "en-US",
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",
337 "kab",
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"
357 ]
358 }
359 }
360 }
361 }
362 },
363 "PeerTube-e2e": {
364 "root": "e2e/",
365 "sourceRoot": "",
366 "projectType": "application",
367 "architect": {
368 "e2e": {
369 "builder": "@angular-devkit/build-angular:protractor",
370 "options": {
371 "protractorConfig": "e2e/protractor.conf.js",
372 "devServerTarget": "PeerTube:serve:e2e"
373 },
374 "configurations": {
375 "local": {
376 "protractorConfig": "e2e/local-protractor.conf.js"
377 }
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",
398 "style": "scss"
399 },
400 "@schematics/angular:directive": {
401 "prefix": "app"
402 }
403 }
404 }