X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=b923ba413e8018d31c83242c075abcc3bf83cbfb;hb=62bc0352d9d465ce9d7c3e074b1b60bf99155e24;hp=f3f146bcb8946594db82bfce40639b5a22a4e148;hpb=f77eb73b5e02bed9e223dafc1c203ceb7c05b6e5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index f3f146bcb..b923ba413 100644 --- a/client/angular.json +++ b/client/angular.json @@ -7,12 +7,132 @@ "root": "", "sourceRoot": "src", "projectType": "application", + "i18n": { + "sourceLocale": { + "code": "en", + "baseHref": "/client/en-US/" + }, + "locales": { + "ar": { + "translation": "src/locale/angular.ar.xlf", + "baseHref": "/client/ar/" + }, + "hu": { + "translation": "src/locale/angular.hu-HU.xlf", + "baseHref": "/client/hu-HU/" + }, + "th": { + "translation": "src/locale/angular.th-TH.xlf", + "baseHref": "/client/th-TH/" + }, + "fi": { + "translation": "src/locale/angular.fi-FI.xlf", + "baseHref": "/client/fi-FI/" + }, + "nl": { + "translation": "src/locale/angular.nl-NL.xlf", + "baseHref": "/client/nl-NL/" + }, + "gd": { + "translation": "src/locale/angular.gd.xlf", + "baseHref": "/client/gd/" + }, + "el": { + "translation": "src/locale/angular.el-GR.xlf", + "baseHref": "/client/el-GR/" + }, + "es": { + "translation": "src/locale/angular.es-ES.xlf", + "baseHref": "/client/es-ES/" + }, + "oc": { + "translation": "src/locale/angular.oc.xlf", + "baseHref": "/client/oc/" + }, + "pt": { + "translation": "src/locale/angular.pt-BR.xlf", + "baseHref": "/client/pt-BR/" + }, + "pt-PT": { + "translation": "src/locale/angular.pt-PT.xlf", + "baseHref": "/client/pt-PT/" + }, + "sv": { + "translation": "src/locale/angular.sv-SE.xlf", + "baseHref": "/client/sv-SE/" + }, + "pl": { + "translation": "src/locale/angular.pl-PL.xlf", + "baseHref": "/client/pl-PL/" + }, + "ru": { + "translation": "src/locale/angular.ru-RU.xlf", + "baseHref": "/client/ru-RU/" + }, + "sq": { + "translation": "src/locale/angular.sq.xlf", + "baseHref": "/client/sq/" + }, + "zh-Hans": { + "translation": "src/locale/angular.zh-Hans-CN.xlf", + "baseHref": "/client/zh-Hans-CN/" + }, + "zh-Hant": { + "translation": "src/locale/angular.zh-Hant-TW.xlf", + "baseHref": "/client/zh-Hant-TW/" + }, + "fr": { + "translation": "src/locale/angular.fr-FR.xlf", + "baseHref": "/client/fr-FR/" + }, + "ja": { + "translation": "src/locale/angular.ja-JP.xlf", + "baseHref": "/client/ja-JP/" + }, + "eu": { + "translation": "src/locale/angular.eu-ES.xlf", + "baseHref": "/client/eu-ES/" + }, + "ca": { + "translation": "src/locale/angular.ca-ES.xlf", + "baseHref": "/client/ca-ES/" + }, + "gl": { + "translation": "src/locale/angular.gl-ES.xlf", + "baseHref": "/client/gl-ES/" + }, + "cs": { + "translation": "src/locale/angular.cs-CZ.xlf", + "baseHref": "/client/cs-CZ/" + }, + "eo": { + "translation": "src/locale/angular.eo.xlf", + "baseHref": "/client/eo/" + }, + "de": { + "translation": "src/locale/angular.de-DE.xlf", + "baseHref": "/client/de-DE/" + }, + "it": { + "translation": "src/locale/angular.it-IT.xlf", + "baseHref": "/client/it-IT/" + }, + "vi": { + "translation": "src/locale/angular.vi-VN.xlf", + "baseHref": "/client/vi-VN/" + }, + "kab": { + "translation": "src/locale/angular.kab.xlf", + "baseHref": "/client/kab/" + } + } + }, "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "aot": true, - "deployUrl": "client/", + "localize": true, "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", @@ -30,6 +150,39 @@ "styles": [ "src/sass/application.scss" ], + "allowedCommonJsDependencies": [ + "@angularclass/hmr", + "debug", + "mousetrap", + "chart.js", + "linkifyjs/html", + "linkifyjs", + "markdown-it", + "markdown-it-emoji/light", + "sanitize-html", + "socket.io-client", + "socket.io-parser", + "@app/+about/about-peertube/about-peertube-contributors.component", + "path", + "video.js", + "p2p-media-loader-hlsjs", + "videojs-hotkeys/videojs.hotkeys", + "p2p-media-loader-core", + "qrcode", + "webtorrent", + "cache-chunk-store", + "global/document", + "videojs-vtt.js", + "videojs-vtt.js", + "@babel/runtime/helpers/possibleConstructorReturn", + "@babel/runtime/helpers/inherits", + "@babel/runtime/helpers/construct", + "@videojs/xhr", + "htmlparser2", + "url", + "parse-srcset", + "postcss" + ], "scripts": [] }, "configurations": { @@ -37,7 +190,6 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, @@ -54,7 +206,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "10kb" + "maximumError": "50kb" } ], "fileReplacements": [ @@ -65,6 +217,7 @@ ] }, "hmr": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -79,6 +232,7 @@ ] }, "e2e": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -159,8 +313,9 @@ "i18nBaseFile": "angular", "defaultLanguage": "en-US", "languages": [ - "ar-001", + "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE", @@ -179,6 +334,7 @@ "it-IT", "ja-JP", "jbo", + "kab", "ko-KR", "lt-LT", "nb-NO", @@ -239,7 +395,7 @@ "schematics": { "@schematics/angular:component": { "prefix": "app", - "styleext": "scss" + "style": "scss" }, "@schematics/angular:directive": { "prefix": "app"