aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n/create-custom-files.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-30 14:54:31 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-31 11:32:04 +0200
commitf0af38e69677d1afe17e48b3f5267128db3db1a4 (patch)
tree98dd8c4ac07e7d77e0c46407e50a5b0f6aaecc43 /scripts/i18n/create-custom-files.ts
parent7abb5c5da1ed7c6945e81b9e3da0a14f623f69ea (diff)
downloadPeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.gz
PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.zst
PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.zip
Fix lint
Diffstat (limited to 'scripts/i18n/create-custom-files.ts')
-rwxr-xr-xscripts/i18n/create-custom-files.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts
index d39a15974..2862b230e 100755
--- a/scripts/i18n/create-custom-files.ts
+++ b/scripts/i18n/create-custom-files.ts
@@ -50,18 +50,18 @@ values(VIDEO_CATEGORIES)
50 'Sorry', 50 'Sorry',
51 'This video is not available because the remote instance is not responding.' 51 'This video is not available because the remote instance is not responding.'
52 ]) 52 ])
53 .forEach(v => serverKeys[v] = v) 53 .forEach(v => { serverKeys[v] = v })
54 54
55// More keys 55// More keys
56Object.assign(serverKeys, { 56Object.assign(serverKeys, {
57 'Misc': 'Misc', 57 Misc: 'Misc',
58 'Unknown': 'Unknown' 58 Unknown: 'Unknown'
59}) 59})
60 60
61// ISO 639 keys 61// ISO 639 keys
62const languageKeys: any = {} 62const languageKeys: any = {}
63const languages = buildLanguages() 63const languages = buildLanguages()
64Object.keys(languages).forEach(k => languageKeys[languages[k]] = languages[k]) 64Object.keys(languages).forEach(k => { languageKeys[languages[k]] = languages[k] })
65 65
66Object.assign(serverKeys, languageKeys) 66Object.assign(serverKeys, languageKeys)
67 67