添加i18n支持

This commit is contained in:
zhcnyuyang 2025-06-25 15:39:11 +08:00
parent 8e12faec4e
commit 0a3e51a4c0
3 changed files with 35 additions and 0 deletions

24
.pnp.cjs generated
View File

@ -37,6 +37,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@codemirror/lang-xml", "npm:6.1.0"],\
["@codemirror/state", "npm:6.5.2"],\
["@codemirror/view", "npm:6.37.2"],\
["@nanostores/i18n", "virtual:72ff44e1307b5c61447ede5ffc28ecacd700948466d7165d2b8899ff130869b2d667d50a2c66953dea1538a5d0a0d113cbca9e74c5d3de8af55596b6aff4d3a3#npm:1.0.1"],\
["@rollup/plugin-typescript", "virtual:72ff44e1307b5c61447ede5ffc28ecacd700948466d7165d2b8899ff130869b2d667d50a2c66953dea1538a5d0a0d113cbca9e74c5d3de8af55596b6aff4d3a3#npm:12.1.3"],\
["axios", "npm:1.10.0"],\
["bulma", "npm:1.0.4"],\
@ -223,6 +224,28 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"linkType": "HARD"\
}]\
]],\
["@nanostores/i18n", [\
["npm:1.0.1", {\
"packageLocation": "./.yarn/cache/@nanostores-i18n-npm-1.0.1-765084c384-b95f04da6b.zip/node_modules/@nanostores/i18n/",\
"packageDependencies": [\
["@nanostores/i18n", "npm:1.0.1"]\
],\
"linkType": "SOFT"\
}],\
["virtual:72ff44e1307b5c61447ede5ffc28ecacd700948466d7165d2b8899ff130869b2d667d50a2c66953dea1538a5d0a0d113cbca9e74c5d3de8af55596b6aff4d3a3#npm:1.0.1", {\
"packageLocation": "./.yarn/__virtual__/@nanostores-i18n-virtual-14b0d7207e/0/cache/@nanostores-i18n-npm-1.0.1-765084c384-b95f04da6b.zip/node_modules/@nanostores/i18n/",\
"packageDependencies": [\
["@nanostores/i18n", "virtual:72ff44e1307b5c61447ede5ffc28ecacd700948466d7165d2b8899ff130869b2d667d50a2c66953dea1538a5d0a0d113cbca9e74c5d3de8af55596b6aff4d3a3#npm:1.0.1"],\
["@types/nanostores", null],\
["nanostores", "npm:1.0.1"]\
],\
"packagePeers": [\
"@types/nanostores",\
"nanostores"\
],\
"linkType": "HARD"\
}]\
]],\
["@npmcli/agent", [\
["npm:3.0.0", {\
"packageLocation": "./.yarn/cache/@npmcli-agent-npm-3.0.0-169e79294f-e8fc25d536.zip/node_modules/@npmcli/agent/",\
@ -3066,6 +3089,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@codemirror/lang-xml", "npm:6.1.0"],\
["@codemirror/state", "npm:6.5.2"],\
["@codemirror/view", "npm:6.37.2"],\
["@nanostores/i18n", "virtual:72ff44e1307b5c61447ede5ffc28ecacd700948466d7165d2b8899ff130869b2d667d50a2c66953dea1538a5d0a0d113cbca9e74c5d3de8af55596b6aff4d3a3#npm:1.0.1"],\
["@rollup/plugin-typescript", "virtual:72ff44e1307b5c61447ede5ffc28ecacd700948466d7165d2b8899ff130869b2d667d50a2c66953dea1538a5d0a0d113cbca9e74c5d3de8af55596b6aff4d3a3#npm:12.1.3"],\
["axios", "npm:1.10.0"],\
["bulma", "npm:1.0.4"],\

View File

@ -23,6 +23,7 @@
"@codemirror/lang-xml": "^6.1.0",
"@codemirror/state": "^6.5.2",
"@codemirror/view": "^6.37.2",
"@nanostores/i18n": "^1.0.1",
"axios": "^1.10.0",
"bulma": "^1.0.4",
"nanostores": "^1.0.1"

View File

@ -153,6 +153,15 @@ __metadata:
languageName: node
linkType: hard
"@nanostores/i18n@npm:^1.0.1":
version: 1.0.1
resolution: "@nanostores/i18n@npm:1.0.1"
peerDependencies:
nanostores: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^1.0.0
checksum: b95f04da6b09bff1d7b4ebe3bc791700baac482e33fe503af0eda72dfe747497c87330520bdf4d934fef0566276223bc5470ff021e5b879e48d4ef496aa36c95
languageName: node
linkType: hard
"@npmcli/agent@npm:^3.0.0":
version: 3.0.0
resolution: "@npmcli/agent@npm:3.0.0"
@ -2260,6 +2269,7 @@ __metadata:
"@codemirror/lang-xml": ^6.1.0
"@codemirror/state": ^6.5.2
"@codemirror/view": ^6.37.2
"@nanostores/i18n": ^1.0.1
"@rollup/plugin-typescript": ^12.1.3
axios: ^1.10.0
bulma: ^1.0.4