mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
refactor: migrate to eslint flat config and format codebase with prettier
- Remove legacy .eslintrc.cjs and .eslintignore - Add eslint.config.js with flat config, security rules (no-eval, no-implied-eval, no-new-func, no-script-url) - Add .prettierrc and .prettierignore - Format entire codebase with prettier
This commit is contained in:
20
src/i18n.ts
20
src/i18n.ts
@@ -1,18 +1,18 @@
|
||||
import i18n from 'i18next'
|
||||
import { initReactI18next } from 'react-i18next'
|
||||
import LanguageDetector from 'i18next-browser-languagedetector'
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
import ru from './locales/ru.json'
|
||||
import en from './locales/en.json'
|
||||
import zh from './locales/zh.json'
|
||||
import fa from './locales/fa.json'
|
||||
import ru from './locales/ru.json';
|
||||
import en from './locales/en.json';
|
||||
import zh from './locales/zh.json';
|
||||
import fa from './locales/fa.json';
|
||||
|
||||
const resources = {
|
||||
ru: { translation: ru },
|
||||
en: { translation: en },
|
||||
zh: { translation: zh },
|
||||
fa: { translation: fa },
|
||||
}
|
||||
};
|
||||
|
||||
i18n
|
||||
.use(LanguageDetector)
|
||||
@@ -35,6 +35,6 @@ i18n
|
||||
react: {
|
||||
useSuspense: false,
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
export default i18n
|
||||
export default i18n;
|
||||
|
||||
Reference in New Issue
Block a user