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 undefined alerts when locale is missing #368

Merged
merged 1 commit into from
May 15, 2024

Conversation

Duddino
Copy link
Member

@Duddino Duddino commented May 14, 2024

Abstract

When translation is missing, MPW would alert undefined instead of fallbacking to the parent language.
This is because it was using the language to get a list of keys instead of the template, potentially missing some keys.

Testing

  • Unlock a wallet using the portuguese translation, it should display the message in english instead of showing undefined

@Duddino Duddino added the Bug This is either a bugfix (PR) or a bug (issue). label May 14, 2024
@Duddino Duddino self-assigned this May 14, 2024
Copy link

netlify bot commented May 14, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit 0a82adf
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/66435d13ef5b96000859260d
😎 Deploy Preview https://deploy-preview-368--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@Liquid369 Liquid369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 0a82adf

@Duddino Duddino merged commit e54fbb5 into PIVX-Labs:master May 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is either a bugfix (PR) or a bug (issue).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants