diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-30 14:54:31 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:32:04 +0200 |
commit | f0af38e69677d1afe17e48b3f5267128db3db1a4 (patch) | |
tree | 98dd8c4ac07e7d77e0c46407e50a5b0f6aaecc43 /scripts/i18n | |
parent | 7abb5c5da1ed7c6945e81b9e3da0a14f623f69ea (diff) | |
download | PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.gz PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.zst PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.zip |
Fix lint
Diffstat (limited to 'scripts/i18n')
-rwxr-xr-x | scripts/i18n/create-custom-files.ts | 8 |
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 |
56 | Object.assign(serverKeys, { | 56 | Object.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 |
62 | const languageKeys: any = {} | 62 | const languageKeys: any = {} |
63 | const languages = buildLanguages() | 63 | const languages = buildLanguages() |
64 | Object.keys(languages).forEach(k => languageKeys[languages[k]] = languages[k]) | 64 | Object.keys(languages).forEach(k => { languageKeys[languages[k]] = languages[k] }) |
65 | 65 | ||
66 | Object.assign(serverKeys, languageKeys) | 66 | Object.assign(serverKeys, languageKeys) |
67 | 67 | ||