Files
web/apps/scandic-web/codemods/lokalise/expectations/serverComponentWithVariables.tsx
2025-04-14 11:30:05 +00:00

20 lines
478 B
TypeScript

/* eslint-disable formatjs/enforce-description */
/* eslint-disable formatjs/enforce-default-message */
/* eslint-disable formatjs/no-id */
import { getIntl } from "@/i18n"
export default async function ServerComponentWithTernaryInside() {
const intl = await getIntl()
const variable = "some value"
return (
<h1>
{intl.formatMessage({
defaultMessage: `String with {variable}`,
description: {}
}, { variable: variable })}
</h1>
)
}