-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added localization for debug level selector #12033
Added localization for debug level selector #12033
Conversation
packages/core/src/common/severity.ts
Outdated
const error = nls.localize('theia/core/severity/errors', 'Errors'); | ||
const warning = nls.localize('theia/core/severity/warnings', 'Warnings'); | ||
const info = nls.localize('theia/core/severity/info', 'Info'); | ||
const log = nls.localize('theia/core/severity/log', 'Log'); | ||
const ignore = nls.localize('theia/core/severity/all', 'All'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: I'm not too sure whether we should localize these values directly. I would rather have a Severity.toLocaleString()
function that accepts a string | Severity
and returns a localized version of the string. Use the result at the caller site of debug-console-contribution.tsx
.
@xcariba Are you still interested in contributing this change? |
Signed-off-by: Alexander Kozinko <xcariba@gmail.com>
503dd14
to
05ce583
Compare
@msujew Yes, I just don't have enough time =( I agree with your suggestion, fixed PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks 👍
What it does
Fixes #11973.
Adds localization support for debug console severity.
How to test
console.error('My Error'); console.info('My Info');
debugger;
call or set breakpointReview checklist
Reminder for reviewers