X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=dc50bf709f94def34ae97a9fdb33db5bf9ec84af;hb=f0452c30bf9744ba442b77037f01b4fd1db8091e;hp=d9cee9bac6d826265049a2dedaf573c334d7166d;hpb=a30a136c9896c656cab98d2c92cde32c534dc098;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index d9cee9bac..dc50bf709 100644 --- a/client/angular.json +++ b/client/angular.json @@ -13,6 +13,10 @@ "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/" @@ -65,6 +69,10 @@ "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/" @@ -89,6 +97,10 @@ "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/" @@ -104,6 +116,14 @@ "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/" } } }, @@ -111,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" @@ -129,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", + "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, @@ -153,7 +192,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "10kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -164,6 +203,7 @@ ] }, "hmr": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -178,6 +218,7 @@ ] }, "e2e": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -190,83 +231,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" }, @@ -327,8 +297,9 @@ "i18nBaseFile": "angular", "defaultLanguage": "en-US", "languages": [ - "ar-001", + "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE", @@ -347,6 +318,7 @@ "it-IT", "ja-JP", "jbo", + "kab", "ko-KR", "lt-LT", "nb-NO", @@ -407,7 +379,7 @@ "schematics": { "@schematics/angular:component": { "prefix": "app", - "styleext": "scss" + "style": "scss" }, "@schematics/angular:directive": { "prefix": "app"