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

fix(PWA): broken translation strings #2359

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Oct 30, 2024

Broken after #1856

  • 2nd argument in translation function are the variables, not the context. Here 2nd argument is being passed as null and the variables are being passed as the context

    Incorrect: __("string", context, variables)
    Correct: __("string", variables, context)

  • translation function __ was being used without injecting

  • simplified some other translation strings

@ruchamahabal ruchamahabal merged commit b4a92e5 into frappe:develop Oct 30, 2024
9 checks passed
ruchamahabal added a commit that referenced this pull request Oct 30, 2024
…2359

fix(PWA): broken translation strings (backport #2359)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant