Translation files are now in public/

This commit is contained in:
Johannes Zellner
2024-10-04 15:06:30 +02:00
parent 7669b77069
commit 4e0961ae5a
2 changed files with 8 additions and 2 deletions

View File

@@ -2,8 +2,14 @@
set -eu
echo "=> Update translation files"
npm run update-translations
echo "=> Create timezones.js"
./scripts/createTimezones.js ./public/js/timezones.js
echo "=> Build theme.css"
./node_modules/.bin/sass -I node_modules/bootstrap-sass/assets/stylesheets/ ./src/theme.scss ./public/theme.css
./node_modules/.bin/vite build
echo "=> Build the dashboard apps"
./node_modules/.bin/vite build

View File

@@ -4,7 +4,7 @@
"description": "[Cloudron](https://cloudron.io) is the best way to run apps on your server.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"update-translations": "curl https://translate.cloudron.io/api/components/cloudron/dashboard/file/ -o lang.zip && unzip -jo lang.zip -d ./src/translation/ && rm lang.zip"
"update-translations": "curl https://translate.cloudron.io/api/components/cloudron/dashboard/file/ -o lang.zip && unzip -jo lang.zip -d ./public/translation/ && rm lang.zip"
},
"repository": {
"type": "git",