-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Shorten loc messages #5273
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
Shorten loc messages #5273
Conversation
? localizedDiagnosticMessages[message] | ||
: message; | ||
export function getLocaleSpecificMessage(message: DiagnosticMessage) { | ||
return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key] |
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.
For an empty string key, you'll always use the non-localized message unless you use message.key in localizedDiagnosticMessages
. Though, that would be the most ridiculous edge case I may have ever brought up.
👍 |
@@ -18,6 +18,13 @@ function main(): void { | |||
return; | |||
} | |||
|
|||
function writeFile(fileName: string, contents: string) { | |||
// TODO: Fix path joining |
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.
why this is a TODO instead of fixing it in the 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.
because it works ... not sure what @DanielRosenwasser Daniel meant here
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.
@paulvanbrenk and @DanielRosenwasser is this ready? |
@mhegazy testing and I needed to finish setting up loc support before I could actually check this in. EOD tomorrow. |
No description provided.