-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
support slots syntax for component interpolation #685
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #685 +/- ##
=========================================
+ Coverage 96.19% 96.2% +<.01%
=========================================
Files 10 10
Lines 789 790 +1
=========================================
+ Hits 759 760 +1
Misses 30 30
Continue to review full report at Codecov.
|
@aavondet I will additionally commit (e.g docs, tests) the missing codes! 💪 |
Hey @aavondet, thanks for your PR! I'm here because I'm using // Some translations for the example
{
myAmazingPath: 'This is a {firstInterpolation} {secondInterpolation} interpolation.',
firstInterpolation: 'very',
secondInterpolation: 'good',
} ✅ 1+
|
Hello @HapLifeMan, thank you for the comment! As of right now there is a similar test case in |
@HapLifeMan The place attribute should be the key, surrounded by {}, in your resource text. In your case you have |
Hey @aavondet, I'm sorry I made a mistake in the translation example. Of course this is like this in my code: {
myAmazingPath: 'This is a {firstInterpolation} {secondInterpolation} interpolation.',
firstInterpolation: 'very',
secondInterpolation: 'good',
} |
@HapLifeMan Hello, you still need to change your test case to the following:
The place attribute only tells you the location in your |
Hey @aavondet, yes of course I know that and it's how it's built. I was just rushed on the examples... It was perfectly working on multiple environments before this update with one or many interpolations, then broke up after the release that includes this merge. So I don't think it's a coincidence. |
@HapLifeMan This PR has been merged. |
Related to #668. In short, this PR applies vue slots syntax to the interpolation functionality, while supporting backwards compatibility too. Thank you @sirlancelot for providing the base code, I edited it a bit so it passes all past test cases, then wrote some new test cases too. I am still lacking test cases for scoped slots though.