Skip to content

feat: add tg_TJ locale - #731

Merged
yoyo837 merged 1 commit into
react-component:masterfrom
ismoil77:feat/locale-tajik
Nov 25, 2026
Merged

yoyo837 merged 1 commit into
react-component:masterfrom
ismoil77:feat/locale-tajik

Conversation

@ismoil77

@ismoil77 ismoil77 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds a Tajik locale, tg_TJ (Cyrillic, as used in Tajikistan).

close #593

  • New file: src/locale/tg_TJ.ts, same keys as en_US / ru_RU.
  • I am a native Tajik speaker. Terminology follows existing Tajik UI translations (Firefox, Nuxt UI, Laravel-Lang, CLDR) and the Vuetify Tajik locale, so the wording is consistent across libraries.

Same shape as #730.

Summary by CodeRabbit

  • 新功能
    • 新增塔吉克语(塔吉克斯坦)分页文本,支持每页条目数、页码、跳转、确认及前后翻页等界面内容。

@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

@ismoil77 is attempting to deploy a commit to the afc163's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

新增 src/locale/tg_TJ.ts,定义并默认导出塔吉克语分页 locale。配置包含每页条目数、跳转、确认、页码、前后翻页及页面尺寸等文本。

Changes

塔吉克语分页本地化

层 / 文件 摘要
新增分页 locale
src/locale/tg_TJ.ts
新增 PaginationLocale 配置,并默认导出塔吉克语分页文本。

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

Change: Feature

Merge Risk: Minimal · up to e90eb

This change adds Tajik pagination text as a new locale file and does not alter existing behavior. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed PR 标题 "feat: add tg_TJ locale" 准确描述了主要变更。变更新增 src/locale/tg_TJ.ts,导出塔吉克语(塔吉克斯坦)分页 locale,与 PR 目标(新增 Tajik tg_TJ 西里尔字母 locale,关联 issue #593)一致。标题简短、具体,并使用 conventional commit 前缀。
Linked Issues check Passed 关联议题 #593 要求添加塔吉克语支持。该 PR 新增 src/locale/tg_TJ.ts,导出类型为 PaginationLocale 的默认 locale 对象。文件包含的键与 src/locale/en_US.ts 完全一致:items_per_page、jump_to、jump_to_confirm、page、prev_page、next_page、prev_5、next…
Out of Scope Changes check Passed 从 merge base 到 head 的整体 PR 仅新增 src/locale/tg_TJ.ts,变更为 +20/-0。该文件直接实现 #593 的 Tajik locale 需求,没有无关改动。PR 描述中提到的 #730 仅作为参考,不影响本次范围判断。
Full details: Linked Issues check

Explanation

关联议题 #593 要求添加塔吉克语支持。该 PR 新增 src/locale/tg_TJ.ts,导出类型为 PaginationLocale 的默认 locale 对象。文件包含的键与 src/locale/en_US.ts 完全一致:items_per_page、jump_to、jump_to_confirm、page、prev_page、next_page、prev_5、next_5、prev_3、next_3、page_size。这满足该议题的编码要求。议题链接的外部提交内容未在仓库中核对,因此译文的具体措辞未独立验证。议题未提出自动化测试要求。

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • 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

我是兔子,跳过分页栏,
塔吉克语词句排成行。
上一页,下一页,轻轻点,
每页条数清晰又明亮。
新 locale 入列,我竖耳欢唱!

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d517357c-aa3e-40d8-8c84-1741a3c061d2
Commits

Reviewing files that changed from the base of the PR and between 2728b33 and e90eb74.

Files selected for processing: 1

  • src/locale/tg_TJ.ts

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

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.74%. Comparing base (2728b33) to head (e90eb74).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #731   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files           5        5           
  Lines         395      395           
  Branches      185      185           
=======================================
  Hits          394      394           
  Misses          1        1           

☔ View full report in Codecov by Harness.
📢 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.

@yoyo837
yoyo837 merged commit a428d41 into react-component:master Nov 25, 2026
11 of 12 checks passed
yanyubot added a commit to antdv-next/vue-components that referenced this pull request Nov 26, 2026
…rom rc-component (#140)

* fix(select): default search input autocomplete to off (react-component/select#1264)

* fix(steps): leave Enter/Space untouched for nested focusable content (react-component/steps#402)

* feat(pagination): add tg_TJ locale (react-component/pagination#731)

* chore(sync): advance cascader, pagination, select, steps, tree-select cursor to upstream HEAD

---------

Co-authored-by: yanyubot <356405855+yanyubot@users.noreply.github.com>
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.

Tajik languange

2 participants