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

Curly brace validation not working for shared string keys #350

Closed
Tracked by #878 ...
liammulh opened this issue Jan 5, 2023 · 4 comments
Closed
Tracked by #878 ...

Curly brace validation not working for shared string keys #350

liammulh opened this issue Jan 5, 2023 · 4 comments

Comments

@liammulh
Copy link
Member

liammulh commented Jan 5, 2023

While testing a new tooltip for translators about how to correctly translate curly brace patterns, I noticed that our validation wasn't running correctly for a string key with markup and double curly braces in ab/diffusion:

Screen Shot 2023-01-05 at 4 00 37 PM

How it's supposed to look:

Screen Shot 2023-01-05 at 4 01 46 PM

Some questions:

  • Is this happening in Rosetta 1.0?

    • No.
  • Is this happening for all string keys with both markup and curly braces?

Wow, interestingly, no. This isn't an issue in ab/fourier-making-waves:
Screen Shot 2023-01-05 at 4 14 22 PM

  • Is this happening for string keys with markup and single curly braces?
    • Seemingly, no.
    • See ab/acid-base-solutions pattern.0value.1power.
    • See ab/forces-and-motion-basics pattern.0name.1valueUnitsAcceleration.
@liammulh liammulh self-assigned this Jan 5, 2023
@liammulh
Copy link
Member Author

liammulh commented Jan 5, 2023

I think I know what the issue is. The makeValidationSchema.js module was written before we added support for shared strings. I bet tAvg and tAvgK are shared strings, and those strings aren't getting validation schemas. Going to try to validate my hypothesis.

@liammulh
Copy link
Member Author

liammulh commented Jan 5, 2023

tAvg and tAvgK are indeed shared strings. Going to try to fix now...

@liammulh
Copy link
Member Author

liammulh commented Jan 5, 2023

Should be fixed in 8f30184. Marking as ready for review for next round of testing.

@liammulh liammulh closed this as completed Jan 5, 2023
@liammulh liammulh changed the title Curly brace validation not working for string keys with markup Curly brace validation not working for shared string keys Jan 6, 2023
@Nancy-Salpepi
Copy link

looks good in round 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants