mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 02:39:22 +08:00
2a7bf7fb5b
* Added localization code to pipeline and created one LocProject json for Settings * Fixed typo * Reordered nuget source * Moved nuget install to restore step * Added FZ.rc file to LocProj * Added FZ resx file and modified rc file * Fixed file names * Changed to check folder for LocProject files * Updated folder * Changed directory * Changed to src directory * Changed language set and name format, removed rc file localization * Added all projects with resx/resw files * Added newline to end of file * Removed nuget source as it is not used * Updated comments * Fixed formatting of json file * Move loc step to end
29 lines
1.0 KiB
Batchfile
29 lines
1.0 KiB
Batchfile
@echo off
|
|
rem This script will fail to run unless you have the appropriate permissions
|
|
|
|
cd /D "%~dp0"
|
|
|
|
echo Preparing localization build...
|
|
|
|
setlocal
|
|
|
|
rem In this sample, the repo root is identical to the script directory path. Adjust the value of the RepoRoot variable accordingly based on your environment.
|
|
rem Again, ensure the RepoRoot variable is set to the real repo root location, otherwise the localization toolset wouldn't work as intended.
|
|
rem Note that the resolved %~dp0 ends with \.
|
|
set RepoRoot=%~dp0..\
|
|
set OutDir=%RepoRoot%out
|
|
set NUGET_PACKAGES=%RepoRoot%packages
|
|
set LocalizationXLocPkgVer=2.0.0
|
|
|
|
echo Running localization build...
|
|
|
|
set XLocPath=%NUGET_PACKAGES%\Localization.XLoc.%LocalizationXLocPkgVer%
|
|
set LocProjectDirectory=%RepoRoot%src
|
|
|
|
rem Run the localization tool on all LocProject.json files in the src directory and it's subdirectories
|
|
dotnet "%XLocPath%\tools\netcore\Microsoft.Localization.XLoc.dll" /f "%LocProjectDirectory%"
|
|
|
|
echo Localization build finished with exit code '%errorlevel%'.
|
|
|
|
exit /b %errorlevel%
|