aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular.json
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-12 10:40:04 +0200
committerChocobozzz <me@florianbigard.com>2020-08-14 10:28:30 +0200
commit66357162f8e1227495f09bd4f68446aad7071c6d (patch)
tree7d4429506deb512b2fe1d0267f38a28cda20af55 /client/angular.json
parent8c360747995e17eb5520e22fc3d7bd4c3d26eeee (diff)
downloadPeerTube-66357162f8e1227495f09bd4f68446aad7071c6d.tar.gz
PeerTube-66357162f8e1227495f09bd4f68446aad7071c6d.tar.zst
PeerTube-66357162f8e1227495f09bd4f68446aad7071c6d.zip
Migrate to $localize
* Remove i18n polyfill to translate things in components * Reduce bundle sizes * Improve runtime perf * Reduce a lot the time to make a full client build * Reduce client build complexity * We don't need a service to translate things anymore (so we will be able to translate title pages etc) Unfortunately we may loose some translations in the migration process. I'll put a message on weblate to notify translators
Diffstat (limited to 'client/angular.json')
-rw-r--r--client/angular.json81
1 files changed, 3 insertions, 78 deletions
diff --git a/client/angular.json b/client/angular.json
index 06223b837..c893cc1e9 100644
--- a/client/angular.json
+++ b/client/angular.json
@@ -124,6 +124,7 @@
124 "builder": "@angular-devkit/build-angular:browser", 124 "builder": "@angular-devkit/build-angular:browser",
125 "options": { 125 "options": {
126 "aot": true, 126 "aot": true,
127 "localize": true,
127 "outputPath": "dist", 128 "outputPath": "dist",
128 "index": "src/index.html", 129 "index": "src/index.html",
129 "main": "src/main.ts", 130 "main": "src/main.ts",
@@ -214,6 +215,7 @@
214 "budgets": [] 215 "budgets": []
215 }, 216 },
216 "hmr": { 217 "hmr": {
218 "localize": false,
217 "budgets": [ 219 "budgets": [
218 { 220 {
219 "type": "anyComponentStyle", 221 "type": "anyComponentStyle",
@@ -228,6 +230,7 @@
228 ] 230 ]
229 }, 231 },
230 "e2e": { 232 "e2e": {
233 "localize": false,
231 "budgets": [ 234 "budgets": [
232 { 235 {
233 "type": "anyComponentStyle", 236 "type": "anyComponentStyle",
@@ -240,84 +243,6 @@
240 "with": "src/environments/environment.e2e.ts" 243 "with": "src/environments/environment.e2e.ts"
241 } 244 }
242 ] 245 ]
243 },
244 "ar": {
245 "localize": [ "ar" ]
246 },
247 "hu-HU": {
248 "localize": [ "hu" ]
249 },
250 "th-TH": {
251 "localize": [ "th" ]
252 },
253 "fi-FI": {
254 "localize": [ "fi" ]
255 },
256 "nl-NL": {
257 "localize": [ "nl" ]
258 },
259 "gd": {
260 "localize": [ "gd" ]
261 },
262 "el-GR": {
263 "localize": [ "el" ]
264 },
265 "es-ES": {
266 "localize": [ "es" ]
267 },
268 "oc": {
269 "localize": [ "oc" ]
270 },
271 "pt-BR": {
272 "localize": [ "pt" ]
273 },
274 "pt-PT": {
275 "localize": [ "pt-PT" ]
276 },
277 "sv-SE": {
278 "localize": [ "sv" ]
279 },
280 "pl-PL": {
281 "localize": [ "pl" ]
282 },
283 "ru-RU": {
284 "localize": [ "ru" ]
285 },
286 "zh-Hans-CN": {
287 "localize": [ "zh-Hans" ]
288 },
289 "zh-Hant-TW": {
290 "localize": [ "zh-Hant" ]
291 },
292 "fr-FR": {
293 "localize": [ "fr" ]
294 },
295 "ja-JP": {
296 "localize": [ "ja" ]
297 },
298 "eu-ES": {
299 "localize": [ "eu" ]
300 },
301 "ca-ES": {
302 "localize": [ "ca" ]
303 },
304 "cs-CZ": {
305 "localize": [ "cs" ]
306 },
307 "eo": {
308 "localize": [ "eo" ]
309 },
310 "de-DE": {
311 "localize": [ "de" ]
312 },
313 "it-IT": {
314 "localize": [ "it" ]
315 },
316 "vi-VN": {
317 "localize": [ "vi" ]
318 },
319 "kab": {
320 "localize": [ "kab" ]
321 } 246 }
322 } 247 }
323 }, 248 },