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

Add the localize function for the type UI. #27

Merged
merged 4 commits into from
Jan 14, 2024

Conversation

jihuayu
Copy link
Contributor

@jihuayu jihuayu commented Dec 20, 2023

I am implementing l10n support in vscode-clangd. However, I discovered that we are unable to localize the messages sent by node-clang. Thanks to @HighCommander4 suggestion, I have now add the "localize" function for the type UI. This function allows us to localize the messages sent by node-clang.

I will add the localize impl for coc-clangd, after the npm package is published,

Refer: clangd/vscode-clangd#560 (comment)

Copy link
Contributor

@HighCommander4 HighCommander4 left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

It looks good, my comments are just some minor nits. Also, please clang-format the patch so it passes CI, and then it should be good to merge.

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
@jihuayu
Copy link
Contributor Author

jihuayu commented Jan 14, 2024

Finish. Thanks for your careful review.

Copy link
Contributor

@HighCommander4 HighCommander4 left a comment

Choose a reason for hiding this comment

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

Thanks!

@HighCommander4 HighCommander4 merged commit c7ed252 into clangd:master Jan 14, 2024
1 check passed
@jihuayu
Copy link
Contributor Author

jihuayu commented Jan 16, 2024

Maybe we need to release a new version so that we can install it for vscode-clangd and coc-clangd?

@HighCommander4
Copy link
Contributor

Maybe we need to release a new version so that we can install it for vscode-clangd and coc-clangd?

Yes, makes sense. Please feel free to create a PR which bumps the version in package.json.

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