Skip to content

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

Merged
merged 2 commits into from
Oct 26, 2015
Merged

Shorten loc messages #5273

merged 2 commits into from
Oct 26, 2015

Conversation

paulvanbrenk
Copy link
Contributor

No description provided.

? localizedDiagnosticMessages[message]
: message;
export function getLocaleSpecificMessage(message: DiagnosticMessage) {
return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key]
Copy link
Member

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.

@DanielRosenwasser
Copy link
Member

👍

@@ -18,6 +18,13 @@ function main(): void {
return;
}

function writeFile(fileName: string, contents: string) {
// TODO: Fix path joining
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

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

@mhegazy
Copy link
Contributor

mhegazy commented Oct 26, 2015

@paulvanbrenk and @DanielRosenwasser is this ready?

@paulvanbrenk
Copy link
Contributor Author

@mhegazy testing and I needed to finish setting up loc support before I could actually check this in. EOD tomorrow.

paulvanbrenk added a commit that referenced this pull request Oct 26, 2015
@paulvanbrenk paulvanbrenk merged commit dababb1 into master Oct 26, 2015
@paulvanbrenk paulvanbrenk deleted the shortenLocMessages branch October 26, 2015 21:35
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants