Skip to content

Conversation

@grendello
Copy link
Contributor

@grendello grendello commented Jan 9, 2026

Local builds would generate hundreds (nearly 700) of messages similar to these:

Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //identity
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //name
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //description

Disable the localizer for local builds by default.

In order to rebuild them it is necessary to build the templates project in
one of the following ways:

  • On Unix systems run make LOCALIZE_TEMPLATES=true prepare all (the prepare parameter
    can be omitted if it was ran previously)
  • On all systems run dotnet-local.sh -p:LocalizeTemplates=true -t:ConfigureLocalWorkload build-tools/create-packs/Microsoft.Android.Sdk.proj

Local builds would generate hundreds (nearly 700) of messages
similar to these:

    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //$schema
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //identity
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //author
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //name
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: The following element in the template.json will not be included in the localizations because it does not match any of the rules for localizable elements: //classifications
    Microsoft.TemplateEngine.TemplateLocalizer.Core.TemplateStringExtractor: Adding into localizable strings: //description

Disable the localizer for local builds, run it only on CI.
@grendello grendello force-pushed the dev/grendel/disable-localizer-debug branch from 498a64d to c7cbf95 Compare January 12, 2026 09:13
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.

3 participants