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

Use named components in translations #985

Merged
merged 2 commits into from
Sep 8, 2022
Merged

Use named components in translations #985

merged 2 commits into from
Sep 8, 2022

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Sep 7, 2022

No description provided.

@lukaw3d lukaw3d requested a review from buberdds September 7, 2022 03:12
@github-actions
Copy link

github-actions bot commented Sep 7, 2022

MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 15 0 0.05s
✅ GIT git_diff yes no 0.01s
✅ JAVASCRIPT eslint 1 0 0 5.06s
✅ JSON eslint-plugin-jsonc 4 0 0 1.24s
✅ JSON jsonlint 4 0 1.25s
✅ JSON prettier 4 0 0 0.83s
✅ JSON v8r 4 0 3.56s
✅ TSX eslint 8 0 0 6.75s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Merging #985 (7429b49) into master (9bc9677) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #985   +/-   ##
=======================================
  Coverage   88.20%   88.20%           
=======================================
  Files          99       99           
  Lines        1713     1713           
  Branches      396      396           
=======================================
  Hits         1511     1511           
  Misses        202      202           
Flag Coverage Δ
cypress 57.60% <0.00%> (ø)
jest 79.12% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/app/components/ErrorFormatter/index.tsx 100.00% <ø> (ø)
src/app/components/FatalErrorHandler/index.tsx 71.42% <ø> (ø)
src/app/components/Footer/index.tsx 100.00% <ø> (ø)
...ages/AccountPage/Features/AccountSummary/index.tsx 100.00% <ø> (ø)
src/app/pages/CreateWalletPage/index.tsx 90.90% <ø> (ø)
src/app/pages/OpenWalletPage/index.tsx 100.00% <ø> (ø)
...es/StakingPage/Features/CommissionBounds/index.tsx 94.44% <ø> (ø)
src/app/components/Transaction/index.tsx 75.36% <100.00%> (ø)

@@ -1466,13 +1466,7 @@ exports[`<CreateWalletPage /> should match snapshot 1`] = `
>
<span
class="c17"
>
Save your keyphrase
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this was wiped out from a snapshot?

Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -114,7 +114,7 @@
"createWallet": {
"confirmSaved": "I saved my keyphrase",
"doNotShare": "Never share your keyphrase, anyone with your keyphrase can access your wallet and your tokens.",
"instruction": "Save your keyphrase <1>in the right order</1> in a secure location, you will need it to open your wallet.",
"instruction": "Save your keyphrase <strong>in the right order</strong> in a secure location, you will need it\n to open your wallet.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why you need those weird whitespaces and why only in EN?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, good catch. Must have come from yarn lint and yarn extract-messages

                defaults="Save your keyphrase <strong>in the right order</strong> in a secure location, you will need it
                to open your wallet."

@lukaw3d lukaw3d merged commit 73f13ff into master Sep 8, 2022
@lukaw3d lukaw3d deleted the lw/named-trans branch September 8, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants