diff --git a/build/index.js b/build/index.js
index 4dd7708..c711ed6 100644
--- a/build/index.js
+++ b/build/index.js
@@ -30,7 +30,16 @@ async function listLocaleJson(localeArr) {
name: localeData.match(localeNameRegex)[1]
})
}))
- promisifyWriteFile(path.join(__dirname, '../locale.json'), JSON.stringify(localeListArr), 'utf8')
+ const out = localeListArr.sort((a, b) => {
+ if (a.key < b.key) return -1;
+ if (a.key > b.key) return 1;
+ return 0;
+ });
+ promisifyWriteFile(
+ path.join(__dirname, '../locale.json'),
+ JSON.stringify(out, null, 2) + '\n',
+ 'utf8'
+ );
}
From debian could you apply this patch
It keep locale filesystem order independant: