- Add i18next and related dependencies for internationalization - Implement language switcher component with English and Chinese support - Create translation files for English and Chinese locales - Update login and home pages to use translations - Configure i18n initialization with language detection - Add dayjs locale synchronization with i18n language changes - Update tsconfig and eslint to ignore new locales directory - Remove unused App.css and simplify index.css - Update npmrc with mirror configuration
25 lines
671 B
JavaScript
25 lines
671 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
import tseslint from 'typescript-eslint'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
export default defineConfig([
|
|
globalIgnores(['dist', 'rag_web_core']),
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
extends: [
|
|
js.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
reactHooks.configs['recommended-latest'],
|
|
reactRefresh.configs.vite,
|
|
],
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.browser,
|
|
},
|
|
ignores: ['rag_web_core/**'],
|
|
},
|
|
])
|