refactor(l10n): macro gen and verify all strings exist
Draft for #165 and (might) fix #74.
Implements basic macro generation for the localizations and verifies that all languages have all possible strings with a test.
It looks like the only way to generate a #[cfg(feature = "name")] is through a proc macro which would require a separate crate. Considering Edit's probably very intentional lack of dependencies and current structure I decided to leave that out at least for now.
I haven't formatted the macro yet because that work is better suited for when this is finished.
It might be worth adding a language switcher to the menubar as well if data storage is viable.
@microsoft-github-policy-service agree
I didn't realize #85 existed. I can rebase this off of those changes once it gets merged.
Admittedly I'm not that great at Git. I tried rebasing on the latest commit from main, but I'm not entirely sure if I did it right.
Edit: Definitely did not do that right. I ended up force pushing. lol
I may need to come back to this PR later, as I want to focus on bug fixes first. There's quite a few of them: https://github.com/microsoft/edit/issues?q=is%3Aissue%20state%3Aopen%20label%3AI-bug I don't plan to merge any of the translation PRs until after this PR (or some variant of this PR) has merged though, so hopefully there should be no further merge conflicts. 😊 Thank you for your patience!
Now that #591 we can close this PR. Thank you for your patience and I apologize that for the work you put into this. 🙈