@lingui/macro
Advanced tools
Comparing version 3.0.0-18 to 3.0.0-20
import type { ComponentType, ReactNode } from "react" | ||
import type { MessageDescriptor } from "@lingui/core" | ||
import type { TransRenderType } from "@lingui/react" | ||
import type { TransRenderType, TransRenderProps } from "@lingui/react" | ||
@@ -32,3 +32,4 @@ export function t( | ||
comment?: string | ||
render?: TransRenderType | ||
component?: TransRenderType | ||
render?: (opts: TransRenderProps) => TransRenderType | ||
} | ||
@@ -35,0 +36,0 @@ |
@@ -54,3 +54,4 @@ "use strict"; | ||
return text.replace(stripAroundTagsRe, "$1").replace(keepSpaceRe, " ") // keep escaped newlines | ||
.replace(/\\n/g, "\n").replace(/\\s/g, " ").trim(); | ||
.replace(/\\n/g, "\n").replace(/\\s/g, " ") // we remove trailing whitespace inside Plural | ||
.replace(/(\s+})/gm, "}").trim(); | ||
} | ||
@@ -57,0 +58,0 @@ |
{ | ||
"name": "@lingui/macro", | ||
"version": "3.0.0-18", | ||
"version": "3.0.0-20", | ||
"description": "Macro for generating messages in ICU MessageFormat syntax", | ||
@@ -32,3 +32,3 @@ "main": "index.ts", | ||
"@babel/runtime": "^7.11.2", | ||
"@lingui/conf": "3.0.0-18", | ||
"@lingui/conf": "3.0.0-20", | ||
"ramda": "^0.27.1" | ||
@@ -35,0 +35,0 @@ }, |
40812
830
+ Added@lingui/conf@3.0.0-20(transitive)
- Removed@lingui/conf@3.0.0-18(transitive)
Updated@lingui/conf@3.0.0-20