-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Introduce localize2
function
#194750
Introduce localize2
function
#194750
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I would suggest to try it out with a full build before merging.
This is syntax sugar around: ``` { value localize('id', "Hello"), original: 'Hello' } ``` That will now be returned when you do: ``` localize2('id', "Hello"); ```
e4134fe
to
cba0802
Compare
Maybe bikeshedding, but is "localize2" the right name for this? To me |
Connor mentioned And Also, I think we can make bigger changes to the API when we align core with extension's |
* Introduce `localize2` function This is syntax sugar around: ``` { value localize('id', "Hello"), original: 'Hello' } ``` That will now be returned when you do: ``` localize2('id', "Hello"); ``` * fix merge conflic * new source map due to updated deps
This is syntax sugar around:
That will now be returned when you do:
I tested this with a full build to ensure rewriting works as expected.