0
0
Fork 0
This commit is contained in:
xeltica 2021-09-24 02:27:46 +09:00
parent d7b77ee022
commit ce708b03aa
7 changed files with 24 additions and 38 deletions

View file

@ -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'));