mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.68k stars 349 forks source link

chore(prettier): add support to sort locale json files #1976

Closed meteyou closed 2 weeks ago

meteyou commented 3 weeks ago

Description

This PR add prettier support to sort locale option files. It needs an plugin for that and this plugin will only be used in src/locale/*.json files.

Related Tickets & Documents

Weblate only add new keys/translations at the bottom of each object. With this feature, prettier can fix this issue.

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

It would be nice to add a CI workflow, that sorts Weblate PRs automatical.

github-actions[bot] commented 3 weeks ago
Language file analysis report: File Missing Keys Unused Keys
nl.json 293 18
github-actions[bot] commented 3 weeks ago
Language file analysis report: File Missing Keys Unused Keys
nl.json 252 18
github-actions[bot] commented 2 weeks ago
Language file analysis report: File Missing Keys Unused Keys
nl.json 252 18
github-actions[bot] commented 2 weeks ago
Language file analysis report: File Missing Keys Unused Keys
da.json 6 8
es.json 0 17
fr.json 152 11
it.json 115 8
pl.json 180 9
ru.json 73 1
se.json 150 10