-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Update template spelling and wording #46886
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
Conversation
dougbu
commented
Feb 25, 2023
- follow up to Add 'dotnet new' web item templates (razor view, api controller, mvc controller) #46714
- align template.json and templatestrings.en.json files
- correct 'ReadWrite' and 'Am'
- build to create localized template files
- good to do this whenever we create new templates
Noticed a few issues when glancing at #46882. The changes contain a few comments for reviewers. Though I used loc comment syntax (start w/ an underscore and end w/ ".comment"), the comments are not intended to be merged. |
It would be great to have @phenning to review the template related updates 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.
From a Visual Studio perspective, LGTM. Note that we don't surface any of the item template metadata directly in VIsual Studio as of now anyway, as we still use the vstemplate -> template engine pattern rather than exposing the sdk template directly in the new item dialog.
src/ProjectTemplates/Web.ItemTemplates/content/ApiController/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/ProjectTemplates/Web.ItemTemplates/content/MvcController/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/ProjectTemplates/Web.ItemTemplates/content/RazorView/.template.config/template.json
Outdated
Show resolved
Hide resolved
c853fc3
to
6532994
Compare
/fyi The Arcade SDK adds a Microsoft.TemplateEngine.Authoring.Tasks package reference in all projects. That detects template.json files and propagate the strings into localize/templatestrings.*.json files. |
...es/Web.ItemTemplates/content/ApiController/.template.config/localize/templatestrings.en.json
Outdated
Show resolved
Hide resolved
...es/Web.ItemTemplates/content/ApiController/.template.config/localize/templatestrings.en.json
Show resolved
Hide resolved
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.
Thanks @dougbu !
What are your thoughts on the questions I placed in the templatestrings.en.json files @mkArtakMSFT❔ (Not merging this w/o at least removing those comments.) |
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.
Answered your questions
...plates/Web.ItemTemplates/content/RazorView/.template.config/localize/templatestrings.en.json
Show resolved
Hide resolved
...es/Web.ItemTemplates/content/MvcController/.template.config/localize/templatestrings.en.json
Outdated
Show resolved
Hide resolved
- follow up to #46714 - align template.json and templatestrings.en.json files - correct 'ReadWrite' and 'Am' - ask a few questions of reviewers
- no need to change post-action `description`s
- remove comment nodes from templatestrings.en.json files - also, update English resources to match template.json content
- fill in missed files in localize/ folder
6532994
to
f082d7d
Compare