]> Untitled Git - lemmy-ui.git/commitdiff
Add scripts to make managing translations easier (#1414)
authorSleeplessOne1917 <abias1122@gmail.com>
Tue, 20 Jun 2023 11:57:09 +0000 (11:57 +0000)
committerGitHub <noreply@github.com>
Tue, 20 Jun 2023 11:57:09 +0000 (07:57 -0400)
package.json

index 554bd234b5ee126f3d5386cc100f61a878f744ba..6c0e7a2a248b719a402d310981f6ce8ad175afad 100644 (file)
     "build:prod": "webpack --mode=production",
     "clean": "yarn run rimraf dist",
     "dev": "yarn start",
-    "lint": "node generate_translations.js && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
+    "lint": "yarn translations:generate && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
     "prepare": "husky install",
     "start": "yarn build:dev --watch",
     "themes:build": "sass src/assets/css/themes/:src/assets/css/themes",
-    "themes:watch": "sass --watch src/assets/css/themes/:src/assets/css/themes"
+    "themes:watch": "sass --watch src/assets/css/themes/:src/assets/css/themes",
+    "translations:generate": "node generate_translations.js",
+    "translations:init": "git submodule init && yarn translations:update",
+    "translations:update": "git submodule update --remote --recursive"
   },
   "lint-staged": {
     "*.{ts,tsx,js}": [