Skip to content

Conversation

@wenzhixin
Copy link
Owner

🤔Type of Request

  • Bug fix
  • New feature
  • Improvement
  • Documentation
  • Other

📝Changelog

  • Core
  • Extensions

Updated locales and check-locale tool.

☑️Self Check before Merge

⚠️ Please check all items below before reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

@wenzhixin wenzhixin changed the title Updated locales and check-locale tool Draft: Updated locales and check-locale tool Sep 8, 2024
@wenzhixin wenzhixin force-pushed the hotfix/update-locales branch from 7ea9a7c to c7b95b3 Compare July 13, 2025 01:31
@wenzhixin wenzhixin force-pushed the hotfix/update-locales branch from c7b95b3 to b4ee8aa Compare July 13, 2025 01:38
@wenzhixin wenzhixin requested a review from Copilot July 13, 2025 01:41
@wenzhixin wenzhixin changed the title Draft: Updated locales and check-locale tool Updated locales and check-locale tool Jul 13, 2025
@wenzhixin wenzhixin merged commit 16ea6a7 into develop Jul 13, 2025
1 check passed
@wenzhixin wenzhixin deleted the hotfix/update-locales branch July 13, 2025 01:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the locale validation tool with auto‐fix and unused‐key checks, and updates all locale files to include new translation keys and reorder entries consistently.

  • Added auto‐fix support, key sorting, and unused‐key detection to tools/check-locale.js
  • Introduced new locale methods (e.g., formatAddLevel, formatDeleteLevel, advanced search/close) across all locale files
  • Reorganized and alphabetized translation entries in each locale file

Reviewed Changes

Copilot reviewed 60 out of 61 changed files in this pull request and generated 3 comments.

File Description
tools/check-locale.js Enhanced readKeys logic, added autoUpdate, sorted keys, and unused-key grep check
src/locale/bootstrap-table-*.js Added new translation methods and reordered entries in each locale
Comments suppressed due to low confidence (1)

tools/check-locale.js:3

  • Ensure that 'shelljs' is declared as a dependency in package.json (or devDependencies) so the import doesn’t break in CI or local environments.
import shell from 'shelljs'

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