-
Notifications
You must be signed in to change notification settings - Fork 67
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
Localization is working partially #1768
Comments
Hi @kacpr , thanks for reaching out and providing all the details. This is the intended behavior currently, we parse the locale based on Java's Locale forLanguageTag method, which means that Can your backend change the |
Hi @jreij !
These beahviors gave us false leads (mixed translations -> checking for overrides; Android vs iOS - searching for bugs in Android) and cost us some time :) I strongly believe it's possible to fix these discrepancies (e.g. informing about invalid format; fixing mixed translations), which will probably spare some time to other teams and make the dropin more user-friendly :) |
@kacpr good points! It makes sense that we support locales formatted with underscores if the backend and iOS do. We already raised this point internally and we're discussing the best way to solve it. But for now good to hear that using Thanks again for raising this, I will change this issue into an enhancement and keep it open to provide updates later when it's resolved. |
Awesome! Thanks @jreij |
Description
Strings in dropin are translated partially.
When
shopperLocale
is set to:Backend uses
sessions
integration flow.Backend set
shopperLocale
to "pl_PL".Android app receives
CheckoutSession
withSessionSetupResponse.shopperLocale
set to"pl_PL"
.Since strings in dropin are partially translated, I believe there are multiple call sites and methods that try to obtain locale and this flow isn't bulletproof.
Expected behavior (possible solutions):
shopperLocale
properly or inform about invalid formatSteps to Reproduce
CheckoutSession
fromSessionSetupResponse.createSession()
CheckoutSession
from stepi
with overwrittenSessionSetupResponse.shopperLocale
("pl_PL")"pl_PL" (check
Blik z kodem
andKarta bankowa
):"pl-PL":
Code Snippets
Maybe this will be helpful:
during debugging I found that those methods weren't using / returning correct locale:
Integration Information
Additional Context
Related issues:
Adyen/adyen-react-native#15
#1558
#680
Keywords: localization, translations, language, resources
The text was updated successfully, but these errors were encountered: