mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-29 09:15:45 +00:00
- Add namespace-based JSON locale structure (en/es) - Add I18n provider/context with locale persistence and fallback logic - Add i18n parity checker script (npm run i18n:check) - Wire app root/title shell to translation API - Add TRANSLATION_GUIDE.md for contributors
17 lines
449 B
TypeScript
17 lines
449 B
TypeScript
import React from 'react'
|
|
import ReactDOM from 'react-dom/client'
|
|
import App from './App.tsx'
|
|
import { I18nProvider } from './contexts/I18nContext.tsx'
|
|
import './index.css'
|
|
|
|
document.documentElement.dataset.platform = /mac/i.test(navigator.platform) ? 'macos' : 'other'
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
<React.StrictMode>
|
|
<I18nProvider>
|
|
<App />
|
|
</I18nProvider>
|
|
</React.StrictMode>,
|
|
)
|
|
|