i18n-ally
i18n-ally copied to clipboard
add option to sorting message by a locale's order
i18n Ally uses a binary sort when it sorts keys. This is unexpected ("O" is sorted before "o") and doesn't take differences in how languages sort things into account.
This change adds two config settings sortCompare
and sortLocale
.
- By default
sortCompare
isbinary
which is the current behaviour - You can set
sortCompare
tolocale
and setsortLocale
toen
and keys will be ordered according to English rules for sorting text. - Alternatively you can set
sortCompare
tolocale
and leavesortLocale
unspecified and each messages file will be sorted according to its own locale (e.g.en/common.json
will be sorted using English order, whilees/common.json
will be sorted according to Spanish order).
Fixes #702
Is there anything that can be done to move this along? Would really love to be able to use this feature.
I don't know. Nothing has been committed to this project since October. And an issue discussing the state of the project (#694) was closed by the opener because maintenance was promised to happen in December and then the maintainers disappeared.
Maybe, it is better to work on a fork: https://github.com/openscript-ch/i18n-ally-fork/issues/1