Skip to content

Commit

Permalink
chore: script title and description support chinese
Browse files Browse the repository at this point in the history
Release-As: 1.9.1
  • Loading branch information
pionxzh committed Feb 27, 2023
1 parent ce627a4 commit 2147a91
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/userscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"version": "1.9.0",
"private": true,
"title": "ChatGPT Exporter",
"title:zh-CN": "ChatGPT Exporter",
"title:zh-TW": "ChatGPT Exporter",
"description": "Easily export the whole ChatGPT conversation history for further analysis or sharing.",
"description:zh-CN": "轻松导出 ChatGPT 聊天记录,以便进一步分析或分享。",
"description:zh-TW": "輕鬆匯出 ChatGPT 聊天紀錄,以便進一步分析或分享。",
"author": "pionxzh",
"license": "MIT",
"scripts": {
Expand Down
12 changes: 10 additions & 2 deletions packages/userscript/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ export default defineConfig({
monkey({
entry: 'src/main.tsx',
userscript: {
'name': packageJson.title,
'name': {
'': packageJson.title,
'zh-CN': packageJson['title:zh-CN'],
'zh-TW': packageJson['title:zh-TW'],
},
'author': packageJson.author,
'namespace': packageJson.author,
'description': packageJson.description,
'description': {
'': packageJson.description,
'zh-CN': packageJson['description:zh-CN'],
'zh-TW': packageJson['description:zh-TW'],
},
'license': packageJson.license,
'match': ['https://chat.openai.com/chat', 'https://chat.openai.com/chat/*'],
'icon': 'https://chat.openai.com/favicon.ico',
Expand Down

0 comments on commit 2147a91

Please sign in to comment.