UNPKG

i18n-pro

Version:

An out-of-the-box, lightweight JavaScript i18n auto-translation solution

104 lines (103 loc) 2.94 kB
{ "name": "i18n-pro", "version": "3.0.0", "description": "An out-of-the-box, lightweight JavaScript i18n auto-translation solution", "files": [ "dist/src", "template", "i18n/langs.json", "./index.js" ], "types": "./dist/src/lib/index.d.ts", "main": "./index.js", "bin": { "i18n": "dist/src/bin/index.js" }, "scripts": { "prepare": "husky install", "dev": "npx tsc --watch", "docs": "jtm run", "docs-i18n": "node ./dist/src/bin/index.js t -P docs/src", "test-init": "node ./dist/src/bin/index.js init", "test-t": "tsx ./src/bin/index.ts t", "build-bin": "tsc", "build": "npm run build-bin && rimraf dist/src/lib && rollup -c", "publish": "npm run build && npm publish --access=public --registry https://registry.npmjs.org", "lint-code": "npx lint-staged", "lint-msg": "npx commitlint --edit", "test": "cross-env NODE_ENV=src vitest --ui", "test:pkg": "cross-env NODE_ENV=pkg vitest run", "coverage": "cross-env NODE_ENV=src vitest run --coverage" }, "keywords": [ "intl", "i18n", "internationalization", "locale", "l10n", "localization", "translate", "translation", "国际化", "多语言", "自动翻译", "automatic translation" ], "author": "Eyelly Wu", "license": "MIT", "devDependencies": { "@commitlint/cli": "^17.3.0", "@commitlint/config-conventional": "^17.3.0", "@eyelly/prettier-config": "^1.0.0", "@types/node": "^17.0.45", "@typescript-eslint/eslint-plugin": "^5.47.0", "@typescript-eslint/parser": "^5.47.0", "@vitest/coverage-istanbul": "^0.22.1", "@vitest/ui": "^0.22.1", "cross-env": "^7.0.3", "eslint": "^8.30.0", "eslint-config-prettier": "^8.5.0", "eslint-formatter-table": "^7.32.1", "eslint-plugin-prettier": "^4.2.1", "husky": "^8.0.2", "jsx-to-md": "0.12.3", "lint-staged": "^13.1.0", "prettier": "^2.8.1", "rimraf": "^3.0.2", "rollup": "^2.79.1", "rollup-plugin-prettier": "^2.3.0", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.33.0", "tslib": "^2.4.1", "tsx": "^4.19.4", "typescript": "4.8.4", "vitest": "^0.22.1" }, "lint-staged": { "*.{json,ts,tsx,js}": "eslint --fix -f table" }, "repository": { "type": "git", "url": "git+https://github.com/i18n-pro/core.git" }, "homepage": "https://github.com/i18n-pro/core", "bugs": { "url": "https://github.com/i18n-pro/core/issues" }, "dependencies": { "@alicloud/alimt20181012": "^1.0.4", "@alicloud/openapi-client": "^0.4.4", "@alicloud/tea-util": "^1.4.5", "@google-cloud/translate": "7", "esbuild": "^0.25.3", "fast-glob": "^3.3.1", "google-translate-api-x": "^10.6.1", "gpt-3-encoder": "^1.1.4", "https-proxy-agent": "^5.0.1", "node-fetch": "^2.6.11" }, "codeNameMap": { "en": "", "zh": "zh-CN" } }