-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is not valid JSON #100
Comments
๐ @JARVISMindEngineer Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'locales/zh-CN',
entryLocale: 'zh-CN',
output: 'locales',
outputLocales: [
'zh-TW',
'en-US',
'ja-JP',
],
temperature: 0,
modelName: 'gpt-4o',
splitToken: 2048,
experimental: {
jsonMode: true,
},
}); ่ฟๆฏๆ็้ ็ฝฎๆไปถ |
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'locales/zh-CN',
entryLocale: 'zh-CN',
output: 'locales',
outputLocales: [
'zh-TW',
'en-US',
'ja-JP',
],
temperature: 0,
modelName: 'gpt-4o',
splitToken: 2048,
experimental: {
jsonMode: true,
},
}); This is my config file |
All packages installed (373 packages installed from npm registry, used 4s(network 4s), speed 0B/s, json 0(0B), tarball 0B, manifests cache hit 330, etag hit 0 / miss 0) โ lobe-i18n --version |
๐ป ็ณป็ป็ฏๅข | 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
โ 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
The text was updated successfully, but these errors were encountered: