Skip to content

Per-app language preferences in Android 13 #12458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
criticalAY opened this issue Sep 19, 2022 · 1 comment
Closed

Per-app language preferences in Android 13 #12458

criticalAY opened this issue Sep 19, 2022 · 1 comment

Comments

@criticalAY
Copy link
Contributor

criticalAY commented Sep 19, 2022

We know that android 13 is supporting per app language. And we can access that by :: Settings > System > Languages & Input > App Languages > selecting the app(our case AnkiDroid)

We can add this to our application. Would be more convenient?

We can achieve so by placing android:localeConfig attribute in your app's manifest. And complete the whole procedure?

@mikehardy
Copy link
Member

It is...a lot more difficult then that I think. We have considered it, or at least I have considered it.
It's really important to know what problem you are trying to solve.
Check these out:
#10027 (comment)
#10027 (comment)

So the problem is multiple:

  • including all translations (including the manual) will add 1MB per locale, so we want to only include the necessary ones
  • ABB upload format (still in future for us...) will allow it to be per-locale, but then what about people with different in-app languages? What about APK users (non-play store users, we have a lot! We are popular on F-Droid for instance)
  • Play Store APIs allow ABB users to then download locale packs for their in-app languages but...what about APK users again?

So I think first of all this is definitely less convenient. Using Play Store APIs means we have complicated our build system because we always need to handle non-play store delivery (via APK via source build from F-Droid for example)

It is potentially useful, but that would only be if we included translations of the manual for offline use, because then the size exapansion is so big that we want to ship only the locale people need. But then we have the ABB complication, new google APIs to implement, and still ship everything in the APK.

So in general I'm going to say no, this is not on our radar right now. It is not something we can feasibly implement.

For now the manual will still be offline in English only, online for the rest, and we'll ship all locales without messing with our build system or any Google APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants