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

Translate success and error messages for dance party puzzles #25697

Merged
merged 2 commits into from Oct 31, 2018

Conversation

maddiedierker
Copy link
Contributor

@maddiedierker maddiedierker commented Oct 30, 2018

Uses the success/error message on puzzle complete as the translation key rather than the message itself.

Tagging @ryansloan so he knows the messages currently on levelbuilder will need to updated to keys (and any additional strings needed will need to be added to i18n/dance/en_us.json)

@maddiedierker
Copy link
Contributor Author

@ryansloan
Copy link
Contributor

Yahoo! FYI, no need to create trello cards (unless it's easier for you) - I am tracking this via GitHub issues now.

What syntax will I need to use to access these strings in validation code?

@maddiedierker
Copy link
Contributor Author

@ryansloan in levelbuilder, you will pass the key to the fail/pass methods as a string. So if the error message is "You need to make a dancer" --

nativeAPI.fail("danceFeedbackNeedNewDancer");

A message isn't required though (it looks like there are fallback messages elsewhere? i'm unfamiliar with where this happens, though)

nativeAPI.pass();

@ryansloan
Copy link
Contributor

@madelynkasula Perfect, thanks! We don't pass messages for passing solutions, but we should be passing them for failures.

Copy link
Contributor

@joshlory joshlory left a comment

Choose a reason for hiding this comment

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

🎉

@maddiedierker maddiedierker merged commit 98a07db into staging Oct 31, 2018
@maddiedierker maddiedierker deleted the loc-dp-errors branch October 31, 2018 00:19
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.

None yet

3 participants