Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Doc

Manav Rathi9152960be0d0
diff --git a/web/packages/base/i18n.ts b/web/packages/base/i18n.ts
index 27cc3f8b28..2786854cde 100644
--- a/web/packages/base/i18n.ts
+++ b/web/packages/base/i18n.ts
@@ -113,12 +113,13 @@ export const setupI18n = async () => {
},
react: {
useSuspense: false,
- transKeepBasicHtmlNodesFor: [
- "strong",
- "code",
- "p",
- "br",
- ],
+ // Allow the following tags (without any attributes) to be used
+ // in translations. Such keys can then be rendered using the
+ // Trans component, but without otherwise needing any other
+ // input from our side.
+ //
+ // https://react.i18next.com/latest/trans-component
+ transKeepBasicHtmlNodesFor: ["br", "p", "strong", "code"],
},
});