diff options
Diffstat (limited to 'scripts')
-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 |