]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/client.ts
Add search for video, reporter and channel name fields
[github/Chocobozzz/PeerTube.git] / server / controllers / client.ts
index 20689fb58a7957e3d2848722f8c723262aa39991..08c0f1fa61b40958a01538086104abf30cfcdbed 100644 (file)
@@ -76,7 +76,7 @@ function serveServerTranslations (req: express.Request, res: express.Response) {
   const locale = req.params.locale
   const file = req.params.file
 
-  if (is18nLocale(locale) && LOCALE_FILES.indexOf(file) !== -1) {
+  if (is18nLocale(locale) && LOCALE_FILES.includes(file)) {
     const completeLocale = getCompleteLocale(locale)
     const completeFileLocale = buildFileLocale(completeLocale)