Skip to content

Commit 8898ce5

Browse files
committed
chore: sort translation keys alphabetically ignoring case
1 parent 29421c9 commit 8898ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/organize-translations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fs.readdir(translationsPath, (err, files) => {
2626
const obj = JSON.parse(data);
2727

2828
// Sort the object keys alphabetically
29-
const sortedObj = Object.keys(obj).sort().reduce((acc, key) => {
29+
const sortedObj = Object.keys(obj).sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())).reduce((acc, key) => {
3030
acc[key] = obj[key];
3131
return acc;
3232
}, {});

0 commit comments

Comments
 (0)