569d887d1e
Renaming the package so any further PRs directed to the website are targeted to the reworked code instead of diverging. Once merged, I will start preparing this for deployment to dev to test before releasing to prod. Any improvements will also be applied to this package. I avoided making significant changes to API routes so nothing breaks, but will test it thoroughly today to confirm. That said, everything is ported - double checked. Big diff PR, impossible to review, but last one! No more rebuilds.
10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
// Jest stand-in for @lingui/core/macro: the real `msg` is compiled away
|
|
// by the SWC plugin at build time; tests only need a MessageDescriptor
|
|
// shape whose id is the source text.
|
|
export const msg = (
|
|
strings: TemplateStringsArray,
|
|
...expressions: unknown[]
|
|
): { id: string } => ({
|
|
id: String.raw({ raw: strings }, ...expressions),
|
|
});
|