diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-17 08:49:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-04-17 08:49:52 +0200 |
commit | fee3d77d63bbd9e995c297821bae4d459dfbd525 (patch) | |
tree | f352f0235139dfe9213f770068fbf300b0fc1bd9 /scripts/i18n/create-custom-files.ts | |
parent | e7c89cc3f3e69776c6ad62e62a52f8d2f12a81c1 (diff) | |
download | PeerTube-fee3d77d63bbd9e995c297821bae4d459dfbd525.tar.gz PeerTube-fee3d77d63bbd9e995c297821bae4d459dfbd525.tar.zst PeerTube-fee3d77d63bbd9e995c297821bae4d459dfbd525.zip |
Add user role label to translatable strings
Diffstat (limited to 'scripts/i18n/create-custom-files.ts')
-rwxr-xr-x | scripts/i18n/create-custom-files.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts index 7d03346a0..9e0e4bba6 100755 --- a/scripts/i18n/create-custom-files.ts +++ b/scripts/i18n/create-custom-files.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { writeJSON } from 'fs-extra' | 1 | import { writeJSON } from 'fs-extra' |
2 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { root } from '@shared/core-utils' | 3 | import { root, USER_ROLE_LABELS } from '@shared/core-utils' |
4 | import { | 4 | import { |
5 | buildLanguages, | 5 | buildLanguages, |
6 | VIDEO_CATEGORIES, | 6 | VIDEO_CATEGORIES, |
@@ -78,6 +78,7 @@ Object.values(VIDEO_CATEGORIES) | |||
78 | .concat(Object.values(VIDEO_IMPORT_STATES)) | 78 | .concat(Object.values(VIDEO_IMPORT_STATES)) |
79 | .concat(Object.values(VIDEO_PLAYLIST_PRIVACIES)) | 79 | .concat(Object.values(VIDEO_PLAYLIST_PRIVACIES)) |
80 | .concat(Object.values(VIDEO_PLAYLIST_TYPES)) | 80 | .concat(Object.values(VIDEO_PLAYLIST_TYPES)) |
81 | .concat(Object.values(USER_ROLE_LABELS)) | ||
81 | .concat([ | 82 | .concat([ |
82 | 'This video does not exist.', | 83 | 'This video does not exist.', |
83 | 'We cannot fetch the video. Please try again later.', | 84 | 'We cannot fetch the video. Please try again later.', |