Skip to content
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

Send user's current language code to Littlepay overlay #2195

Closed
2 tasks
thekaveman opened this issue Jul 3, 2024 · 0 comments · Fixed by #2250
Closed
2 tasks

Send user's current language code to Littlepay overlay #2195

thekaveman opened this issue Jul 3, 2024 · 0 comments · Fixed by #2250
Assignees
Labels
back-end Django views, sessions, middleware, models, migrations etc. front-end HTML/CSS/JavaScript and Django templates i18n Copy: Language files or Django i18n framework

Comments

@thekaveman
Copy link
Member

thekaveman commented Jul 3, 2024

The Littlepay Hosted Card Tokenization overlay supports multiple languages. We can grab the user's current language and send it with the template context to use in the configuration of that overlay.

Acceptance Criteria

  • The Littlepay Hosted Card Tokenization overlay displays in English if the user is currently viewing Benefits in English
  • The Littlepay Hosted Card Tokenization overlay displays in Spanish if the user is currently viewing Benefits in Spanish

Additional context

Littlepay docs on localization of the overlay

Note that Littlepay supports 2 dialects of Spanish:

Code Description
es Spanish
es_419 Spanish (Latin America)

We should use the Latin America dialect as that is likely closer to our target population in California.

@thekaveman thekaveman added front-end HTML/CSS/JavaScript and Django templates back-end Django views, sessions, middleware, models, migrations etc. i18n Copy: Language files or Django i18n framework labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. front-end HTML/CSS/JavaScript and Django templates i18n Copy: Language files or Django i18n framework
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants