-
-
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
Remove Ember.String.fmt #15882
Remove Ember.String.fmt #15882
Conversation
Seems good to me. We need to ensure this functionality sticks around when you have Can you make an issue over on https://github.com/emberjs/ember-2-legacy to add support to add these back when the legacy addon is present? I just don't want to lose track... |
@@ -49,35 +49,6 @@ const STRING_DECAMELIZE_REGEXP = (/([a-z\d])([A-Z])/g); | |||
|
|||
const DECAMELIZE_CACHE = new Cache(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase()); | |||
|
|||
function _fmt(str, formats) { |
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.
_fmt
is used in loc
:
ember.js/packages/ember-runtime/lib/system/string.js
Lines 81 to 88 in a7518b9
function loc(str, formats) { | |
if (!isArray(formats) || arguments.length > 2) { | |
formats = Array.prototype.slice.call(arguments, 1); | |
} | |
str = getString(str) || str; | |
return _fmt(str, formats); | |
} |
and fmt
is referenced in the documentation for it.
Think we'll need to update these too. (Happy to help with this in any way)
|
@lorcan thanks for the review. If we manage to finish all the |
e433559
to
a3a53de
Compare
a3a53de
to
fcde1c9
Compare
No description provided.