Ensure deterministic string order in translation files
Background / User story
For #740 (closed) we had to make multiple corrections to strings on Crowdin which we then merged together at the end for creating the MR. That appears to have led to strings in desktop-options.json no longer being in alphabetical order, which made the diff excessively large and impractical to review. Therefore we should not rely on Crowdin's or XTM's order of strings but instead enforce a deterministic string orde ourselves.
What to change
- Design: N/A
- Research: N/A
- Spec: N/A
- Development: Sort strings by string ID in alphabetical order after downloading translations from Crowdin or XTM.
Hints for testers
- In translation files: Strings (by string ID) and placeholders (by placeholder name) should be in alphabetical order after downloading translations from Crowdin/XTM.
- No errors should be thrown when trying to run any of the following translation syncing commands (see utilities):
- crowdin.download-translations
- csv-import
- xtm.download
Hints for translators
None.
Integration notes
N/A
Edited by Thomas Greiner