Initial Commit
This commit is contained in:
197
packages/localization/i18n/react-i18n/package.json
Normal file
197
packages/localization/i18n/react-i18n/package.json
Normal file
@@ -0,0 +1,197 @@
|
||||
{
|
||||
"name": "@suaveplan/react-i18n",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "React bindings for @suaveplan/i18n: TranslationProvider, hooks, <Trans>, <LanguageSwitcher>, locale-detection chain glue, branded TranslationKey contract.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./provider": {
|
||||
"import": {
|
||||
"types": "./dist/provider/index.d.ts",
|
||||
"default": "./dist/provider/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/provider/index.d.ts",
|
||||
"default": "./dist/provider/index.js"
|
||||
}
|
||||
},
|
||||
"./errors": {
|
||||
"import": {
|
||||
"types": "./dist/errors/index.d.ts",
|
||||
"default": "./dist/errors/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/errors/index.d.ts",
|
||||
"default": "./dist/errors/index.js"
|
||||
}
|
||||
},
|
||||
"./schemas": {
|
||||
"import": {
|
||||
"types": "./dist/schemas/index.d.ts",
|
||||
"default": "./dist/schemas/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/schemas/index.d.ts",
|
||||
"default": "./dist/schemas/index.js"
|
||||
}
|
||||
},
|
||||
"./config": {
|
||||
"import": {
|
||||
"types": "./dist/config/index.d.ts",
|
||||
"default": "./dist/config/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/config/index.d.ts",
|
||||
"default": "./dist/config/index.js"
|
||||
}
|
||||
},
|
||||
"./observability": {
|
||||
"import": {
|
||||
"types": "./dist/observability/react-i18n-metrics.d.ts",
|
||||
"default": "./dist/observability/react-i18n-metrics.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/observability/react-i18n-metrics.d.ts",
|
||||
"default": "./dist/observability/react-i18n-metrics.js"
|
||||
}
|
||||
},
|
||||
"./components/trans": {
|
||||
"import": {
|
||||
"types": "./dist/components/trans/trans.d.ts",
|
||||
"default": "./dist/components/trans/trans.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/components/trans/trans.d.ts",
|
||||
"default": "./dist/components/trans/trans.js"
|
||||
}
|
||||
},
|
||||
"./components/language-switcher": {
|
||||
"import": {
|
||||
"types": "./dist/components/language-switcher/language-switcher.d.ts",
|
||||
"default": "./dist/components/language-switcher/language-switcher.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/components/language-switcher/language-switcher.d.ts",
|
||||
"default": "./dist/components/language-switcher/language-switcher.js"
|
||||
}
|
||||
},
|
||||
"./components/missing-key-overlay": {
|
||||
"import": {
|
||||
"types": "./dist/components/missing-key-overlay/missing-key-overlay.d.ts",
|
||||
"default": "./dist/components/missing-key-overlay/missing-key-overlay.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/components/missing-key-overlay/missing-key-overlay.d.ts",
|
||||
"default": "./dist/components/missing-key-overlay/missing-key-overlay.js"
|
||||
}
|
||||
},
|
||||
"./components/i18n-suspense": {
|
||||
"import": {
|
||||
"types": "./dist/components/i18n-suspense/i18n-suspense.d.ts",
|
||||
"default": "./dist/components/i18n-suspense/i18n-suspense.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/components/i18n-suspense/i18n-suspense.d.ts",
|
||||
"default": "./dist/components/i18n-suspense/i18n-suspense.js"
|
||||
}
|
||||
},
|
||||
"./hoc/with-translation": {
|
||||
"import": {
|
||||
"types": "./dist/hoc/with-translation/with-translation.d.ts",
|
||||
"default": "./dist/hoc/with-translation/with-translation.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/hoc/with-translation/with-translation.d.ts",
|
||||
"default": "./dist/hoc/with-translation/with-translation.js"
|
||||
}
|
||||
},
|
||||
"./registry": {
|
||||
"import": {
|
||||
"types": "./dist/registry/index.d.ts",
|
||||
"default": "./dist/registry/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/registry/index.d.ts",
|
||||
"default": "./dist/registry/index.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"test:e2e": "playwright test",
|
||||
"lint": "bunx biome check src/ && bun run ../../../../scripts/lint/check-no-backwards-deps.ts --package-json ./package.json",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/events": "workspace:^",
|
||||
"@suaveplan/i18n": "workspace:^",
|
||||
"@suaveplan/i18n-detector": "workspace:^",
|
||||
"@suaveplan/i18n-formatter-currency": "workspace:^",
|
||||
"@suaveplan/i18n-formatter-date": "workspace:^",
|
||||
"@suaveplan/i18n-icu-parser": "workspace:^",
|
||||
"@suaveplan/i18n-shared": "workspace:^",
|
||||
"@suaveplan/locale-data": "workspace:^",
|
||||
"@suaveplan/logger": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"@suaveplan/validation": "workspace:^",
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.0.0 || ^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "catalog:testing",
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@suaveplan/testing-dom": "workspace:^",
|
||||
"@suaveplan/testing-e2e": "workspace:^",
|
||||
"@testing-library/react": "catalog:testing",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:testing",
|
||||
"@types/react-dom": "catalog:testing",
|
||||
"@vitejs/plugin-react": "catalog:testing",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"fast-check": "catalog:testing",
|
||||
"happy-dom": "catalog:testing",
|
||||
"react": "catalog:testing",
|
||||
"react-dom": "catalog:testing",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user