diff --git a/client/tsconfig.base.json b/client/tsconfig.base.json
index 2ce7e27e2..9f63ac11a 100644
--- a/client/tsconfig.base.json
+++ b/client/tsconfig.base.json
@@ -43,6 +43,7 @@
   "angularCompilerOptions": {
     "strictInjectionParameters": true,
     "fullTemplateTypeCheck": true,
-    "strictTemplates": true
+    "strictTemplates": true,
+    "enableI18nLegacyMessageIdFormat": true
   }
 }
diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh
index f42d8d38a..822344cdd 100755
--- a/scripts/i18n/update.sh
+++ b/scripts/i18n/update.sh
@@ -4,10 +4,8 @@ set -eu
 
 git fetch weblate && git merge weblate/develop
 
-npm run build -- --i18n
-
 cd client
-./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf
+npm run ng -- extract-i18n --i18n-locale "en-US" --out-file  src/locale/angular.xlf src/locale/angular.xlf
 
 # Merge new translations in other language files
 npm run ng run -- PeerTube:xliffmerge