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

Disambiguate simulator email i18n key #764

Merged
merged 2 commits into from
Dec 4, 2019
Merged

Disambiguate simulator email i18n key #764

merged 2 commits into from
Dec 4, 2019

Conversation

ericnewcomer
Copy link
Member

Fixes: #761

@codecov
Copy link

codecov bot commented Dec 3, 2019

Codecov Report

Merging #764 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #764   +/-   ##
=======================================
  Coverage   64.19%   64.19%           
=======================================
  Files         164      164           
  Lines        6077     6077           
  Branches     1413     1413           
=======================================
  Hits         3901     3901           
  Misses       1746     1746           
  Partials      430      430
Impacted Files Coverage Δ
src/components/simulator/LogEvent.tsx 6.89% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd49fdb...c138bdf. Read the comment docs.

@@ -286,6 +286,7 @@
"to": "To"
},
"sent_email_dialog": "Email Details",
"sent_email_summary": "Sent email to \"[[recipients]]\" with subject \"[[subject]]\"",
Copy link
Member

Choose a reason for hiding this comment

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

so the structure of this arbitrary? like how subject is nested under sent_email?

Copy link
Member Author

Choose a reason for hiding this comment

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

Dot notation is used to nest things where appropriate. Sent email has the to and subject labels in different places so have those nested, since this is a single blurb, opted for a single un-nested key.

Alternative would be something like this which I don't hate:

sent_mail
  summary
  dialog
     title
     to
     subject

@ericnewcomer
Copy link
Member Author

Saw there were no translations yet, so reworked those keys a bit.

@ericnewcomer ericnewcomer merged commit 1f08b58 into master Dec 4, 2019
@ericnewcomer ericnewcomer deleted the email_i18n branch December 4, 2019 17:44
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.

Localization of emails in simulator broken
2 participants