- Implemented astro-i18next for multi-language support, including English, Dutch, and Italian. - Configured default locale and language fallback settings. - Defined routes for localized content in the configuration. - Updated package.json and package-lock.json to include new dependencies for i18next and related plugins.
131 lines
3.7 KiB
JSON
131 lines
3.7 KiB
JSON
{
|
|
"name": "astro-i18next",
|
|
"version": "1.0.0-beta.21",
|
|
"description": "An astro integration of i18next + some utility components to help you translate your astro websites!",
|
|
"scripts": {
|
|
"test": "vitest",
|
|
"test:coverage": "pnpm test -- --coverage",
|
|
"preview": "astro preview",
|
|
"build": "./build.cjs && pnpm run typecheck:emit",
|
|
"pack": "pnpm run build && pnpm pack",
|
|
"lint": "eslint --ext js,cjs,ts .",
|
|
"prettier": "prettier --check --ignore-path .prettierignore .",
|
|
"prettier:fix": "prettier --write --ignore-path .prettierignore .",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:emit": "tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
"commit": "cz",
|
|
"prepare": "is-ci || husky install",
|
|
"semantic-release": "semantic-release"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/yassinedoghri/astro-i18next.git"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"!src/index.d.ts",
|
|
"!src/__tests__",
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./components": "./src/components/index.ts"
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"index": [
|
|
"./dist/types/index.d.ts"
|
|
],
|
|
"components": [
|
|
"./src/components/index.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"bin": {
|
|
"astro-i18next": "./dist/cli/index.js"
|
|
},
|
|
"keywords": [
|
|
"astro-component",
|
|
"seo",
|
|
"i18next",
|
|
"i18n",
|
|
"internationalization",
|
|
"i10n",
|
|
"localization"
|
|
],
|
|
"author": {
|
|
"name": "Yassine Doghri",
|
|
"email": "yassine@doghri.fr",
|
|
"url": "https://yassinedoghri.com/"
|
|
},
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/yassinedoghri/astro-i18next/issues"
|
|
},
|
|
"homepage": "https://astro-i18next.yassinedoghri.com/",
|
|
"peerDependencies": {
|
|
"astro": ">=1.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@proload/core": "^0.3.3",
|
|
"@proload/plugin-tsm": "^0.2.1",
|
|
"i18next": "^22.4.10",
|
|
"i18next-browser-languagedetector": "^7.0.1",
|
|
"i18next-fs-backend": "^2.1.1",
|
|
"i18next-http-backend": "^2.1.1",
|
|
"iso-639-1": "^2.1.15",
|
|
"locale-emoji": "^0.3.0",
|
|
"pathe": "^1.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^17.4.4",
|
|
"@commitlint/config-conventional": "^17.4.4",
|
|
"@semantic-release/changelog": "^6.0.2",
|
|
"@semantic-release/exec": "^6.0.3",
|
|
"@semantic-release/git": "^10.0.1",
|
|
"@types/fs-extra": "^11.0.1",
|
|
"@types/yargs": "^17.0.22",
|
|
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
|
"@typescript-eslint/parser": "^5.54.0",
|
|
"@vitest/coverage-c8": "^0.29.2",
|
|
"all-contributors-cli": "^6.24.0",
|
|
"astro": "2.0.17",
|
|
"commitizen": "^4.3.0",
|
|
"cz-conventional-changelog": "^3.3.0",
|
|
"esbuild-plugin-fileloc": "^0.0.6",
|
|
"esbuild": "^0.17.11",
|
|
"eslint-config-prettier": "^8.6.0",
|
|
"eslint-config-standard": "^17.0.0",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-jest": "^27.2.1",
|
|
"eslint-plugin-n": "^15.6.1",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"eslint": "^8.35.0",
|
|
"fdir": "^6.0.1",
|
|
"fs-extra": "^11.1.0",
|
|
"husky": "^8.0.3",
|
|
"i18next": "^22.4.10",
|
|
"is-ci": "^3.0.1",
|
|
"lint-staged": "^13.1.2",
|
|
"prettier-plugin-astro": "^0.8.0",
|
|
"prettier": "2.8.4",
|
|
"semantic-release": "^20.1.1",
|
|
"typescript": "^4.9.5",
|
|
"vitest": "^0.29.2",
|
|
"yargs": "^17.7.1"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,cjs,ts}": "eslint --ext js,cjs,ts . --cache --fix",
|
|
"*.{js,cjs,ts,astro,css,md}": "prettier --write --ignore-path .prettierignore ."
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "./node_modules/cz-conventional-changelog"
|
|
}
|
|
}
|
|
}
|