stripe / stripe-android

Stripe Android SDK
https://stripe.com/docs/mobile/android
MIT License
1.29k stars 645 forks source link

Greek Localization Issue - Payment Sheet Not Displaying in Greek for Most Users #8263

Open Nikolas253 opened 7 months ago

Nikolas253 commented 7 months ago

Users in Greece and Cyprus who have their device language set to Greek do not see the payment sheet in Greek, but in English instead.

This causes the Stripe payment sheet to remain in English because the strings for the general Greek locale are missing.

In Android development, the system selects language resources based on the availability of matching locale directories. For Greek, the lookup follows this order:

res/values-el-rGR/strings.xml (specific for Greece) res/values-el/strings.xml (general Greek) res/values/strings.xml (default) (English for my project)

Most devices in Greece and Cyprus are likely configured with the general Greek locale (el) rather than the country-specific Greek locale (el-GR). As a result, when the locale is set to el, Android skips res/values-el-rGR and falls back to the default res/values if res/values-el is not present.

To resolve this issue, I recommend adding a res/values-el/strings.xml resource file that includes all Greek translations. This will ensure that Greek users see the app in their language, regardless of whether their specific locale is el.

amk-stripe commented 7 months ago

Thanks for letting us know! We will look into supporting this locale correctly