Giter Club home page Giter Club logo

lobe-cli-toolbox's Issues

[Question]

๐Ÿง ้—ฎ้ข˜ๆ่ฟฐ | Proposed Solution

serdgh

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

wae

[Question] ไพ่ต–้—ฎ้ข˜

๐Ÿง ้—ฎ้ข˜ๆ่ฟฐ | Proposed Solution

ๆฑ‚ๅŠฉ๏ผŒ้‡ๅˆฐๅฆ‚ไธ‹ๆŠฅ้”™

Error: Invalid environment; fetch is not defined
    at new ChatGPTAPI (file:///C:/Users/***/AppData/Roaming/npm/node_modules/@lobehub/commit-cli/node_modules/chatgpt/build/index.js:174:13)
็ญ‰็ญ‰

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

ๆฒกๆŸฅๅˆฐๆ€Žไนˆ่งฃๅ†ณ่ฟ™ไธช้—ฎ้ข˜๏ผŒๅธŒๆœ›ๅคงไฝฌไธ่ฆๆ‰“ๆˆ‘emmm

[Bug] WSL2ไธญๆ— ๆณ•ๆญฃๅธธ่พ“ๅ…ฅๆ–‡ๅญ—

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

Windows

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

2.9.3

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

WSL2ไธญๆ— ๆณ•ๆญฃๅธธ่พ“ๅ…ฅๆ–‡ๅญ—๏ผŒๆฏๅฝ“้œ€่ฆ่พ“ๅ…ฅๆ–‡ๅญ—็š„ๆ—ถๅ€™๏ผŒ็จ‹ๅบๅฐฑ่‡ชๅŠจ็ปˆๆญขไบ†

2023-09-10.15-10-43_x264.mp4
> uname -a  
Linux DESKTOP-C9MSV31 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

> node -v                                
v18.16.0

> lobe-commit -V
2.9.3

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

No response

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

No response

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

[Request] lobe-i18n - Add more translation services

๐Ÿฅฐ ้œ€ๆฑ‚ๆ่ฟฐ | Feature Description

I'm really impressed by tools with auto-translate features like Lobe i18n. However, there are still some languages that ChatGPT doesn't translate accurately, and even Google Translate does a better job. My current difficulty is that while most countries' languages work well, some still need manual translation, which is very time-consuming.
Thank you

๐Ÿง ่งฃๅ†ณๆ–นๆกˆ | Proposed Solution

I hope you can add more translation services, like I18n Ally or locize does. Additionally, it would be helpful to have a configuration option for specific languages that are not translated accurately, eg. most languages will use Chat GPT and some will allowing the use of other services like Google Translate or something similar.

I18n Ally Image Ref
image

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/issue-auto-comments.yml
  • wow-actions/auto-comment v1
  • wow-actions/auto-comment v1
  • wow-actions/auto-comment v1
  • actions-cool/issues-helper v3
.github/workflows/issue-close-require.yml
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
.github/workflows/issues-translate.yml
  • usthe/issues-translate-action v2.7
.github/workflows/release.yml
  • actions/checkout v4
  • oven-sh/setup-bun v2
.github/workflows/test.yml
  • actions/checkout v4
  • oven-sh/setup-bun v2
npm
package.json
  • @commitlint/cli ^19
  • @sindresorhus/tsconfig ^5
  • @types/lodash-es ^4
  • @types/node ^20
  • @types/pangu ^4
  • @types/react ^18
  • @types/update-notifier ^6
  • @umijs/lint ^4
  • clean-pkg-json ^1
  • commitlint ^19
  • eslint ^8
  • husky ^9
  • ink-testing-library ^3
  • lerna ^8
  • lint-staged ^15
  • multi-semantic-release ^3
  • pkgroll ^2
  • prettier ^3
  • remark ^14
  • remark-cli ^11
  • semantic-release ^21
  • ts-node ^10
  • typescript ^5
  • node >=18
packages/lobe-cli-shebang/package.json
  • commander ^12
  • consola ^3
  • update-notifier ^7
  • node >=18
packages/lobe-cli-ui/package.json
  • @inkjs/ui ^1
  • arr-rotate ^1
  • consola ^3
  • fast-deep-equal ^3
  • figures ^6
  • ink ^4.2
  • react ^18
  • @inkjs/ui >=1
  • consola >=3
  • ink >=4
  • react >=18
  • node >=18
packages/lobe-commit/package.json
  • @inkjs/ui ^1
  • chalk ^5
  • commander ^12
  • conf ^12
  • dotenv ^16
  • execa ^8
  • fast-deep-equal ^3
  • gitconfig ^2
  • gpt-tokenizer ^2
  • ink ^4.2
  • lodash-es ^4
  • octokit ^3
  • pangu ^4
  • path-exists ^5
  • react ^18
  • swr ^2
  • update-notifier ^7
  • zustand ^4
  • ink >=4
  • react >=18
  • node >=18
packages/lobe-i18n/package.json
  • @inkjs/ui ^1
  • chalk ^5
  • commander ^12
  • conf ^12
  • consola ^3
  • cosmiconfig ^9
  • dotenv ^16
  • fast-deep-equal ^3
  • glob ^10
  • gpt-tokenizer ^2
  • gray-matter ^4
  • ink ^4.2
  • json-stable-stringify ^1
  • just-diff ^6
  • lodash-es ^4
  • p-map ^7
  • pangu ^4
  • react ^18
  • remark-frontmatter ^4
  • remark-gfm ^3
  • remark-parse ^10
  • remark-stringify ^10
  • swr ^2
  • unified ^11
  • unist-util-visit ^5
  • update-notifier ^7
  • zustand ^4
  • @types/json-stable-stringify ^1
  • ink >=4
  • react >=18
  • node >=18
packages/lobe-label/package.json
  • @inkjs/ui ^1
  • @octokit/rest ^20
  • commander ^12
  • conf ^12
  • consola ^3
  • ink ^4.2
  • lodash-es ^4
  • react ^18
  • update-notifier ^7
  • ink >=4
  • react >=18
  • node >=18
packages/lobe-seo/package.json
  • @inkjs/ui ^1
  • chalk ^5
  • commander ^12.0.0
  • conf ^12
  • consola ^3
  • cosmiconfig ^9
  • dotenv ^16
  • fast-deep-equal ^3
  • glob ^10
  • gpt-tokenizer ^2
  • gray-matter ^4
  • ink ^4.2
  • json-stable-stringify ^1
  • just-diff ^6
  • lodash-es ^4
  • p-map ^7
  • pangu ^4
  • react ^18
  • remark-frontmatter ^4
  • remark-gfm ^3
  • remark-parse ^10
  • remark-stringify ^10
  • swr ^2
  • unified ^11
  • unist-util-visit ^5
  • update-notifier ^7
  • zustand ^4
  • @types/json-stable-stringify ^1
  • ink >=4
  • react >=18
  • node >=18

  • Check this box to trigger a request for Renovate to run again on this repository

[Bug] Cannot read properties of undefined (reading 'text')

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

Mac

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

2.14.0

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

ERROR Cannot read properties of undefined (reading 'text') 17:16:34

at NoOpOutputParser.parseResult (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/@langchain/core/dist/output_parsers/base.js:50:42)
at NoOpOutputParser.parseResultWithPrompt (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/@langchain/core/dist/output_parsers/base.js:17:21)
at LLMChain._getFinalOutput (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/langchain/dist/chains/llm_chain.js:121:55)
at LLMChain._call (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/langchain/dist/chains/llm_chain.js:156:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async LLMChain.call (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/langchain/dist/chains/base.js:117:28)
at async Promise.all (index 0)
at async MapReduceDocumentsChain._call (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/langchain/dist/chains/combine_docs_chain.js:184:29)
at async MapReduceDocumentsChain.call (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/langchain/dist/chains/base.js:117:28)
at async xt.genSummary (/Users/xx/.nvm/versions/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/dist/cli.js:8:1592)

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

No response

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

No response

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

[Bug] Unreadable text in positive prompt

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

Other Linux

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

Automatic1111, current, also current for Lobe

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

Text in the prompt is unreadable, same color as background. Only when drag selected it is readable. The negative prompt dispplay is fine.

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

readable prompt

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

start, type something,

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

If I inspect element, in css I have an

element.style {
  color: transparent;
}

If I disble this the text shows again. It seems also that if I deselect the prompt syntax highlighting in the lobe configuration menu, that the issue also resolves.
Enabling the advanced text editor, Scroll or realizable do not change this, nor does activating prompt editor
I am somewhat suspecting it's from nativeTextarea.style.color = 'transparent'; in src/modules/PromptHighlight/App.tsx, but simply changing that didn't resolve the issue

[Request] lobe-i18n - ๆทปๅŠ ๆ–‡ไปถ็ผ“ๅญ˜ๅŠŸ่ƒฝ

๐Ÿฅฐ ้œ€ๆฑ‚ๆ่ฟฐ | Feature Description

ๅฝ“ๅคšๆฌก็ฟป่ฏ‘็š„ๆ—ถๅ€™๏ผŒ่ฒŒไผผๅชๆฃ€ๆŸฅไบ†็ฟป่ฏ‘ๅŽๆ–‡ไปถๆ˜ฏๅฆๅญ˜ๅœจ๏ผŒๅนถๆœช่ฟ›่กŒ hash ๆ ก้ชŒ๏ผŒๅฏผ่‡ดๅขž้‡็”Ÿๆˆไผšๆœ‰้—ฎ้ข˜ใ€‚
image

๐Ÿง ่งฃๅ†ณๆ–นๆกˆ | Proposed Solution

้€š่ฟ‡่ฎก็ฎ—ๆฏไธชๅŽŸๅง‹ๆ–‡ไปถ็š„ hash ๅ€ผ็ผ“ๅญ˜ AI ็š„็ฟป่ฏ‘็ป“ๆžœ๏ผŒ่ฟ™ไธช็ป“ๆžœๅนถๅญ˜ๅ‚จๅœจ้กน็›ฎ็š„ cache ๆ–‡ไปถๅคนๅ†…้ƒจใ€‚
ๆฏๆฌก่ฟ่กŒๆ—ถ๏ผŒไปŽ cache ไธญๆฃ€ๆŸฅ hash ๅ€ผ๏ผŒๅนถ่ฟ‡ๆปคๅฏนๅบ”ๆ–‡ไปถใ€‚

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

ๅฏ่ƒฝๆˆ‘ไผšๆไบคไธ€ไธช PR ๅŽป่งฃๅ†ณ่ฟ™ไธช้—ฎ้ข˜๏ผŒไธ่ฟ‡่ฟ˜ๆฒก็œ‹่ฟ‡้กน็›ฎไปฃ็ 

prompt input is not at cursor

When i change the prompt by editing, the prompt display and cursor position go out of sync. The prompt wraps differently than is diplayed. If you thereafter place the cursor at a different position, what you type does not end up where you placed the cursor. You can 'fix' this by resizing the prompt box, and then the prompt wrapping will fix itself and then you can type again. My language for the prompt is English. It is not very far off, so maybe it's just an off-by-one for the word wrapping position.
I once worked on an ren'py editor and recall having something similar at one point. It is probably not going to help but that code is here:
edit_button.rpy

[Bug] macOS Terminal ้‡ๅฝฑ

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

Windows

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

2.13.0

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

Screen_-2024-03-13_at_19.21.55.mp4

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

ๆญฃๅธธ่ฟ่กŒไธไผšๆœ‰้‡ๅฝฑ

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

ๅœจ Terminal ไธญ่พ“ๅ…ฅ lobe๏ผŒ้šๆ„้€‰ๆ‹ฉ item ๆˆ–่€…่พ“ๅ…ฅไปปไฝ•ๅญ—็ฌฆๅณๅฏๅค็Žฐ

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

ๅœจ macOS ่‡ชๅธฆ็š„ Terminal ไธŠ่ฟ่กŒๅ’Œ VS Code ๅ†…ๅปบ็š„ Terminal ้ƒฝๆ˜ฏๅŒๆ ท็š„็ป“ๆžœใ€‚

Lobe Version: v2.13.0
Node Version: v21.6.1
OS Type: Darwin
OS Platform: darwin
OS Architecture: arm64
OS Release: 23.3.0

The automated release is failing ๐Ÿšจ

๐Ÿšจ The automated release from the master branch failed. ๐Ÿšจ

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iโ€™m sure you can fix this ๐Ÿ’ช.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those donโ€™t help, or if this issue is reporting something you think isnโ€™t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://[secure]@github.com/canisminor1990/lobe-commit.git.

This can be caused by:


Good luck with your project โœจ

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

[Question] ่ฏท้—ฎๅœจๅˆๅง‹ๆƒ…ๅ†ตไธ‹ๅฆ‚ไฝ•็”Ÿๆˆzh-CN.jsonๅ‘ข๏ผŸ

๐Ÿง ้—ฎ้ข˜ๆ่ฟฐ | Proposed Solution

i18n็š„็›ธๅ…ณๆ–‡ไปถ๏ผŒๆˆ‘้ƒฝๆ˜ฏๅ†™ๅœจ/src/locales/defaultไธญ็š„ๅ˜›๏ผŒ็„ถๅŽ่ฟ™ไบ›้ƒฝๆ˜ฏtsๆ–‡ไปถ๏ผŒๆˆ‘ๅบ”่ฏฅๆ€Žไนˆๅˆๅง‹ๅŒ–ๅœจ/localesไธญ็”Ÿๆˆdefaultๅฏนๅบ”็š„zh-CN.jsonๆ–‡ไปถๅ‘ข๏ผŸ

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

is not valid JSON

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

macOS

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

"@lobehub/i18n-cli": "^1.18.1",

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

โ„น Current model setting: gpt-4o (temperature: 0) [JSON Mode]} 11:41:29
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ“ /locales/zh-TW/setting.json

  • from zh-CN to zh-TW [Tokens: 6694]
    โ ™ 4% [1/21 chunks] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘

ERROR Translate failed, SyntaxError: Unexpected token 'S', "Sure, it l"... is not valid JSON 11:41:31

error: script "i18n" exited with code 1

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

่ฏท้—ฎๅบ”่ฏฅๅฆ‚ไฝ•ๆŽ’ๆŸฅ้—ฎ้ข˜๏ผŸ

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

No response

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

md i18n bug

  1. ้“พๆŽฅ้”™ไฝ๏ผŒๅœจ่‹ฑๆ–‡้‡Œ่ขซ่ฏ†ๅˆซๆˆ link ไบ†๏ผŒไธ”ไฝ็ฝฎไธๆญฃ็กฎใ€‚

image

image

  1. ็ฟป่ฏ‘ๅ†…ๅฎนไธขๅคฑ
    image
    ๅŽŸๆ–‡ๅ†…ๅฎน๏ผš
    image

ๆ–‡ไปถ๏ผšuse-on-standalone-init.md

  1. ๆ ‡้ข˜็ฟป่ฏ‘ๅค„็†้—ฎ้ข˜

image

ๅŽŸๅง‹ๅ†…ๅฎน๏ผš

image

ๆ–‡ไปถ๏ผšsubmit-market.zh-CN.md

  1. ็ฟป่ฏ‘้—ฎ้ข˜

image

ๅŽŸๅง‹ๅ†…ๅฎน๏ผš
image

็›ดๆŽฅ็ฟป่ฏ‘ๆฒก้—ฎ้ข˜๏ผš
image

  1. markdown ๆ ‡่ฎฐ้—ฎ้ข˜

image

[Bug]

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

Windows

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

ๆœ€ๆ–ฐ็‰ˆ

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

่พ“ๅ…ฅๅŽๆ— ๆณ•่ฟ›่กŒไปปไฝ•่ฎพ็ฝฎ๏ผŒๅŒ…ๆ‹ฌexitๅ›ž่ฝฆ้ƒฝไธ็ฎก็”จ

lobe-commit --config

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

No response

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

npm install -g @lobehub/commit-cli
cd D:\Git้กน็›ฎ\lobe
lobe-commit --config

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

[Bug] CERT_HAS_EXPIRED

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

Windows

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

2.10.0

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

Failed to calculate number of tokens, falling back to approximate count TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11372:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RetryOperation._fn (/node/v18.18.2/lib/node_modules/@lobehub/commit-cli/node_modules/p-retry/index.js:50:12) {
cause: Error: certificate has expired
at TLSSocket.onConnectSecure (node:_tls_wrap:1600:34)
at TLSSocket.emit (node:events:517:28)
at TLSSocket._finishInit (node:_tls_wrap:1017:8)
at ssl.onhandshakedone (node:_tls_wrap:803:12) {
code: 'CERT_HAS_EXPIRED'
}
}

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

No response

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

No response

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

[Question] lobe-i18n cli run failed?

๐Ÿง ้—ฎ้ข˜ๆ่ฟฐ | Proposed Solution

First of all, thank you very much for providing this tool๏ผ
I'm having some problems now.

This my script:

...
  execSync(`lobe-i18n md --config ${componentTranslateConfigPath}`, {
    cwd: process.cwd(),
    stdio: "inherit",
    env: {
      OPENAI_PROXY_URL: "xxxx",
      OPENAI_API_KEY: "xxxx"
    }
  });
...

and this is my .i18nrc.js:

const path = require("path");
const { defineConfig } = require("@lobehub/i18n-cli");

module.exports = defineConfig({
  markdown: {
    entry: [path.resolve(__dirname, "./index.md")],
    entryLocale: "en-US",
    entryExtension: ".md",
    outputLocales: ["zh-CN"],
    outputExtensions: (locale, { getDefaultExtension }) => {
      //if (locale === "en-US") return ".md";
      return getDefaultExtension(locale);
    }
  }
});

All the config load normally, but it's failed:

โ„น start translate portal doc...                                                17:17:02
o Lobe I18N is analyzing your markdown... ๐Ÿคฏ๐ŸŒ๐Ÿ”                          17:17:05
o Running in ๐Ÿ“„ 1 Markdown, and translating to zh-CN locales..            17:17:05
i ๐Ÿ“„ To zh-CN: src\portal\index.md                              17:17:05  
i Current model setting: gpt-3.5-turbo (temperature: 0) }                  17:17:05  
โ”€โ”€โ”€โ”€ ๐Ÿ“ E:\project\incall-fuxi\packages\fuxi\src\portal\index.zh-CN.md 
- from en-US to zh-CN [Tokens: 1619]
โ ง  0% [0/1 chunks] 

 ERROR  Translate failed, TypeError: Cannot read properties of undefined (reading 'message')        17:17:07  

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

