Memmy-App / memmy

An Apollo inspired open-source iOS and Android client for Lemmy built with React-Native. Find us on the App Store and Google Play!
GNU Affero General Public License v3.0
547 stars 58 forks source link

Language fallback #943

Open flx-sta opened 1 year ago

flx-sta commented 1 year ago

PR Creator Checklist

Ensure you've checked the following before submitting your PR:

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

  1. Start the Simulator
  2. Go to Settings
  3. Read the "Check Lemmy Status" label
  4. switch to czech or romanian (those don't have that translation
  5. It will still read the english label instead of some cryptic stuff