Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve errorListener msg #281

Merged
merged 6 commits into from
Jul 1, 2024
Merged

improve errorListener msg #281

merged 6 commits into from
Jul 1, 2024

Conversation

LuckyFBB
Copy link
Collaborator

@LuckyFBB LuckyFBB commented Mar 28, 2024

const mysql = new MySQL();
mysql.locale = "zh_CN"; // 设置语言包
mysql.validate(sql); // 输出的msg 就是 zh_CN

@LuckyFBB LuckyFBB marked this pull request as draft March 28, 2024 07:44
@LuckyFBB LuckyFBB marked this pull request as ready for review May 31, 2024 08:53
src/locale/locale.json Outdated Show resolved Hide resolved
src/parser/common/transformToI18n.ts Outdated Show resolved Hide resolved
@LuckyFBB LuckyFBB changed the base branch from main to next July 1, 2024 02:52
@HaydenOrz HaydenOrz merged commit 4b7f054 into DTStack:next Jul 1, 2024
5 checks passed
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this pull request Aug 2, 2024
* feat: add mysql errorListener and commonErrorListener

* feat: improve other sql error msg

* feat: support i18n for error msg

* feat: add all sql errorMsg unit test

* feat: update locale file and change i18n funtion name

* test: upate error unit test
HaydenOrz pushed a commit that referenced this pull request Aug 2, 2024
* feat: add mysql errorListener and commonErrorListener

* feat: improve other sql error msg

* feat: support i18n for error msg

* feat: add all sql errorMsg unit test

* feat: update locale file and change i18n funtion name

* test: upate error unit test
HaydenOrz pushed a commit to HaydenOrz/dt-sql-parser that referenced this pull request Aug 27, 2024
* feat: add mysql errorListener and commonErrorListener

* feat: improve other sql error msg

* feat: support i18n for error msg

* feat: add all sql errorMsg unit test

* feat: update locale file and change i18n funtion name

* test: upate error unit test
HaydenOrz pushed a commit that referenced this pull request Oct 17, 2024
* feat: add mysql errorListener and commonErrorListener

* feat: improve other sql error msg

* feat: support i18n for error msg

* feat: add all sql errorMsg unit test

* feat: update locale file and change i18n funtion name

* test: upate error unit test
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