Skip to content

Commit

Permalink
escapeValue: false in ts example
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Oct 28, 2021
1 parent a58d1c5 commit 269021e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/react-typescript4.1/namespaces/src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ export const resources = {
i18n.use(initReactI18next).init({
lng: 'en',
ns: ['ns1', 'ns2'],
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
resources,
});
3 changes: 3 additions & 0 deletions example/react-typescript4.1/no-namespaces/src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ export const resources = {

i18n.use(initReactI18next).init({
lng: 'en',
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
resources,
});

0 comments on commit 269021e

Please sign in to comment.