[Bug] Cannot read properties of null (reading 'useEffect')

๐Ÿ’ป ็ณป็ปŸ็Žฏๅขƒ | Operating System

macOS

๐ŸŒ CLI ็‰ˆๆœฌ | CLI Version

1.18.1

๐Ÿ› ้—ฎ้ข˜ๆ่ฟฐ | Bug Description

node: v20.10.0
os: macOS
่ฟ่กŒ lobe-i18n -o ๆŠฅ้”™

ERROR Cannot read properties of null (reading 'useEffect')

node_modules/@lobehub/cli-ui/node_modules/react/cjs/react.development.js:1634:21

1631: }
1632: function useEffect(create, deps) {
1633: var dispatcher = resolveDispatcher();
1634: return dispatcher.useEffect(create, deps);
1635: }
1636: function useInsertionEffect(create, deps) {
1637: var dispatcher = resolveDispatcher();

  • useEffect (node_modules/@lobehub/cli-ui/node_modules/react/cjs/react.development.js:1634:21)
  • (node_modules/@lobehub/cli-ui/dist/index.js:1:4537)
  • renderWithHooks (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:6659:18)
  • updateFunctionComponent (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:10790:20)
  • updateSimpleMemoComponent (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:10627:10)
  • updateMemoComponent (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:10476:14)
  • beginWork (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:12885:16)
  • beginWork$1 (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:19608:14)
  • performUnitOfWork (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:18742:12)
  • workLoopSync (node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:18648:5)

๐Ÿšฆ ๆœŸๆœ›็ป“ๆžœ | Expected Behavior

No response

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค | Recurrence Steps

No response

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

[Question] How to find JSON files in multi-level folders under locales.

๐Ÿง ้—ฎ้ข˜ๆ่ฟฐ | Proposed Solution

my examples:

locales/en-US/a.json
locales/en-US/subpath1/b.json
locales/en-US/subpath1/subpath2/c.json
locales/en-US/subpath1/.../d.json
....

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.