Skip to content

Support localizable fields alterations for different hosts in template.json  #3340

@vlada-shubina

Description

@vlada-shubina

We should be able to alter defined template properties depending on the host.
For example, use case may be that we want the template to have different name or description depending on the host running it, different parameter names. etc.

Consider adding support for the following notations: <host ID><delimiter><property name>
Example:

  • name: "My Template Name"
  • vs_name: "My Template Name in VS"
  • dotnetcli_name: "My Template Name in CLI"

The following properties should be supported (not limited to):

  • all localizable properties: name, description, parameters display names. descriptions, choices etc.

This will also allow to localize properties for different hosts differently.
The logic, including fallback should be evaluated in Edge:

  • if host specific value is not available - use default value (without the prefix), otherwise host specific value
  • the host itself should not care about this, API should already return correct value considering the host running it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:3Work that is nice to havearea: authoringEnhancements to the process of authoring, maintaining, and testing templatesfeatureThe issue defines new feature.triagedThe issue was evaluated by the triage team, placed on correct area, next action defined.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions