🌐(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>`.
This commit is contained in:
Anthony LC
2025-07-10 12:38:28 +02:00
parent 2e6cb109ef
commit 6a12ac560e
2 changed files with 14 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ and this project adheres to
## [Unreleased]
### Fixed
- 🌐(frontend) keep simple tag during export #1154
## [3.4.0] - 2025-07-09
### Added

View File

@@ -7,6 +7,16 @@ const config = {
keySeparator: false,
nsSeparator: false,
namespaceSeparator: false,
lexers: {
tsx: [
{
lexer: 'JsxLexer',
functions: ['t'],
transSupportBasicHtmlNodes: true, // Disable automatic conversion
transKeepBasicHtmlNodesFor: ['strong', 'b', 'i', 'code', 'br'],
},
],
},
};
export default config;