- add Timestamp component with moment relative time and ISO tooltip - add Timestamp stories (JustNow, MinutesAgo, HoursAgo, DaysAgo, MonthsAgo) - add ESLint 10 with typescript-eslint, react-hooks, react-refresh, prettier - add Prettier config with singleQuote, semi, trailingComma all, printWidth 100 - add lint, lint:fix, format, test:storybook scripts to package.json - fix react-hooks/set-state-in-effect in all page components - auto-fix 113 Prettier formatting issues across src and .storybook
13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
import en from './locales/en.json';
|
|
|
|
i18n.use(initReactI18next).init({
|
|
resources: { en: { translation: en } },
|
|
lng: 'en',
|
|
fallbackLng: 'en',
|
|
interpolation: { escapeValue: false },
|
|
});
|
|
|
|
export default i18n;
|