Skip to content

chore: 将版本更新至 v0.0.0 并完善多种语言的签到奖励信息 - #2829

Closed
lxl-sql wants to merge 3 commits into
QuantumNous:mainfrom
lxl-sql:main
Closed

chore: 将版本更新至 v0.0.0 并完善多种语言的签到奖励信息#2829
lxl-sql wants to merge 3 commits into
QuantumNous:mainfrom
lxl-sql:main

Conversation

@lxl-sql

@lxl-sql lxl-sql commented Feb 4, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • Chores

    • Set project version to v0.0.0.
    • Use a local build for the API service in the Compose setup.
  • Bug Fixes

    • Removed the "random" qualifier from daily check-in reward messaging across supported languages.
  • Content Updates

    • Simplified rewards copy and removed one explanatory reward bullet from the UI.

@coderabbitai

coderabbitai Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Removes "随机" 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 VERSION file containing "v0.0.0".

Changes

Cohort / File(s) Summary
Version File
VERSION
Adds initial version file with content v0.0.0 (no trailing newline).
Daily Sign-In UI Text
web/src/components/settings/personal/cards/CheckinCalendar.jsx
Removed the word "随机" from two user-facing text locations (header subtitle and explanation bullet). No logic/state changes.
Invitation Reward Display
web/src/components/topup/InvitationCard.jsx
Commented out the first reward bullet in the "奖励说明" section, reducing visible bullets by one. Structure unchanged.
Locale Key Updates
web/src/i18n/locales/en.json, web/src/i18n/locales/fr.json, web/src/i18n/locales/ja.json, web/src/i18n/locales/ru.json, web/src/i18n/locales/vi.json, web/src/i18n/locales/zh.json
Renamed translation key 每日签到可获得随机额度奖励每日签到可获得额度奖励 across locales; values preserved. In zh.json also added a key and removed the old key.
Compose Service Build
docker-compose.yml
Replaced image pull for new-api with a local build context (build: .) and changed image name to new-api-local; other service settings unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • seefs001

Poem

🐰 I hopped through keys and trimmed a line,
Pulled "random" out to make the message fine.
A bullet tucked away, a version born anew,
Locale seeds swapped, and compose points too.
Tiny hops, neat trails — my patch is through.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: updating the version to v0.0.0 and refining check-in reward information across multiple languages, which aligns with the actual changeset modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

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.

Suggested change
"每日签到可获得额度奖励": "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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

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.

Suggested change
"每日签到可获得额度奖励": "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").

"每日签到": "毎日のチェックイン",
"今日已签到,累计签到": "本日チェックイン済み、累計チェックイン",
"每日签到可获得随机额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます",
"每日签到可获得额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

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.

Suggested change
"每日签到可获得额度奖励": "毎日のチェックインでランダムなクォータ報酬を獲得できます",
"每日签到可获得额度奖励": "毎日のチェックインでクォータ報酬を獲得できます",
🤖 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).

"每日签到": "Ежедневная регистрация",
"今日已签到,累计签到": "Зарегистрирован сегодня, всего регистраций",
"每日签到可获得随机额度奖励": "Ежедневная регистрация награждает случайной квотой",
"每日签到可获得额度奖励": "Ежедневная регистрация награждает случайной квотой",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

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.

Suggested change
"每日签到可获得额度奖励": "Ежедневная регистрация награждает случайной квотой",
"每日签到可获得额度奖励": "Ежедневная регистрация приносит награду в виде квоты",
🤖 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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

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.

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",
🤖 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.

@seefs001 seefs001 closed this Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants