-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port localization to stable #2962
Changes from all commits
3fe878c
5dc05ed
91c336c
0a09b6b
78e46c0
ac32aae
1a8e6a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,14 @@ try { | |
& node .\tools\buildSemanticTokenScopes.js | ||
Pop-Location | ||
|
||
# copy package.json | ||
Copy-Item -Path "$stableDirectory\package.json" -Destination "$insidersDirectory\package.json" | ||
# copy package.json from insider | ||
colombod marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Copy-Item -Path "$insidersDirectory\package.json" -Destination "$stableDirectory\package.json" | ||
|
||
$insidersPackageJsonContents = (Get-Content "$insidersDirectory\package.json" | Out-String | ConvertFrom-Json) | ||
$stablePackageJsonContents = (Get-Content "$stableDirectory\package.json" | Out-String | ConvertFrom-Json) | ||
|
||
$insidersPackageJsonContents.scripts.package += " --pre-release" | ||
$stablePackageJsonContents.scripts.package = $stablePackageJsonContents.scripts.package.Replace("--pre-release","").Trim() | ||
colombod marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
$insidersPackageJsonContents | ConvertTo-Json -depth 100 | Out-File "$insidersDirectory\package.json" | ||
$stablePackageJsonContents | ConvertTo-Json -depth 100 | Out-File "$stableDirectory\package.json" | ||
|
||
# copy grammar files | ||
Remove-Item -Path "$stableDirectory\grammars\*" | ||
|
@@ -36,6 +36,12 @@ try { | |
Remove-Item -Path "$stableDirectory\src\*" -Filter "*.ts" | ||
Copy-Item -Path "$insidersDirectory\src\*" -Destination "$stableDirectory\src\" -Filter "*.ts" | ||
|
||
# copy localization files | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quick question: So if we have this in the script, do we still need the package.nls.*.json files below? Looks like they exist here: https://github.com/dotnet/interactive/tree/main/src/polyglot-notebooks-vscode-insiders There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. package.nls.*.json should override the existing ones to keep in sync with the ones in insiders |
||
Remove-Item -Path "$stableDirectory\*" -Filter "package.nls.*" | ||
Copy-Item -Path "$insidersDirectory\*" -Destination "$stableDirectory\" -Filter "package.nls.*" | ||
Remove-Item -Path "$stableDirectory\l10n\*" -Filter "bundle.l10n.*" | ||
Copy-Item -Path "$insidersDirectory\l10n\*" -Destination "$stableDirectory\l10n\" -Filter "bundle.l10n.*" | ||
|
||
# update apis | ||
. "$PSScriptRoot\update-api.ps1" -version $version | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"VariableGridColumnActions": "Actions", | ||
"VariableGridColumnName": "Name", | ||
"VariableGridColumnValue": "Value", | ||
"VariableGridColumnType": "Type", | ||
"VariableGridColumnKernel": "Kernel", | ||
"VariableGridshareTemplate": "Share value {value-name} from {kernel-name} kernel" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"l10n": "./l10n" needs to be added to package.json like in insiders in order to recognize the strings in l10n\bungle.l10n.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @AbhitejJohn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the release branch has that change already