fnando / i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
MIT License
3.77k stars 520 forks source link

Sort translations after filtering them out. #695

Closed fnando closed 1 year ago

fnando commented 1 year ago
PR Checklist ### PR Structure - [x] This PR has reasonably narrow scope (if not, break it down into smaller PRs). - [x] This PR avoids mixing refactoring changes with feature changes (split into two PRs otherwise). - [x] This PR's title starts is concise and descriptive. ### Thoroughness - [x] This PR adds tests for the most critical parts of the new functionality or fixes. - [x] I've updated any docs, `.md` files, etc… affected by this change.

What

Deep sort translations after filtering them out.

Why

This is one of the advertised features of v4, but turns I never actually implemented it.

Close #691.

Known limitations

Given this is a built-in behaviour, it can't be disabled nor replaced.