From ec5f0eedcfe69934616bd893177b0ae8cb4276b5 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 25 Aug 2024 10:34:55 +0200 Subject: [PATCH] Fix tests --- scripts/generateTranslations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generateTranslations.ts b/scripts/generateTranslations.ts index d513f2c47e..a77a21d89c 100644 --- a/scripts/generateTranslations.ts +++ b/scripts/generateTranslations.ts @@ -436,7 +436,7 @@ function transformTranslation( * * // Should sort like weblate does * const result = stringifySorted({"1": "abc", "2": "def", "9": "ghi", "10": "xyz", "11": "uvw"}) - * result // => '{"1": "abc","10": "xyz","11": "uvw","2": "def","9", "ghi"}' + * result // => '{"1": "abc","10": "xyz","11": "uvw","2": "def","9": "ghi"}' */ function stringifySorted(o: object, space: string = undefined, depth = 0): string { const keys = Object.keys(o)