We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72a6fe commit 526d995Copy full SHA for 526d995
1 file changed
cmp/compiler/src/translators/pseudotranslator/index.ts
@@ -113,7 +113,7 @@ export function pseudolocalize(text: string): string {
113
// Regular expression to match patterns we should NOT translate:
114
// - Variable placeholders: {varName}
115
// - Component tags: <tagName> or </tagName>
116
- const preserveRegex = /(\{\w+}|<\/?\w+>)/g;
+ const preserveRegex = /(\{\w+}|<\/?\w+\/?>)/g;
117
118
// Split text into parts that should be preserved and parts that should be translated
119
const parts: Array<{ text: string; preserve: boolean }> = [];
0 commit comments