Skip to content

feat: add Tagalog (tl_PH) locale for picker#969

Merged
afc163 merged 5 commits into
react-component:masterfrom
jinrong-ncu:master
May 14, 2026
Merged

feat: add Tagalog (tl_PH) locale for picker#969
afc163 merged 5 commits into
react-component:masterfrom
jinrong-ncu:master

Conversation

@jinrong-ncu
Copy link
Copy Markdown
Contributor

@jinrong-ncu jinrong-ncu commented May 14, 2026

Summary by CodeRabbit

发布说明

新功能

  • 新增菲律宾塔加洛语本地化支持,包含用户界面字符串翻译、日期时间选择器标签、日期导航文本以及日历显示所需的周日期和月份名称缩写。

Review Change Stack

Ronin and others added 3 commits May 14, 2026 14:08
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Add Filipino (Tagalog) translation for picker components. Use tl_PH instead of fil_PH to align with the ecosystem standards, ensuring compatibility with dayjs (tl-ph) and antd integration.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

Someone is attempting to deploy a commit to the React Component Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 14, 2026

Warning

Rate limit exceeded

@jinrong-ncu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 54 minutes and 16 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 01636df2-7a5c-4c3e-bdda-d2bd5a6e6a4e

📥 Commits

Reviewing files that changed from the base of the PR and between 02de687 and a72abe9.

📒 Files selected for processing (1)
  • src/locale/tl_PH.ts

概览

新增 src/locale/tl_PH.ts 文件,为日期/时间选择器组件提供塔加禄语本地化支持,包括 UI 操作、导航标签和日历显示名称的翻译。

变更

塔加禄语本地化文件

层 / 文件(s) 说明
塔加禄语本地化实现
src/locale/tl_PH.ts
新增 tl_PH 本地化常量,扩展 commonLocale,提供塔加禄语翻译的确定/清除操作、今天/返回今天、日期/时间选择提示、周/月/年/十年导航和选择文本,以及日历显示用的简短周日名和月份名。

相关的 PR

  • react-component/picker#967: 两个 PR 都添加了菲律宾语系的新本地化文件(tl_PH vs fil_PH),包含重叠的日期/时间选择器 UI 翻译键,涵盖导航/选择标签(周/月/年/十年/世纪)。

代码审查工作量

🎯 1 (平凡) | ⏱️ ~3 分钟

诗文

🐰 小兔献上新诗章,
塔加禄语添风光,
日期时间齐翻译,
日历周月笑声扬,
亚洲语言汇成长!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了主要变更:添加Tagalog (tl_PH)语言环境支持,与代码变更一致,简洁清晰。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new Tagalog (Philippines) locale file (tl_PH.ts) for the date picker components. Feedback was provided to include shortWeekDays and shortMonths in the locale definition to ensure full localization and prevent a mix of English and Tagalog in the user interface.

Comment thread src/locale/tl_PH.ts
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.81%. Comparing base (30c896c) to head (a72abe9).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #969   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files          65       65           
  Lines        2695     2695           
  Branches      744      724   -20     
=======================================
  Hits         2663     2663           
  Misses         29       29           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/locale/tl_PH.ts`:
- Around line 1-43: The file is missing imports for the Locale type and
commonLocale and does not export the locale constant; add an import for Locale
and commonLocale (matching how other locale files import them) at the top of the
file and add an export for the locale constant at the bottom so that the Locale
type, commonLocale, and the locale object are properly referenced and exported
(ensure you reference the existing symbols Locale, commonLocale, and locale).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c0b221c6-34b3-4e2d-b20f-3c96433a50a6

📥 Commits

Reviewing files that changed from the base of the PR and between 843422d and 02de687.

📒 Files selected for processing (1)
  • src/locale/tl_PH.ts

Comment thread src/locale/tl_PH.ts Outdated
@afc163 afc163 merged commit 0087213 into react-component:master May 14, 2026
5 of 6 checks passed
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