]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/utils.ts
Fix bad translation in confirm dialog
[github/Chocobozzz/PeerTube.git] / server / helpers / utils.ts
index f326210f32886fd5136ee1511820cffeaed5bdd3..af5be0c69dcbc40b845c22bcd82b7c90d122d956 100644 (file)
@@ -14,19 +14,19 @@ function generateRandomString (size: number) {
 }
 
 interface FormatableToJSON {
-  toFormatedJSON ()
+  toFormattedJSON ()
 }
 
-function getFormatedObjects<U, T extends FormatableToJSON> (objects: T[], objectsTotal: number) {
-  const formatedObjects: U[] = []
+function getFormattedObjects<U, T extends FormatableToJSON> (objects: T[], objectsTotal: number) {
+  const formattedObjects: U[] = []
 
   objects.forEach(object => {
-    formatedObjects.push(object.toFormatedJSON())
+    formattedObjects.push(object.toFormattedJSON())
   })
 
   const res: ResultList<U> = {
     total: objectsTotal,
-    data: formatedObjects
+    data: formattedObjects
   }
 
   return res
@@ -52,6 +52,6 @@ function isSignupAllowed () {
 export {
   badRequest,
   generateRandomString,
-  getFormatedObjects,
+  getFormattedObjects,
   isSignupAllowed
 }