]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/i18n/create-custom-files.ts
Optimize server eslint
[github/Chocobozzz/PeerTube.git] / scripts / i18n / create-custom-files.ts
index a8e0c7a0e432515efdce97834f300310aa96ebcd..d9328b1257879f1f6159e5db9ca07dc53f04bd5c 100755 (executable)
@@ -1,7 +1,9 @@
+import { registerTSPaths } from '../../server/helpers/register-ts-paths'
+registerTSPaths()
+
 import { writeJSON } from 'fs-extra'
 import { values } from 'lodash'
 import { join } from 'path'
-import { registerTSPaths } from '../../server/helpers/register-ts-paths'
 import {
   buildLanguages,
   VIDEO_CATEGORIES,
@@ -14,8 +16,6 @@ import {
 } from '../../server/initializers/constants'
 import { I18N_LOCALES } from '../../shared/core-utils/i18n'
 
-registerTSPaths()
-
 const videojs = require(join(__dirname, '../../../client/src/locale/videojs.en-US.json'))
 const playerKeys = {
   'Quality': 'Quality',
@@ -32,7 +32,30 @@ const playerKeys = {
   'Copy embed code': 'Copy embed code',
   'Copy magnet URI': 'Copy magnet URI',
   'Total downloaded: ': 'Total downloaded: ',
-  'Total uploaded: ': 'Total uploaded: '
+  'Total uploaded: ': 'Total uploaded: ',
+  'From servers: ': 'From servers: ',
+  'From peers: ': 'From peers: ',
+  'Normal mode': 'Normal mode',
+  'Stats for nerds': 'Stats for nerds',
+  'Theater mode': 'Theater mode',
+  'Video UUID': 'Video UUID',
+  'Viewport / Frames': 'Viewport / Frames',
+  'Resolution': 'Resolution',
+  'Volume': 'Volume',
+  'Codecs': 'Codecs',
+  'Color': 'Color',
+  'Connection Speed': 'Connection Speed',
+  'Network Activity': 'Network Activity',
+  'Total Transfered': 'Total Transfered',
+  'Download Breakdown': 'Download Breakdown',
+  'Buffer Progress': 'Buffer Progress',
+  'Buffer State': 'Buffer State',
+  'Live Latency': 'Live Latency',
+  'P2P': 'P2P',
+  'enabled': 'enabled',
+  'disabled': 'disabled',
+  '  off': '  off',
+  'Player mode': 'Player mode'
 }
 Object.assign(playerKeys, videojs)
 
@@ -54,9 +77,7 @@ values(VIDEO_CATEGORIES)
     'We cannot fetch the playlist. Please try again later.',
     'Playlist: {1}',
     'By {1}',
-    'Unavailable video',
-    'Normal mode',
-    'Theater mode'
+    'Unavailable video'
   ])
   .forEach(v => { serverKeys[v] = v })