aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-03 10:26:47 +0200
committerChocobozzz <me@florianbigard.com>2018-08-06 11:19:16 +0200
commit7e5f9f001d5de22c54748f935edc0c069028bb0e (patch)
treed07ac657b1bc49a61b6f57f2d2ba8af66dd105bd /scripts/i18n
parent2b86fe727490fc0e42c0d147d98c0df612d5507c (diff)
downloadPeerTube-7e5f9f001d5de22c54748f935edc0c069028bb0e.tar.gz
PeerTube-7e5f9f001d5de22c54748f935edc0c069028bb0e.tar.zst
PeerTube-7e5f9f001d5de22c54748f935edc0c069028bb0e.zip
Add audit logs for video import
Diffstat (limited to 'scripts/i18n')
-rwxr-xr-xscripts/i18n/create-custom-files.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts
index a297fa79c..c4f8411e1 100755
--- a/scripts/i18n/create-custom-files.ts
+++ b/scripts/i18n/create-custom-files.ts
@@ -1,7 +1,14 @@
1import * as jsToXliff12 from 'xliff/jsToXliff12' 1import * as jsToXliff12 from 'xliff/jsToXliff12'
2import { writeFile } from 'fs' 2import { writeFile } from 'fs'
3import { join } from 'path' 3import { join } from 'path'
4import { buildLanguages, VIDEO_CATEGORIES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../server/initializers/constants' 4import {
5 buildLanguages,
6 VIDEO_CATEGORIES,
7 VIDEO_IMPORT_STATES,
8 VIDEO_LICENCES,
9 VIDEO_PRIVACIES,
10 VIDEO_STATES
11} from '../../server/initializers/constants'
5import { values } from 'lodash' 12import { values } from 'lodash'
6 13
7type TranslationType = { 14type TranslationType = {
@@ -33,6 +40,8 @@ const serverKeys: any = {}
33values(VIDEO_CATEGORIES) 40values(VIDEO_CATEGORIES)
34 .concat(values(VIDEO_LICENCES)) 41 .concat(values(VIDEO_LICENCES))
35 .concat(values(VIDEO_PRIVACIES)) 42 .concat(values(VIDEO_PRIVACIES))
43 .concat(values(VIDEO_STATES))
44 .concat(values(VIDEO_IMPORT_STATES))
36 .forEach(v => serverKeys[v] = v) 45 .forEach(v => serverKeys[v] = v)
37 46
38// More keys 47// More keys