Skip to content

Commit

Permalink
Merge pull request #11334 from qmonmert/reacti18n
Browse files Browse the repository at this point in the history
React/Sonar: void should not be used
  • Loading branch information
murdos authored Nov 10, 2024
2 parents bb76d2f + c51970d commit de45486
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import Backend from 'i18next-http-backend';

void i18n
i18n
.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
Expand All @@ -19,6 +19,9 @@ void i18n
backend: {
loadPath: '../assets/locales/{{ lng }}/{{ ns }}.json',
},
})
.catch(error => {
console.error('i18n initialization failed', error);
});

export default i18n;

0 comments on commit de45486

Please sign in to comment.