Closed adil192 closed 1 year ago
I cannot reproduce this. It replaces entries in place and skips not existent keys on my examples
skips not existent keys
Are you referring to missing keys or (OUTDATED)
keys?
The outdated keys
Hmmm... maybe it only affects yaml?
Turns out it's not the OUTDATED flag that's the problem.
Running e.g. dart run slang edit add fr greetings.hello "Bonjour"
always puts the new translation at the end rather than in the order of the base locale.
Motivation
Putting OUTDATED translations at the end results in messy hard-to-read git diffs.
For example, see https://github.com/adil192/saber/commit/eed1be52641f3f69c04689ac903404c4ff2fe9e8. Only two strings were actually changed, but it's very hard to see that just from looking at the diff:
Developer Experience
There should be no change in usage