We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29421c9 commit 8898ce5Copy full SHA for 8898ce5
scripts/organize-translations.js
@@ -26,7 +26,7 @@ fs.readdir(translationsPath, (err, files) => {
26
const obj = JSON.parse(data);
27
28
// Sort the object keys alphabetically
29
- const sortedObj = Object.keys(obj).sort().reduce((acc, key) => {
+ const sortedObj = Object.keys(obj).sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())).reduce((acc, key) => {
30
acc[key] = obj[key];
31
return acc;
32
}, {});
0 commit comments