This utility was included to ease the transition from the internal Ember string package to this addon. We suggest that you update your code to use ES2015 template strings.
For example, if you have the following fmt
uses:
import { fmt } from "@ember/string";
let firstName = "John";
let lastName = "Doe";
fmt("Hello %@ %@", firstName, lastName); // "Hello John Doe"
fmt("Hello %@2, %@1", firstName, lastName); // "Hello Doe, John"
You can instead use the following template strings:
import { fmt } from "@ember/string";
let firstName = "John";
let lastName = "Doe";
`Hello ${firstName} ${lastName}` // "Hello John Doe"
`Hello ${lastName}, ${firstName}` // "Hello Doe, John"
This utility was included to ease the transition from the internal Ember string package to this addon. You can consult the Ember deprecation guide for loc for further instructions on how to update your code.