Skip to content

fix(i18n): add translation keys for first day of the week preference - #9985

Open
Indira-kumar wants to merge 1 commit into
makeplane:previewfrom
Indira-kumar:fix/i18n-for-first-day-of-the-week
Open

Indira-kumar wants to merge 1 commit into
makeplane:previewfrom
Indira-kumar:fix/i18n-for-first-day-of-the-week

Conversation

@Indira-kumar

@Indira-kumar Indira-kumar commented Oct 11, 2026 •

Copy link
Copy Markdown

Description

Localize the “First day of the week” preference title, description, and weekday options across supported languages. Use the existing translation-key pattern in both Preferences and the command menu.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots and Media

image

Test Scenarios

  • Weekday option and Spanish translation tests pass
  • Locale sync, formatting, lint, builds, and type checks pass
  • In Español, verify the title, description, and all seven dropdown options; change the day and reload

References

Closes #9966
Closes #9967 (realized later there is a duplicate issue for #9966)

Note: OxLint, all six changed TypeScript files pass with zero warnings and zero errors

Summary by CodeRabbit

  • Improvements
    • The first-day-of-week preference now displays translated titles, descriptions, and weekday options across supported languages.
    • The selected weekday is shown consistently in the preference controls.

@CLAassistant

CLAassistant commented Oct 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b2f46e76-e746-42c4-a040-4ce6e7bab2c7

📥 Commits

Reviewing files that changed from the base of the PR and between bab49bb and 26a5db4.


📒 Files selected for processing (27)
  • apps/web/components/power-k/ui/pages/preferences/start-of-week-menu.tsx
  • apps/web/components/profile/start-of-week-preference.tsx
  • apps/web/components/settings/profile/content/pages/preferences/language-and-timezone-list.tsx
  • packages/constants/src/profile.test.ts
  • packages/constants/src/profile.ts
  • packages/i18n/src/locales/cs/settings.json
  • packages/i18n/src/locales/de/settings.json
  • packages/i18n/src/locales/en/settings.json
  • packages/i18n/src/locales/es/settings.json
  • packages/i18n/src/locales/first-day-of-week.test.ts
  • packages/i18n/src/locales/fr/settings.json
  • packages/i18n/src/locales/id/settings.json
  • packages/i18n/src/locales/it/settings.json
  • packages/i18n/src/locales/ja/settings.json
  • packages/i18n/src/locales/ka-ge/settings.json
  • packages/i18n/src/locales/ko/settings.json
  • packages/i18n/src/locales/nl/settings.json
  • packages/i18n/src/locales/pl/settings.json
  • packages/i18n/src/locales/pt-BR/settings.json
  • packages/i18n/src/locales/ro/settings.json
  • packages/i18n/src/locales/ru/settings.json
  • packages/i18n/src/locales/sk/settings.json
  • packages/i18n/src/locales/tr-TR/settings.json
  • packages/i18n/src/locales/ua/settings.json
  • packages/i18n/src/locales/vi-VN/settings.json
  • packages/i18n/src/locales/zh-CN/settings.json
  • packages/i18n/src/locales/zh-TW/settings.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.



📝 Walkthrough

Walkthrough

The first-day-of-week preference now uses translation keys for its title, description, and weekday options. Translations are added for 22 locales. The preference dropdown and PowerK menu render the translated option labels.

Changes

First-day-of-week localization

Layer / File(s) Summary
Option keys and locale strings
packages/constants/src/profile.ts, packages/constants/src/profile.test.ts, packages/i18n/src/locales/*/settings.json, packages/i18n/src/locales/first-day-of-week.test.ts
Weekday options now reference translation keys. Locale files add the preference title, description, and seven weekday labels. Tests check the option keys and Spanish translations.
Translated preference interfaces
apps/web/components/settings/profile/content/pages/preferences/language-and-timezone-list.tsx, apps/web/components/profile/start-of-week-preference.tsx, apps/web/components/power-k/ui/pages/preferences/start-of-week-menu.tsx
The preferences section and its selectors now render translated titles, descriptions, and weekday labels.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium


Merge Risk: ⚪ Minimal · up to 26a5d

The localization changes have no identified merge-blocking issue. The Italian wording concern predates this change; the updated weekday selectors use the translated labels.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 6 files. (21 skipped: 2… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the main change: adding translation keys for the first-day-of-week preference.
Description check Passed The description covers the change, change type, screenshot, test scenarios, and references. It is sufficiently complete and matches the pull request objectives.
Linked Issues check Passed Issues #9966 and #9967 require Spanish translations for the first-day-of-week title, description, and seven weekday options. The preferences page now uses `account_settings.preferences.first_day_of_we…
Out of Scope Changes check Passed The changes stay within the localization scope of issues #9966 and #9967. Component changes consume translation keys, constants identify translated weekday labels, locale files provide the copy, and t…

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 6 files. (21 skipped: 21 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants