Fix update script

This commit is contained in:
Chocobozzz
2025-10-28 16:10:01 +01:00
parent b822a2ac49
commit 2aa62a0383
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ import {
VIDEO_PLAYLIST_TYPES,
VIDEO_PRIVACIES,
VIDEO_STATES
} from '@peertube/peertube-server/core/initializers/constants.js'
} from '../../server/core/initializers/constants.js'
import { readJsonSync, writeJSON } from 'fs-extra/esm'
import { readdir } from 'fs/promises'
import { join } from 'path'

View File

@@ -12,7 +12,7 @@ npm run ng -- extract-i18n --out-file src/locale/angular.xlf
locales=$(find src/locale -type f | grep -e 'angular\.[^.]\+\.xlf' | sed 's#^src/locale/angular.##' | sed 's/\.xlf$//' | sort -u | tr '\n' ' ')
# Merge new translations in other language files
node ./node_modules/.bin/xliffmerge -p ./.xliffmerge.json $locales
./node_modules/.bin/xliffmerge -p ./.xliffmerge.json $locales
(
cd src/locale
@@ -27,5 +27,5 @@ cd ../
npm run i18n:create-custom-files
# Generate server translations
node ./node_modules/.bin/i18next -c server/.i18next-parser.config.ts 'server/core/**/*.{ts,hbs}'
./node_modules/.bin/i18next -c server/.i18next-parser.config.ts 'server/core/**/*.{ts,hbs}'