mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Enable localization on all folders under PowerToys root (#6692)
* Changed to repo root * Removed backslash * Revert testing change * Add comment
This commit is contained in:
@@ -10,7 +10,8 @@ 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 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 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 \.
|
rem Note that the resolved %~dp0 ends with \.
|
||||||
set RepoRoot=%~dp0..\
|
set RepoRootWithoutBackslash=%~dp0..
|
||||||
|
set RepoRoot=%RepoRootWithoutBackslash%\
|
||||||
set OutDir=%RepoRoot%out
|
set OutDir=%RepoRoot%out
|
||||||
set NUGET_PACKAGES=%RepoRoot%packages
|
set NUGET_PACKAGES=%RepoRoot%packages
|
||||||
set LocalizationXLocPkgVer=2.0.0
|
set LocalizationXLocPkgVer=2.0.0
|
||||||
@@ -18,9 +19,9 @@ set LocalizationXLocPkgVer=2.0.0
|
|||||||
echo Running localization build...
|
echo Running localization build...
|
||||||
|
|
||||||
set XLocPath=%NUGET_PACKAGES%\Localization.XLoc.%LocalizationXLocPkgVer%
|
set XLocPath=%NUGET_PACKAGES%\Localization.XLoc.%LocalizationXLocPkgVer%
|
||||||
set LocProjectDirectory=%RepoRoot%src
|
set LocProjectDirectory=%RepoRootWithoutBackslash%
|
||||||
|
|
||||||
rem Run the localization tool on all LocProject.json files in the src directory and it's subdirectories
|
rem Run the localization tool on all LocProject.json files in the src directory and it's subdirectories (directory format must not end with \)
|
||||||
dotnet "%XLocPath%\tools\netcore\Microsoft.Localization.XLoc.dll" /f "%LocProjectDirectory%"
|
dotnet "%XLocPath%\tools\netcore\Microsoft.Localization.XLoc.dll" /f "%LocProjectDirectory%"
|
||||||
|
|
||||||
echo Localization build finished with exit code '%errorlevel%'.
|
echo Localization build finished with exit code '%errorlevel%'.
|
||||||
|
|||||||
Reference in New Issue
Block a user