langsys-js-typescript 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +45 -2
- package/dist/index.d.mts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -282,7 +282,7 @@ function warnUnmatchedParams(source, texts, params, context) {
|
|
|
282
282
|
if (!unused.length) return;
|
|
283
283
|
const keyList = unused.map((key) => `%${key}%`).join(", ");
|
|
284
284
|
logger.warn(
|
|
285
|
-
`${source} received params with no matching placeholder in its content: ${keyList}. If you wrote {${unused[0]}} in markup,
|
|
285
|
+
`${source} received params with no matching placeholder in its content: ${keyList}. If you wrote {${unused[0]}} or {{ ${unused[0]} }} in markup, your framework's template compiler substituted it before Langsys saw the text \u2014 write %${unused[0]}% instead.` + (context ? ` [${context}]` : "")
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
function interpolate(template, params, locale) {
|