-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
[RFC#236] Deprecate Ember.String.loc and {{loc}} #19211
Conversation
I think I'm missing something obvious in the tests but alas, I cannot figure it out at the moment. If anyone can lend a hand, please do 🙏
|
It seems I was not using the |
packages/@ember/string/index.ts
Outdated
@@ -111,6 +112,16 @@ function _fmt(str: string, formats: any[]) { | |||
@public | |||
*/ | |||
export function loc(str: string, formats: any[]): string { | |||
deprecate('loc is deprecated.', false, { |
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.
This is pretty short and sweet. Do you think we need to say something a bit longer here?
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.
I'm finishing the deprecation guide and then I'll update the ember.js side with the final link and text!
packages/@ember/string/index.ts
Outdated
url: 'https://deprecations.emberjs.com/v3.x#toc_ember-string-loc', | ||
since: { | ||
available: '3.25', | ||
}, |
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.
🎉 ❤️
@rwjblue description updated. Also pinged other learning team members. |
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 👍, one small thing.
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, just needs that one change of for
in the deprecation.
6f30002
to
ee7385d
Compare
@locks - Can you squash down the commits? |
26cdd3f
to
452c392
Compare
452c392
to
c7526f1
Compare
Rebased and squashed! |
Part of RFC#236 -
Ember.String
deprecation.Tasks
Ember.String.loc
{{loc}}