mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- Export `isLocaleRTL` from `@sofa/i18n` to detect right-to-left locales - Native: call `I18nManager.allowRTL` / `forceRTL` on locale init and on locale change; reload the app immediately if the current layout direction doesn't match the persisted locale, and prompt the user to restart when switching between LTR and RTL locales - Native: flip the `SettingsRow` chevron to `IconChevronLeft` when `I18nManager.isRTL` is true - Native: add Arabic Intl polyfill locale data (PluralRules, NumberFormat, DateTimeFormat, RelativeTimeFormat) - Web: enable `"rtl": true` in `components.json` and regenerate all shadcn UI components to use CSS logical properties (`ms-*`, `me-*`, `ps-*`, `pe-*`, `text-start`, `text-end`) instead of physical `ml-*`/`mr-*`/`text-left` equivalents - Web: apply the same logical-property conversions to non-generated components (nav-bar, settings sections, title cards, hero banner, continue-watching card) - Web: set `document.dir` based on the active locale's RTL flag in the i18n initialiser and root route - Add `../../packages/i18n/src/po.d.ts` to native `tsconfig.json` includes so TypeScript accepts `.po` imports
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"name": "sofa-docs",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "next build",
|
|
"dev": "next dev",
|
|
"start": "next start",
|
|
"lint": "oxlint",
|
|
"format": "oxfmt",
|
|
"format:check": "oxfmt --check",
|
|
"check-types": "fumadocs-mdx && next typegen && tsc --noEmit",
|
|
"generate:api-docs": "bun scripts/generate-api-docs.ts",
|
|
"postinstall": "fumadocs-mdx"
|
|
},
|
|
"dependencies": {
|
|
"@takumi-rs/image-response": "^0.73.1",
|
|
"@vercel/analytics": "^2.0.1",
|
|
"fumadocs-core": "^16.7.2",
|
|
"fumadocs-mdx": "^14.2.11",
|
|
"fumadocs-openapi": "^10.4.1",
|
|
"fumadocs-ui": "^16.7.2",
|
|
"lucide-react": "^0.577.0",
|
|
"next": "16.2.0",
|
|
"react": "19.2.4",
|
|
"react-dom": "19.2.4",
|
|
"shiki": "^4.0.2",
|
|
"tailwind-merge": "^3.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.2.2",
|
|
"@types/bun": "1.3.11",
|
|
"@types/mdx": "^2.0.13",
|
|
"@types/node": "^25.5.0",
|
|
"@types/react": "19.2.14",
|
|
"@types/react-dom": "19.2.3",
|
|
"oxfmt": "0.41.0",
|
|
"oxlint": "1.56.0",
|
|
"postcss": "^8.5.8",
|
|
"tailwindcss": "^4.2.2",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"overrides": {
|
|
"@types/react": "19.2.14",
|
|
"@types/react-dom": "19.2.3"
|
|
},
|
|
"packageManager": "bun@1.3.11"
|
|
}
|