We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cb764 commit 38ccf3aCopy full SHA for 38ccf3a
1 file changed
packages/macro/test/js-t.ts
@@ -144,6 +144,24 @@ export default [
144
});
145
`,
146
},
147
+ {
148
+ name: "Support id with message interpolation",
149
+ input: `
150
+ import { t } from '@lingui/macro'
151
+ const msg = t({ id: 'msgId', message: \`Some \${value}\` })
152
+ `,
153
+ expected: `import { i18n } from "@lingui/core";
154
+ const msg =
155
+ i18n._(/*i18n*/
156
157
+ id: "msgId",
158
+ message: "Some {value}",
159
+ values: {
160
+ value: value,
161
+ },
162
+ });
163
164
165
{
166
name: "Newlines after continuation character are removed",
167
filename: "js-t-continuation-character.js",
0 commit comments