Skip to content

Commit

Permalink
annotate loc as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed Oct 29, 2020
1 parent ee7385d commit 26cdd3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@ember/-internals/glimmer/lib/helpers/loc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { helper } from '../helper';
@param {String} str The string to format.
@see {String#loc}
@public
@deprecated
*/
export default helper(function (params) {
return loc.apply(null, params as any /* let the other side handle errors */);
Expand Down
2 changes: 2 additions & 0 deletions packages/@ember/string/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function _fmt(str: string, formats: any[]) {
@param {Array} formats Optional array of parameters to interpolate into string.
@return {String} formatted string
@public
@deprecated
*/
export function loc(str: string, formats: any[]): string {
deprecate(
Expand Down Expand Up @@ -319,6 +320,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
@for @ember/string
@static
@private
@deprecated
*/
loc: {
configurable: true,
Expand Down

0 comments on commit 26cdd3f

Please sign in to comment.