1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00
This commit is contained in:
Chocobozzz 2025-05-30 13:26:11 +02:00
parent c817c2839d
commit 200c5eb463
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -1,12 +1,11 @@
import { readJsonSync, writeJSON } from 'fs-extra/esm' import { USER_ROLE_LABELS } from '@peertube/peertube-core-utils'
import { join } from 'path'
import { I18N_LOCALES, USER_ROLE_LABELS } from '@peertube/peertube-core-utils'
import { root } from '@peertube/peertube-node-utils' import { root } from '@peertube/peertube-node-utils'
import { import {
ABUSE_STATES, ABUSE_STATES,
buildLanguages, buildLanguages,
RUNNER_JOB_STATES, RUNNER_JOB_STATES,
USER_EXPORT_STATES, USER_EXPORT_STATES,
USER_IMPORT_STATES,
USER_REGISTRATION_STATES, USER_REGISTRATION_STATES,
VIDEO_CATEGORIES, VIDEO_CATEGORIES,
VIDEO_CHANNEL_SYNC_STATE, VIDEO_CHANNEL_SYNC_STATE,
@ -15,10 +14,11 @@ import {
VIDEO_PLAYLIST_PRIVACIES, VIDEO_PLAYLIST_PRIVACIES,
VIDEO_PLAYLIST_TYPES, VIDEO_PLAYLIST_TYPES,
VIDEO_PRIVACIES, VIDEO_PRIVACIES,
USER_IMPORT_STATES,
VIDEO_STATES VIDEO_STATES
} from '@peertube/peertube-server/core/initializers/constants.js' } from '@peertube/peertube-server/core/initializers/constants.js'
import { readJsonSync, writeJSON } from 'fs-extra/esm'
import { readdir } from 'fs/promises' import { readdir } from 'fs/promises'
import { join } from 'path'
const videojs = readJsonSync(join(root(), 'client', 'src', 'locale', 'videojs.en-US.json')) const videojs = readJsonSync(join(root(), 'client', 'src', 'locale', 'videojs.en-US.json'))
const playerKeys = { const playerKeys = {