This repository was archived by the owner on Apr 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 465
port localization to stable #2962
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3fe878c
add localization files
colombod 5dc05ed
make stable use localization
colombod 91c336c
fix package version
colombod 0a09b6b
automate copying localization files
colombod 78e46c0
automate localization file copy
colombod ac32aae
using insiders package.json as source
colombod 1a8e6a5
update to main
colombod File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
|
||
| 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.
|
||
|
|
||
| $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 | ||
|
Contributor
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
Contributor
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 | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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