-
Notifications
You must be signed in to change notification settings - Fork 687
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
Onboard Localization pipeline #5990
Changes from 101 commits
2b232a8
b49ec5e
3df5a53
50278d2
4348c51
569c788
88073a4
2e946b9
c64fe45
8c0f234
78825e0
9323f1f
973f0d4
1ec8dea
6ef36d7
b6f77b6
55a3fc1
bae68f9
594c11a
f4d16fd
c1e22b8
09cb9b3
2ade1ea
8e596e2
23b49bb
b02e09e
d118668
8ab3c3f
534073b
945da9a
6dadaa5
78b36a0
81c021f
9bc629a
7c8e1d2
5881af6
0e71d9e
b5022d7
e4c8e86
fa58993
5136b80
5dce89c
b03b9e5
0aecf57
9a2a048
e8ef141
4906917
760d1ce
38f15c2
43f662a
72db8ec
3ba4307
23b4c04
7dd6185
d088094
480c2ef
ec92c6e
e83836d
5a0274c
102922f
7d17454
0d9a2d6
5e23b8c
0bdeb67
7110559
7a115f9
9f18563
6ef40c6
866df37
16a0992
ad27647
eaa89f4
df1caad
d214834
e6d6d5c
ee26da7
190aada
abee860
7383d10
0afded5
818d7fa
4812095
815851c
ca88888
153b4bc
1d512b5
4f49bfa
ec4aa8d
ce55dae
7ccb3ca
353c921
e644a14
62833f1
a42a6d6
c7aae3d
e6d6a3c
388d183
1f825a4
1594ec8
e7f63ef
5f73e7e
063174d
265913d
11a6c97
20ae700
c0a5c6a
5c9c95e
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
trigger: none | ||
pr: none | ||
|
||
parameters: | ||
- name: publishLocalizationFile | ||
type: boolean | ||
default: true | ||
|
||
variables: | ||
# Variable group contains the PAT to LOC | ||
- group: OneLocBuildVariables | ||
|
||
stages: | ||
- stage: LocalizationStage | ||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main') | ||
jobs: | ||
- job: Localization | ||
pool: | ||
name: NetCore1ESPool-Internal | ||
demands: ImageOverride -equals windows.vs2022preview.amd64 | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node.js 18.x' | ||
inputs: | ||
# Octokit client needs 18.x to have 'fetch' function. | ||
versionSpec: '18.x' | ||
- checkout: self | ||
clean: true | ||
submodules: true | ||
fetchTags: false | ||
fetchDepth: 0 | ||
- pwsh: | | ||
npm install | ||
npm install -g @vscode/l10n-dev | ||
npm install -g gulp | ||
displayName: 'Install tools' | ||
- pwsh: npm run compile | ||
displayName: 'Compile' | ||
- pwsh: npm run l10nDevGenerateLocalizationBundle | ||
displayName: 'Generate bundle.l10.json' | ||
- pwsh: npm run l10nDevGenerateXlf | ||
displayName: 'Generate xlf files from bundle.10n.json' | ||
- task: OneLocBuild@2 | ||
env: | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
inputs: | ||
locProj: loc/LocProject.json | ||
outDir: '$(Build.SourcesDirectory)/loc' | ||
isCreatePrSelected: false | ||
patVariable: $(dn-bot-ceapex-package-r) | ||
packageSourceAuth: patAuth | ||
lclSource: lclFilesfromPackage | ||
LclPackageId: 'LCL-JUNO-PROD-VSCODECS' | ||
- pwsh: npm run l10nDevImportXlf | ||
displayName: 'Import xlf to json.' | ||
- pwsh: gulp 'publish localization content' --userName dotnet-bot --email [email protected] --commitSha $(Build.SourceVersion) --targetRemoteRepo vscode-csharp --baseBranch 'main' | ||
displayName: 'Create PR in GitHub.' | ||
env: | ||
GitHubPAT: $(BotAccount-dotnet-bot-repo-PAT) | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Localization Files' | ||
inputs: | ||
PathtoPublish: '$(Build.SourcesDirectory)/loc' | ||
PublishLocation: Container | ||
ArtifactName: Loc | ||
condition: ${{ parameters.publishLocalizationFile }} | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish l10n file' | ||
inputs: | ||
PathtoPublish: '$(Build.SourcesDirectory)/l10n' | ||
PublishLocation: Container | ||
ArtifactName: l10n | ||
condition: ${{ parameters.publishLocalizationFile }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"Cannot load Razor language server because the directory was not found: '{0}'": "Cannot load Razor language server because the directory was not found: '{0}'", | ||
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. @Cosifne The 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. This key is auto-generated by the l10n tool, let me see if this can be optimized or not 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. @Cosifne Sorry I'm incorrect here. I think this is correct for the |
||
"Could not find '{0}' in or above '{1}'.": "Could not find '{0}' in or above '{1}'.", | ||
"Invalid trace setting for Razor language server. Defaulting to '{0}'": "Invalid trace setting for Razor language server. Defaulting to '{0}'", | ||
"Could not find Razor Language Server executable within directory '{0}'": "Could not find Razor Language Server executable within directory '{0}'", | ||
"Server failed to start after retrying 5 times.": "Server failed to start after retrying 5 times.", | ||
"Razor Language Server failed to start unexpectedly, please check the 'Razor Log' and report an issue.": "Razor Language Server failed to start unexpectedly, please check the 'Razor Log' and report an issue.", | ||
"Tried to send requests while server is not started.": "Tried to send requests while server is not started.", | ||
"Tried to bind on request logic while server is not started.": "Tried to bind on request logic while server is not started.", | ||
"Tried to bind on notification logic while server is not started.": "Tried to bind on notification logic while server is not started.", | ||
"Cannot stop Razor Language Server as it is already stopped.": "Cannot stop Razor Language Server as it is already stopped.", | ||
"Razor Language Server failed to stop correctly, please check the 'Razor Log' and report an issue.": "Razor Language Server failed to stop correctly, please check the 'Razor Log' and report an issue.", | ||
"Would you like to restart the Razor Language Server to enable the Razor trace configuration change?": "Would you like to restart the Razor Language Server to enable the Razor trace configuration change?", | ||
"Restart": "Restart", | ||
"Razor HTML Preview": "Razor HTML Preview", | ||
"Unexpected error when attaching to HTML preview window.": "Unexpected error when attaching to HTML preview window.", | ||
"Razor HTML copied to clipboard": "Razor HTML copied to clipboard", | ||
"Report a Razor issue": "Report a Razor issue", | ||
"Host document file path": "Host document file path", | ||
"Virtual document file path": "Virtual document file path", | ||
"Copy Html": "Copy Html", | ||
"Token cancellation requested: {0}": "Token cancellation requested: {0}", | ||
"Synchronization timed out": "Synchronization timed out", | ||
"Report Razor Issue": "Report Razor Issue", | ||
"Unexpected error when attaching to report Razor issue window.": "Unexpected error when attaching to report Razor issue window.", | ||
"You must first start the data collection before copying.": "You must first start the data collection before copying.", | ||
"Razor issue copied to clipboard": "Razor issue copied to clipboard", | ||
"Razor issue data collection started. Reproduce the issue then press \"Stop\"": "Razor issue data collection started. Reproduce the issue then press \"Stop\"", | ||
"You must first start the data collection before stopping.": "You must first start the data collection before stopping.", | ||
"Razor issue data collection stopped. Copying issue content...": "Razor issue data collection stopped. Copying issue content...", | ||
"Start": "Start", | ||
"Press {0}": "Press {0}", | ||
"Perform the actions (or no action) that resulted in your Razor issue": "Perform the actions (or no action) that resulted in your Razor issue", | ||
"Stop": "Stop", | ||
"Click {0}. This will copy all relevant issue information.": "Click {0}. This will copy all relevant issue information.", | ||
"Go to GitHub": "Go to GitHub", | ||
"{0}, paste your issue contents as the body of the issue. Don't forget to fill out any details left unfilled.": "{0}, paste your issue contents as the body of the issue. Don't forget to fill out any details left unfilled.", | ||
"Privacy Alert! The contents copied to your clipboard may contain personal data. Prior to posting to GitHub, please remove any personal data which should not be publicly viewable.": "Privacy Alert! The contents copied to your clipboard may contain personal data. Prior to posting to GitHub, please remove any personal data which should not be publicly viewable.", | ||
"Copy issue content again": "Copy issue content again", | ||
"Cannot start collecting Razor logs when {0} is set to {1}. Please set {0} to {2} and then reload your VSCode environment and re-run the report Razor issue command.": "Cannot start collecting Razor logs when {0} is set to {1}. Please set {0} to {2} and then reload your VSCode environment and re-run the report Razor issue command.", | ||
"Non Razor file as active document": "Non Razor file as active document", | ||
"Could not determine CSharp content": "Could not determine CSharp content", | ||
"Could not determine Html content": "Could not determine Html content", | ||
"A valid dotnet installation could not be found: {0}": "A valid dotnet installation could not be found: {0}", | ||
"Is this a Bug or Feature request?": "Is this a Bug or Feature request?", | ||
"Bug": "Bug", | ||
"Steps to reproduce": "Steps to reproduce", | ||
"Please fill in this section": "Please fill in this section", | ||
"Description of the problem": "Description of the problem", | ||
"Expected behavior": "Expected behavior", | ||
"Actual behavior": "Actual behavior", | ||
"Logs": "Logs", | ||
"OmniSharp": "OmniSharp", | ||
"Razor": "Razor", | ||
"Expand": "Expand", | ||
"Workspace information": "Workspace information", | ||
"Razor document": "Razor document", | ||
"Projected CSharp document": "Projected CSharp document", | ||
"Projected Html document": "Projected Html document", | ||
"Machine information": "Machine information", | ||
"Razor.VSCode version": "Razor.VSCode version", | ||
"VSCode version": "VSCode version", | ||
"Extensions": "Extensions", | ||
"Projected CSharp as seen by extension": "Projected CSharp as seen by extension", | ||
"Unable to resolve VSCode's version of CSharp": "Unable to resolve VSCode's version of CSharp", | ||
"Projected Html as seen by extension": "Projected Html as seen by extension", | ||
"Unable to resolve VSCode's version of Html": "Unable to resolve VSCode's version of Html", | ||
"Unable to find Razor extension version.": "Unable to find Razor extension version.", | ||
"Extension": "Extension", | ||
"Author": "Author", | ||
"Version": "Version", | ||
"Razor C# Preview": "Razor C# Preview", | ||
"Unexpected error when attaching to C# preview window.": "Unexpected error when attaching to C# preview window.", | ||
"Razor C# copied to clipboard": "Razor C# copied to clipboard", | ||
"Copy C#": "Copy C#", | ||
"Unexpected completion trigger kind: {0}": "Unexpected completion trigger kind: {0}", | ||
"1 reference": "1 reference", | ||
"{0} references": "{0} references", | ||
"Run and Debug: auto-detection found {0} for a launch browser": "Run and Debug: auto-detection found {0} for a launch browser", | ||
"There was an unexpected error while launching your debugging session. Check the console for helpful logs and visit the debugging docs for more info.": "There was an unexpected error while launching your debugging session. Check the console for helpful logs and visit the debugging docs for more info.", | ||
"View Debug Docs": "View Debug Docs", | ||
"Ignore": "Ignore", | ||
"Run and Debug: A valid browser is not installed": "Run and Debug: A valid browser is not installed", | ||
"Restart Language Server": "Restart Language Server" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Projects": [ | ||
{ | ||
"LanguageSet": "VS_Main_Languages", | ||
"LocItems": [ | ||
{ | ||
"SourceFile": "./loc/vscode-csharp.xlf", | ||
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.
./loc folder is used to stage all the generated files. |
||
"CopyOption": "LangIDOnName", | ||
"OutputPath": "./loc/" | ||
} | ||
] | ||
} | ||
] | ||
} |
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.
GitHub client needs this