Skip to content

Commit 6a12ac5

Browse files
committed
🌐(frontend) keep simple tag during export
When we export translations, we want to keep the simple tags like `<strong>` instead of converting it to `<1>` and `</1>`.
1 parent 2e6cb10 commit 6a12ac5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
### Fixed
12+
13+
- 🌐(frontend) keep simple tag during export #1154
14+
1115
## [3.4.0] - 2025-07-09
1216

1317
### Added

src/frontend/packages/i18n/i18next-parser.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ const config = {
77
keySeparator: false,
88
nsSeparator: false,
99
namespaceSeparator: false,
10+
lexers: {
11+
tsx: [
12+
{
13+
lexer: 'JsxLexer',
14+
functions: ['t'],
15+
transSupportBasicHtmlNodes: true, // Disable automatic conversion
16+
transKeepBasicHtmlNodesFor: ['strong', 'b', 'i', 'code', 'br'],
17+
},
18+
],
19+
},
1020
};
1121

1222
export default config;

0 commit comments

Comments
 (0)