openpencil/packages/vue/package.json
Danila Poyarkov 2b3219e106 Add i18n to Vue SDK with nanostores
nanostores + @nanostores/i18n + @nanostores/vue (~6 KB total).

English base translations defined inline in messages.ts, other
locales loaded on demand from JSON. Grouped by domain: menu,
commands, tools, panels, pages, dialogs.

useI18n() composable returns reactive translation objects plus
locale controls. Russian locale included as first translation.

Browser language auto-detected, user preference persisted in
localStorage.
2026-03-25 16:17:03 +03:00

56 lines
1.2 KiB
JSON

{
"name": "@open-pencil/vue",
"version": "0.10.0",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./src/index.ts",
"bun": "./src/index.ts",
"default": "./src/index.ts"
}
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"sideEffects": false,
"files": ["src", "dist"],
"scripts": {
"build": "vue-tsc --emitDeclarationOnly",
"prepublishOnly": "bun run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/open-pencil/open-pencil.git",
"directory": "packages/vue"
},
"publishConfig": {
"access": "public",
"provenance": true,
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"peerDependencies": {
"vue": "^3.4.0",
"@open-pencil/core": "workspace:*",
"canvaskit-wasm": ">=0.39.0"
},
"peerDependenciesMeta": {
"canvaskit-wasm": {
"optional": true
}
},
"dependencies": {
"@nanostores/i18n": "^1.2.2",
"@nanostores/vue": "^1.1.0",
"@vueuse/core": "^14.2.1",
"nanostores": "^1.2.0"
}
}