Skip to content

feat(locale): add TiDB slow log i18n messages #2716#3265

Merged
BugsGuru merged 1 commit intomainfrom
sqle/feat-2716
Apr 21, 2026
Merged

feat(locale): add TiDB slow log i18n messages #2716#3265
BugsGuru merged 1 commit intomainfrom
sqle/feat-2716

Conversation

@LordofAvernus
Copy link
Copy Markdown
Collaborator

@LordofAvernus LordofAvernus commented Apr 20, 2026

User description

Summary

  • Add internationalization messages for the new TiDB slow log scan task type (ApMetaTiDBSlowLog)
  • Covers Chinese (message_zh.go, active.zh.toml) and English (active.en.toml) translations

Related: https://github.com/actiontech/sqle-ee/issues/2716


Description

  • 新增 TiDB 慢日志国际化消息

  • 支持中英文的翻译

  • 更新 i18n 消息配置文件


Diagram Walkthrough

flowchart LR
  node1["\"sqle/locale/message_zh.go\""]
  node2["\"sqle/locale/active.en.toml\""]
  node3["\"sqle/locale/active.zh.toml\""]
  node1 -- "添加 TiDB 慢日志消息" --> node2
  node1 -- "添加 TiDB 慢日志消息" --> node3
Loading

File Walkthrough

Relevant files
Enhancement
message_zh.go
更新中文国际化消息实现                                                                                           

sqle/locale/message_zh.go

  • 添加 ApMetaTiDBSlowLog 消息定义
+1/-0     
active.en.toml
更新英文国际化消息实现                                                                                           

sqle/locale/active.en.toml

  • 新增英文国际化消息 ApMetaTiDBSlowLog
+1/-0     
active.zh.toml
更新中文国际化消息翻译                                                                                           

sqle/locale/active.zh.toml

  • 新增中文国际化消息 ApMetaTiDBSlowLog
+1/-0     

Add internationalization messages for the new TiDB slow log scan task type:
- message_zh.go: ApMetaTiDBSlowLog = "TiDB慢日志"
- active.en.toml: ApMetaTiDBSlowLog = "TiDB slow log"
- active.zh.toml: ApMetaTiDBSlowLog = "TiDB慢日志"

Ref: #2716
@github-actions
Copy link
Copy Markdown

PR Reviewer Guide 🔍

🎫 Ticket compliance analysis 🔶

2716 - Partially compliant

Compliant requirements:

  • 增加 TiDB 慢日志国际化消息
  • 更新中英文翻译配置文件

Non-compliant requirements:

[]

Requires further human verification:

[]

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@BugsGuru BugsGuru merged commit 28123d5 into main Apr 21, 2026
4 checks passed
@BugsGuru BugsGuru deleted the sqle/feat-2716 branch April 21, 2026 02:14
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