X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=2511615790f2b3b0d8e63f8f5daa0c1c9812e058;hb=76b8d72e324d3a148beec38ed7b36ccfd5eb4009;hp=bf3a860aaaa28242feed352b0351b84afed56629;hpb=361dcebc75dea74947b6c3aafd9d7d720c054b01;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index bf3a860aa..251161579 100644 --- a/client/angular.json +++ b/client/angular.json @@ -8,99 +8,122 @@ "sourceRoot": "src", "projectType": "application", "i18n": { - "sourceLocale": "en", + "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": "/" + "baseHref": "/client/hu-HU/" }, "th": { "translation": "src/locale/angular.th-TH.xlf", - "baseHref": "/" + "baseHref": "/client/th-TH/" }, "fi": { "translation": "src/locale/angular.fi-FI.xlf", - "baseHref": "/" + "baseHref": "/client/fi-FI/" }, "nl": { "translation": "src/locale/angular.nl-NL.xlf", - "baseHref": "/" + "baseHref": "/client/nl-NL/" }, "gd": { "translation": "src/locale/angular.gd.xlf", - "baseHref": "/" + "baseHref": "/client/gd/" }, "el": { "translation": "src/locale/angular.el-GR.xlf", - "baseHref": "/" + "baseHref": "/client/el-GR/" }, "es": { "translation": "src/locale/angular.es-ES.xlf", - "baseHref": "/" + "baseHref": "/client/es-ES/" }, "oc": { "translation": "src/locale/angular.oc.xlf", - "baseHref": "/" + "baseHref": "/client/oc/" }, "pt": { "translation": "src/locale/angular.pt-BR.xlf", - "baseHref": "/" + "baseHref": "/client/pt-BR/" }, "pt-PT": { "translation": "src/locale/angular.pt-PT.xlf", - "baseHref": "/" + "baseHref": "/client/pt-PT/" }, "sv": { "translation": "src/locale/angular.sv-SE.xlf", - "baseHref": "/" + "baseHref": "/client/sv-SE/" }, "pl": { "translation": "src/locale/angular.pl-PL.xlf", - "baseHref": "/" + "baseHref": "/client/pl-PL/" }, "ru": { "translation": "src/locale/angular.ru-RU.xlf", - "baseHref": "/" + "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": "/" + "baseHref": "/client/zh-Hans-CN/" }, "zh-Hant": { "translation": "src/locale/angular.zh-Hant-TW.xlf", - "baseHref": "/" + "baseHref": "/client/zh-Hant-TW/" }, "fr": { "translation": "src/locale/angular.fr-FR.xlf", - "baseHref": "/" + "baseHref": "/client/fr-FR/" }, "ja": { "translation": "src/locale/angular.ja-JP.xlf", - "baseHref": "/" + "baseHref": "/client/ja-JP/" }, "eu": { "translation": "src/locale/angular.eu-ES.xlf", - "baseHref": "/" + "baseHref": "/client/eu-ES/" }, "ca": { "translation": "src/locale/angular.ca-ES.xlf", - "baseHref": "/" + "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": "/" + "baseHref": "/client/cs-CZ/" }, "eo": { "translation": "src/locale/angular.eo.xlf", - "baseHref": "/" + "baseHref": "/client/eo/" }, "de": { "translation": "src/locale/angular.de-DE.xlf", - "baseHref": "/" + "baseHref": "/client/de-DE/" }, "it": { "translation": "src/locale/angular.it-IT.xlf", - "baseHref": "/" + "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/" } } }, @@ -108,12 +131,14 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, + "localize": true, "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "tsConfig": "tsconfig.app.json", "polyfills": "src/polyfills.ts", + "baseHref": "/", + "deployUrl": "", "stylePreprocessorOptions": { "includePaths": [ "src/sass/include" @@ -126,16 +151,33 @@ "styles": [ "src/sass/application.scss" ], - "scripts": [] + "allowedCommonJsDependencies": [ + "qrcode", + "chart.js", + "htmlparser2", + "markdown-it-emoji/light", + "sanitize-html", + "debug", + "p2p-media-loader-hlsjs", + "video.js", + "sha.js/sha1", + "postcss", + "core-js/features/reflect" + ], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -150,7 +192,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "10kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -160,7 +202,23 @@ } ] }, + "ar-locale": { + "localize": ["ar"], + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.hmr.ts" + } + ] + }, "hmr": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -175,6 +233,7 @@ ] }, "e2e": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -187,83 +246,12 @@ "with": "src/environments/environment.e2e.ts" } ] - }, - "hu-HU": { - "localize": [ "hu" ] - }, - "th-TH": { - "localize": [ "th" ] - }, - "fi-FI": { - "localize": [ "fi" ] - }, - "nl-NL": { - "localize": [ "nl" ] - }, - "gd": { - "localize": [ "gd" ] - }, - "el-GR": { - "localize": [ "el" ] - }, - "es-ES": { - "localize": [ "es" ] - }, - "oc": { - "localize": [ "oc" ] - }, - "pt-BR": { - "localize": [ "pt" ] - }, - "pt-PT": { - "localize": [ "pt-PT" ] - }, - "sv-SE": { - "localize": [ "sv" ] - }, - "pl-PL": { - "localize": [ "pl" ] - }, - "ru-RU": { - "localize": [ "ru" ] - }, - "zh-Hans-CN": { - "localize": [ "zh-Hans" ] - }, - "zh-Hant-TW": { - "localize": [ "zh-Hant" ] - }, - "fr-FR": { - "localize": [ "fr" ] - }, - "ja-JP": { - "localize": [ "ja" ] - }, - "eu-ES": { - "localize": [ "eu" ] - }, - "ca-ES": { - "localize": [ "ca" ] - }, - "cs-CZ": { - "localize": [ "cs" ] - }, - "eo": { - "localize": [ "eo" ] - }, - "de-DE": { - "localize": [ "de" ] - }, - "it-IT": { - "localize": [ "it" ] } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "baseHref": "/", - "deployUrl": "client/", "browserTarget": "PeerTube:build", "proxyConfig": "proxy.config.json" }, @@ -274,6 +262,9 @@ "hmr": { "browserTarget": "PeerTube:build:hmr" }, + "ar-locale": { + "browserTarget": "PeerTube:build:ar-locale" + }, "e2e": { "browserTarget": "PeerTube:build:e2e", "proxyConfig": "e2e/proxy.config.json" @@ -324,8 +315,9 @@ "i18nBaseFile": "angular", "defaultLanguage": "en-US", "languages": [ - "ar-001", + "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE", @@ -344,6 +336,7 @@ "it-IT", "ja-JP", "jbo", + "kab", "ko-KR", "lt-LT", "nb-NO", @@ -404,7 +397,7 @@ "schematics": { "@schematics/angular:component": { "prefix": "app", - "styleext": "scss" + "style": "scss" }, "@schematics/angular:directive": { "prefix": "app"