]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular.json
Add @angular/localize
[github/Chocobozzz/PeerTube.git] / client / angular.json
index 477cd597feb3cb0be1cbfcb1f4bb6373f8e2f73e..ddc9272ef4107a2ad6114288f92ce4210e997b80 100644 (file)
@@ -4,6 +4,14 @@
   "newProjectRoot": "projects",
   "projects": {
     "PeerTube": {
+      "i18n": {
+        "locales": {
+          "fr_FR": {
+            "translation": "src/i18n/messages.fr_FR.xlf",
+            "baseHref": ""
+          }
+        }
+      },
       "root": "",
       "sourceRoot": "src",
       "projectType": "application",
@@ -11,6 +19,7 @@
         "build": {
           "builder": "@angular-devkit/build-angular:browser",
           "options": {
+            "aot": true,
             "deployUrl": "client/",
             "outputPath": "dist",
             "index": "src/index.html",
               ]
             },
             "hmr": {
+              "budgets": [
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb"
+                }
+              ],
               "fileReplacements": [
                 {
                   "replace": "src/environments/environment.ts",
               ]
             },
             "e2e": {
+              "budgets": [
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb"
+                }
+              ],
               "fileReplacements": [
                 {
                   "replace": "src/environments/environment.ts",
                   "with": "src/environments/environment.e2e.ts"
                 }
               ]
-            },
-            "fr_FR": {
-              "aot": true,
-              "outputPath": "dist/PeerTube-fr_FR",
-              "i18nFile": "src/i18n/messages.fr_FR.xlf",
-              "i18nFormat": "xlf",
-              "i18nLocale": "fr_FR"
             }
           }
         },
             "e2e": {
               "browserTarget": "PeerTube:build:e2e",
               "proxyConfig": "e2e/proxy.config.json"
-            },
-            "fr_FR": {
-              "browserTarget": "PeerTube:build:fr_FR"
             }
           }
         },