windows-terminal/build
Dustin L. Howett ab4b140aa4
Check the localizations into the project nightly (#16835)
Right now, the localization submission pipeline runs every night and
sends our localizable resources over to Touchdown. Later, release builds
pick up the localizations directly from Touchdown, move them into place,
and consume them.

This allowed us to avoid having localized content in the repository, but
it came with too many downsides:

- Users could not contribute additional localizations very easily
- We use the same release pipeline and Touchdown configuration for every
  branch, so strings needed to either slightly match or _entirely match_
  across an entire set of active release branches
- Building from day to day can pull in different strings, making the
  product not reproduceable
- Calling TDBuild during release builds requires network access from the
  build machine (so does restoring NuGet packages, but that's neither
  here nor there)
- Local developers and users could not test out other languages

This pull request moves all localization processing into the nightly
build phase and introduces support for checking loc in and submitting a
pull request. The pull request will not be created anew if one already
exists which has not been merged.

Anything we needed to do on release is now done overnight. This includes
moving loc files into the right places and merging the Cascadia
resources with the Context Menu resources (so that we can work around a
relatively lower amount of translations being chosen for the app versus
the context menu; see #12491 for more info.)

There are some smaller downsides to this approach and its
implementation:

- The first commit is going to be huge
- Right now, it only manages a single branch and uses a force push; if a
  PR is not reviewed timely, it will be force-pushed and you cannot see
  the day-to-day changes in the strings. Hopefully there won't be any.

I've taken great care to ensure that repeated runs of this new pipeline
will not result in unnecessary whitespace changes. This required
changing how we merge ContextMenu.resw into CascadiaPackage to always
use the .NET XmlWriter with specific flags.

NOTE that this does not allow users to _contribute_ translation fixes
for the 10 languages which we are importing. We will still need to pull
changes out of those files and submit them as bugs to the localization
team separately, and hope they come back around in another nightly
build. However, there is no reason users cannot contribute
_non-Touchdown_ languages.
2024-03-08 14:22:11 -06:00
..
Fuzz Setup OneFuzz for CI (#10431) 2022-01-21 18:24:06 +00:00
Helix Plumb test failures through to github (#15831) 2023-08-15 09:50:15 -05:00
config build: add a OneBranch Official release pipeline (#16081) 2023-10-02 14:52:54 -05:00
pgo Rewrite the entire Azure DevOps build system (#15808) 2023-08-11 14:06:30 -05:00
pipelines Check the localizations into the project nightly (#16835) 2024-03-08 14:22:11 -06:00
rules Fix the velocity script to actually support canary (#16810) 2024-03-04 14:03:27 -06:00
scripts Check the localizations into the project nightly (#16835) 2024-03-08 14:22:11 -06:00
packages.config Consolidate our MSIX distribution back down to one package (#15031) 2023-03-24 08:31:17 -05:00