chore: 将版本更新至 v0.0.0 并完善多种语言的签到奖励信息 - #2829
Conversation
WalkthroughRemoves "随机" from daily sign-in messaging, comments out one reward bullet in the invitation card, updates multiple i18n keys, switches the new-api service in docker-compose to a local build, and adds a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Fix all issues with AI agents
In `@web/src/i18n/locales/en.json`:
- Line 2574: Update the English translation for the key "每日签到可获得额度奖励" by
removing the word "random" from its value; change the value from "Daily check-in
rewards random quota" to "Daily check-in rewards quota" (or equivalent without
"random") so it matches the updated key wording.
In `@web/src/i18n/locales/fr.json`:
- Line 2576: The French translation for the key "每日签到可获得额度奖励" still contains
"aléatoire" but the key no longer includes "随机" (random); update the value in
web/src/i18n/locales/fr.json for that key to remove "aléatoire" so it matches
the key change (e.g., change "L'enregistrement quotidien récompense un quota
aléatoire" to "L'enregistrement quotidien récompense un quota" or an equivalent
French phrasing without "aléatoire").
In `@web/src/i18n/locales/ja.json`:
- Line 2559: Update the Japanese translation for the key "每日签到可获得额度奖励" by
removing the word "ランダムな" so the value reads "毎日のチェックインでクォータ報酬を獲得できます" (i.e.,
delete the adjective indicating randomness from the existing value string).
In `@web/src/i18n/locales/ru.json`:
- Line 2589: Replace the Russian translation value for the key "每日签到可获得额度奖励" to
remove the word "случайной" so it matches the updated copy (i.e., change
"Ежедневная регистрация награждает случайной квотой" to a phrasing without
"случайной" that preserves meaning and grammar in Russian).
In `@web/src/i18n/locales/vi.json`:
- Line 3139: The Vietnamese translation for the key "每日签到可获得额度奖励" still contains
the word "ngẫu nhiên"; update the value to remove “ngẫu nhiên” so it reads
something like "Đăng nhập hàng ngày để nhận phần thưởng hạn mức" (i.e., remove
the word implying randomness) ensuring the string value for that key in vi.json
matches the intended non-random copy.
🧹 Nitpick comments (1)
web/src/components/topup/InvitationCard.jsx (1)
202-207: Consider removing commented-out code instead of leaving it in the codebase.Commented-out code adds noise and can become stale. If this reward bullet is intentionally being removed, delete these lines entirely. If it's temporarily disabled, add a TODO comment explaining when/why it should be re-enabled.
Proposed fix (if intentionally removed)
<Card className='!rounded-xl w-full' title={<Text type='tertiary'>{t('奖励说明')}</Text>} > <div className='space-y-3'> - {/* <div className='flex items-start gap-2'> - <Badge dot type='success' /> - <Text type='tertiary' className='text-sm'> - {t('邀请好友注册,好友充值后您可获得相应奖励')} - </Text> - </div> */} - <div className='flex items-start gap-2'>
| "每日签到": "Daily Check-in", | ||
| "今日已签到,累计签到": "Checked in today, total check-ins", | ||
| "每日签到可获得随机额度奖励": "Daily check-in rewards random quota", | ||
| "每日签到可获得额度奖励": "Daily check-in rewards random quota", |
There was a problem hiding this comment.
Remove “random” from the English value to match the updated key.
The value still mentions random rewards, which contradicts the new wording.
✏️ Suggested fix
-"每日签到可获得额度奖励": "Daily check-in rewards random quota",
+"每日签到可获得额度奖励": "Daily check-in rewards quota",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "每日签到可获得额度奖励": "Daily check-in rewards random quota", | |
| "每日签到可获得额度奖励": "Daily check-in rewards quota", |
🤖 Prompt for AI Agents
In `@web/src/i18n/locales/en.json` at line 2574, Update the English translation
for the key "每日签到可获得额度奖励" by removing the word "random" from its value; change
the value from "Daily check-in rewards random quota" to "Daily check-in rewards
quota" (or equivalent without "random") so it matches the updated key wording.
| "每日签到": "Enregistrement quotidien", | ||
| "今日已签到,累计签到": "Enregistré aujourd'hui, total des enregistrements", | ||
| "每日签到可获得随机额度奖励": "L'enregistrement quotidien récompense un quota aléatoire", | ||
| "每日签到可获得额度奖励": "L'enregistrement quotidien récompense un quota aléatoire", |
There was a problem hiding this comment.
Translation value inconsistent with key change.
The key was changed from "每日签到可获得随机额度奖励" to "每日签到可获得额度奖励" (removing "随机"/random), but the French translation still contains "aléatoire" (random). The translation value should be updated to match the key change.
Proposed fix
- "每日签到可获得额度奖励": "L'enregistrement quotidien récompense un quota aléatoire",
+ "每日签到可获得额度奖励": "L'enregistrement quotidien récompense un quota",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "每日签到可获得额度奖励": "L'enregistrement quotidien récompense un quota aléatoire", | |
| "每日签到可获得额度奖励": "L'enregistrement quotidien récompense un quota", |
🤖 Prompt for AI Agents
In `@web/src/i18n/locales/fr.json` at line 2576, The French translation for the
key "每日签到可获得额度奖励" still contains "aléatoire" but the key no longer includes "随机"
(random); update the value in web/src/i18n/locales/fr.json for that key to
remove "aléatoire" so it matches the key change (e.g., change "L'enregistrement
quotidien récompense un quota aléatoire" to "L'enregistrement quotidien
récompense un quota" or an equivalent French phrasing without "aléatoire").
| "每日签到": "毎日のチェックイン", | ||
| "今日已签到,累计签到": "本日チェックイン済み、累計チェックイン", | ||
| "每日签到可获得随机额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます", | ||
| "每日签到可获得额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます", |
There was a problem hiding this comment.
Remove “random” from the Japanese message to match the new key.
Line 2559 still says “ランダムな”, which contradicts the updated copy intent that removes randomness.
💬 Proposed fix
- "每日签到可获得额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます",
+ "每日签到可获得额度奖励": "毎日のチェックインでクォータ報酬を獲得できます",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "每日签到可获得额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます", | |
| "每日签到可获得额度奖励": "毎日のチェックインでクォータ報酬を獲得できます", |
🤖 Prompt for AI Agents
In `@web/src/i18n/locales/ja.json` at line 2559, Update the Japanese translation
for the key "每日签到可获得额度奖励" by removing the word "ランダムな" so the value reads
"毎日のチェックインでクォータ報酬を獲得できます" (i.e., delete the adjective indicating randomness from
the existing value string).
| "每日签到": "Ежедневная регистрация", | ||
| "今日已签到,累计签到": "Зарегистрирован сегодня, всего регистраций", | ||
| "每日签到可获得随机额度奖励": "Ежедневная регистрация награждает случайной квотой", | ||
| "每日签到可获得额度奖励": "Ежедневная регистрация награждает случайной квотой", |
There was a problem hiding this comment.
Remove “random” from the Russian message to match the new key.
Line 2589 still says “случайной квотой”, which contradicts the updated copy intent that removes randomness.
💬 Proposed fix
- "每日签到可获得额度奖励": "Ежедневная регистрация награждает случайной квотой",
+ "每日签到可获得额度奖励": "Ежедневная регистрация приносит награду в виде квоты",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "每日签到可获得额度奖励": "Ежедневная регистрация награждает случайной квотой", | |
| "每日签到可获得额度奖励": "Ежедневная регистрация приносит награду в виде квоты", |
🤖 Prompt for AI Agents
In `@web/src/i18n/locales/ru.json` at line 2589, Replace the Russian translation
value for the key "每日签到可获得额度奖励" to remove the word "случайной" so it matches the
updated copy (i.e., change "Ежедневная регистрация награждает случайной квотой"
to a phrasing without "случайной" that preserves meaning and grammar in
Russian).
| "每日签到": "Đăng nhập hàng ngày", | ||
| "今日已签到,累计签到": "Đã đăng nhập hôm nay, tổng số lần đăng nhập", | ||
| "每日签到可获得随机额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức ngẫu nhiên", | ||
| "每日签到可获得额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức ngẫu nhiên", |
There was a problem hiding this comment.
Update the Vietnamese text to remove “random” wording.
Line 3139 still says “ngẫu nhiên” despite the key rename, which contradicts the intended copy change.
🔧 Suggested change
- "每日签到可获得额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức ngẫu nhiên",
+ "每日签到可获得额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "每日签到可获得额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức ngẫu nhiên", | |
| "每日签到可获得额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức", |
🤖 Prompt for AI Agents
In `@web/src/i18n/locales/vi.json` at line 3139, The Vietnamese translation for
the key "每日签到可获得额度奖励" still contains the word "ngẫu nhiên"; update the value to
remove “ngẫu nhiên” so it reads something like "Đăng nhập hàng ngày để nhận phần
thưởng hạn mức" (i.e., remove the word implying randomness) ensuring the string
value for that key in vi.json matches the intended non-random copy.
Summary by CodeRabbit
Chores
Bug Fixes
Content Updates