@scaleway/use-i18n
Version:
A small hook to handle i18n
66 lines • 1.71 kB
JSON
{
"name": "@scaleway/use-i18n",
"version": "7.1.1",
"description": "A small hook to handle i18n",
"engines": {
"node": ">=18.x"
},
"sideEffects": false,
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/scaleway/scaleway-lib",
"directory": "packages/use-i18n"
},
"license": "MIT",
"keywords": [
"react",
"reactjs",
"hooks",
"i18n",
"intl",
"react-intl"
],
"dependencies": {
"@formatjs/ecma402-abstract": "2.3.4",
"@formatjs/fast-memoize": "2.2.7",
"date-fns": "4.1.0",
"filesize": "10.1.6",
"international-types": "0.8.1",
"intl-messageformat": "10.7.16"
},
"devDependencies": {
"react": "19.1.0",
"react-dom": "19.1.0"
},
"peerDependencies": {
"date-fns": "3.x || 4.x",
"react": "18.x || 19.x",
"react-dom": "18.x || 19.x"
},
"scripts": {
"prebuild": "shx rm -rf dist",
"typecheck": "tsc --noEmit",
"type:generate": "tsc --declaration -p tsconfig.build.json",
"build": "vite build --config vite.config.ts && pnpm run type:generate",
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
"lint": "eslint --report-unused-disable-directives --cache --cache-strategy content --ext ts,tsx .",
"test:unit": "TZ=UTC LANG=en_US.UTF8 NODE_ENV=test vitest --run --config vite.config.ts",
"test:unit:coverage": "pnpm test:unit --coverage"
}
}