🌐(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:
@@ -8,6 +8,10 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- 🌐(frontend) keep simple tag during export #1154
|
||||||
|
|
||||||
## [3.4.0] - 2025-07-09
|
## [3.4.0] - 2025-07-09
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -7,6 +7,16 @@ const config = {
|
|||||||
keySeparator: false,
|
keySeparator: false,
|
||||||
nsSeparator: false,
|
nsSeparator: false,
|
||||||
namespaceSeparator: false,
|
namespaceSeparator: false,
|
||||||
|
lexers: {
|
||||||
|
tsx: [
|
||||||
|
{
|
||||||
|
lexer: 'JsxLexer',
|
||||||
|
functions: ['t'],
|
||||||
|
transSupportBasicHtmlNodes: true, // Disable automatic conversion
|
||||||
|
transKeepBasicHtmlNodesFor: ['strong', 'b', 'i', 'code', 'br'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
Reference in New Issue
Block a user