From 383225aa54af65a67c1b7e68813b5c0ffa7b249d Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 8 Jul 2024 18:05:08 -0400 Subject: sort the same way as weblate --- frontend/i18next-parser.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/i18next-parser.config.mjs b/frontend/i18next-parser.config.mjs index c2c4f194..4d592645 100644 --- a/frontend/i18next-parser.config.mjs +++ b/frontend/i18next-parser.config.mjs @@ -58,7 +58,7 @@ export default { // An array of globs that describe where to look for source files // relative to the location of the configuration file - sort: true, + sort: (a, b) => a.localeCompare(b, undefined, { numeric: true }), // Whether or not to sort the catalog. Can also be a [compareFunction](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#parameters) verbose: false, -- cgit v1.2.3