mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-12-05 01:10:36 +00:00
Fix update script
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user