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

i18n Modal Fixes #254

Merged
merged 7 commits into from Nov 9, 2023
Merged

i18n Modal Fixes #254

merged 7 commits into from Nov 9, 2023

Conversation

JSKitty
Copy link
Member

@JSKitty JSKitty commented Nov 8, 2023

Abstract

Some modals and minor UI elements were not rendering the i18n lang, defaulting to English, like the Seed Phrase creation or "Encrypt/Change Pass" modals, now it renders using i18n.

This PR also removes what seems to be "duplicated" HTML, since the Seed Phrase Vue template already contains the entire modal, the index.html didn't need a clone of it.

This PR also solves the getParentLanguage function to fallback to English if a parent code isn't supported by MPW, for ex: missing lines from ES-MX would fallback to ES, but MPW does not have ES, so would throw errors trying to load it, those lines will cascade down to English worst case scenario.

Lastly, a typo in negotiateLanguages was fixed that probably broke some underlying library functionality.


Testing

To test this PR, it's suggested to attempt these user flows, or variations of these:

  • Check the "Create A New Wallet" button is translated.
  • Check the "Seed Phrase" creation dialog is translated.
  • Check the "Encrypt Wallet" and "Change Password" dialogs are translated.
  • Check that ES-MX loads correctly without errors.

If any errors are found, the PR works unexpectedly, or you have viable suggestions to improve the UX or functionality of the PR, let me know!


@JSKitty JSKitty added the Bug This is either a bugfix (PR) or a bug (issue). label Nov 8, 2023
@JSKitty JSKitty self-assigned this Nov 8, 2023
Copy link

netlify bot commented Nov 8, 2023

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit 3073919
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/654bf24ce737e5000807268d
😎 Deploy Preview https://deploy-preview-254--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 3073919
Looks good today all are translated for me now.

Copy link
Member

@panleone panleone left a comment

Choose a reason for hiding this comment

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

tACK 3073919

@JSKitty JSKitty merged commit abdb8fd into master Nov 9, 2023
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.

None yet

3 participants