i18n-ally icon indicating copy to clipboard operation
i18n-ally copied to clipboard

add option to sorting message by a locale's order

Open dantman opened this issue 2 years ago • 3 comments

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 is binary which is the current behaviour
  • You can set sortCompare to locale and set sortLocale to en and keys will be ordered according to English rules for sorting text.
  • Alternatively you can set sortCompare to locale and leave sortLocale unspecified and each messages file will be sorted according to its own locale (e.g. en/common.json will be sorted using English order, while es/common.json will be sorted according to Spanish order).

Fixes #702

dantman avatar Dec 08 '21 23:12 dantman

Is there anything that can be done to move this along? Would really love to be able to use this feature.

traverse avatar Mar 29 '22 07:03 traverse

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.

dantman avatar Mar 29 '22 08:03 dantman

Maybe, it is better to work on a fork: https://github.com/openscript-ch/i18n-ally-fork/issues/1

arnonrdp avatar Mar 29 '22 10:03 arnonrdp