diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-03 10:26:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-06 11:19:16 +0200 |
commit | 7e5f9f001d5de22c54748f935edc0c069028bb0e (patch) | |
tree | d07ac657b1bc49a61b6f57f2d2ba8af66dd105bd /scripts/i18n/create-custom-files.ts | |
parent | 2b86fe727490fc0e42c0d147d98c0df612d5507c (diff) | |
download | PeerTube-7e5f9f001d5de22c54748f935edc0c069028bb0e.tar.gz PeerTube-7e5f9f001d5de22c54748f935edc0c069028bb0e.tar.zst PeerTube-7e5f9f001d5de22c54748f935edc0c069028bb0e.zip |
Add audit logs for video import
Diffstat (limited to 'scripts/i18n/create-custom-files.ts')
-rwxr-xr-x | scripts/i18n/create-custom-files.ts | 11 |
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 @@ | |||
1 | import * as jsToXliff12 from 'xliff/jsToXliff12' | 1 | import * as jsToXliff12 from 'xliff/jsToXliff12' |
2 | import { writeFile } from 'fs' | 2 | import { writeFile } from 'fs' |
3 | import { join } from 'path' | 3 | import { join } from 'path' |
4 | import { buildLanguages, VIDEO_CATEGORIES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../server/initializers/constants' | 4 | import { |
5 | buildLanguages, | ||
6 | VIDEO_CATEGORIES, | ||
7 | VIDEO_IMPORT_STATES, | ||
8 | VIDEO_LICENCES, | ||
9 | VIDEO_PRIVACIES, | ||
10 | VIDEO_STATES | ||
11 | } from '../../server/initializers/constants' | ||
5 | import { values } from 'lodash' | 12 | import { values } from 'lodash' |
6 | 13 | ||
7 | type TranslationType = { | 14 | type TranslationType = { |
@@ -33,6 +40,8 @@ const serverKeys: any = {} | |||
33 | values(VIDEO_CATEGORIES) | 40 | values(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 |