wip
This commit is contained in:
parent
d7b77ee022
commit
ce708b03aa
7 changed files with 24 additions and 38 deletions
|
@ -1,23 +1,6 @@
|
|||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import { App } from './App';
|
||||
import { getBrowserLanguage, resources } from './langs';
|
||||
|
||||
document.body.classList.add('dark');
|
||||
|
||||
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
resources,
|
||||
lng: localStorage['lang'] ?? getBrowserLanguage(),
|
||||
interpolation: {
|
||||
escapeValue: false // react already safes from xss
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
ReactDOM.render(<App/>, document.getElementById('app'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue