aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n/create-custom-files.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-17 15:36:03 +0200
committerChocobozzz <me@florianbigard.com>2022-08-17 15:36:03 +0200
commit690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3 (patch)
treeb16b8536acd2098aba8c1d6fe13a336dd6aa01a9 /scripts/i18n/create-custom-files.ts
parentbbd5aa7ead5f1554a0872963f957effc26d8c630 (diff)
downloadPeerTube-690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3.tar.gz
PeerTube-690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3.tar.zst
PeerTube-690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3.zip
Prefer using Object.values
Diffstat (limited to 'scripts/i18n/create-custom-files.ts')
-rwxr-xr-xscripts/i18n/create-custom-files.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts
index e52909c43..8179cb43f 100755
--- a/scripts/i18n/create-custom-files.ts
+++ b/scripts/i18n/create-custom-files.ts
@@ -1,5 +1,4 @@
1import { writeJSON } from 'fs-extra' 1import { writeJSON } from 'fs-extra'
2import { values } from 'lodash'
3import { join } from 'path' 2import { join } from 'path'
4import { root } from '@shared/core-utils' 3import { root } from '@shared/core-utils'
5import { 4import {
@@ -65,13 +64,13 @@ Object.assign(playerKeys, videojs)
65 64
66// Server keys 65// Server keys
67const serverKeys: any = {} 66const serverKeys: any = {}
68values(VIDEO_CATEGORIES) 67Object.values(VIDEO_CATEGORIES)
69 .concat(values(VIDEO_LICENCES)) 68 .concat(Object.values(VIDEO_LICENCES))
70 .concat(values(VIDEO_PRIVACIES)) 69 .concat(Object.values(VIDEO_PRIVACIES))
71 .concat(values(VIDEO_STATES)) 70 .concat(Object.values(VIDEO_STATES))
72 .concat(values(VIDEO_IMPORT_STATES)) 71 .concat(Object.values(VIDEO_IMPORT_STATES))
73 .concat(values(VIDEO_PLAYLIST_PRIVACIES)) 72 .concat(Object.values(VIDEO_PLAYLIST_PRIVACIES))
74 .concat(values(VIDEO_PLAYLIST_TYPES)) 73 .concat(Object.values(VIDEO_PLAYLIST_TYPES))
75 .concat([ 74 .concat([
76 'This video does not exist.', 75 'This video does not exist.',
77 'We cannot fetch the video. Please try again later.', 76 'We cannot fetch the video. Please try again later.',