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

Enable loading translated strings from razor TS code #5962

Merged
merged 4 commits into from
Aug 2, 2023

Conversation

phil-allen-msft
Copy link
Contributor

Enable loading translated strings from razor TS code

This change wraps the many user displayed strings in the razor portion of the project wth l10n.t(''), using the format specifier {0} style where necessary. reportIssueCreator.ts is probably the single most interesting file.
Conversion from ${abc} to {0} syntax is the most likely area for issues.

src/razor/src/codeLens/razorCodeLensProvider.ts Outdated Show resolved Hide resolved
src/razor/src/diagnostics/reportIssueCreator.ts Outdated Show resolved Hide resolved
src/razor/src/razorLanguageServerTraceResolver.ts Outdated Show resolved Hide resolved
@Cosifne
Copy link
Member

Cosifne commented Jul 27, 2023

I guess we might want to merge this after next Monday after the release?

Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

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

👍

src/razor/src/html/htmlPreviewPanel.ts Outdated Show resolved Hide resolved
@phil-allen-msft
Copy link
Contributor Author

I guess we might want to merge this after next Monday after the release?

That makes sense to me.

@phil-allen-msft phil-allen-msft merged commit 0024cd3 into main Aug 2, 2023
4 checks passed
@JoeRobich JoeRobich deleted the dev/phil-allen-msft/l10nRazor branch October 8, 2024 20:49
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.

6 participants