memmy
memmy copied to clipboard
Language fallback
PR Creator Checklist
Ensure you've checked the following before submitting your PR:
- [X] You've discussed making your changes with a member of the dev team per contributing rules in the README
- [X] Your changes are free of any lint errors
- [X] Your changes are free of any typescript errors
- [X] You've tested your changes
Summary
It implements a logic for fallback languages. Ultimately all languages will fall back to en-US
instead of showing the raw translation key. That way its still visible if a translation is missing but you can still "understand" it (as long as you know english).
It will also now use the full translations code (e.g. en-US, de-DE) if possible but fall back to existing ones (e.g. de-AU will fall back to de-DE)
Screenshots
Nothing changed in the UI..
Test Plan
- Start the Simulator
- Go to Settings
- Read the "Check Lemmy Status" label
- switch to czech or romanian (those don't have that translation
- It will still read the english label instead of some cryptic stuff