interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Polyglot Notebook: [NetTestingE2E][Loc] Some strings in the outputs are not translated when running the saved and removed password cells.

Open v-huanli1 opened this issue 7 months ago • 0 comments

REGRESSION: No regression info since it's our first time to try Loc test on this.

Describe the bug Some strings in the outputs are not translated when running the saved and removed password cells.

Note:

  1. Repro VM: 10.158.80.11.
  2. This issue not only repro on ENU OS + VSCode language pack, also repro on Loc OS.

Pre-steps: 1.On ENU OS, install VSCode and dotnet-interactive-vscode-1.0.6323011.vsix extension componet. 2. Install the language package of Japanese from VSCode -> Change the display language of VSCode to Japanese

Steps:

  1. Ctrl+Shift+P => "Polyglot Notebook: Create new blank notebook"
  2. Select "Create as .dib" ->Select "C#"
  3. Set the contents as following #!set --name rememberMe --value @password:{ "prompt": "Please enter a value", "saveAs": "rememberMe" } rememberMe
  4. Add a pwsh -PowerShell cell and set the contents to “Remove-Secret -Name rememberMe -Vault DotnetInteractive”
  5. Run the two cells twice one by one and observe the outputs

Build info: Detailed Repro Build info: VSCodeUserSetup-x64-1.101.2 +dotnet-interactive-vscode-1.0.6323011.vsix VSCode Link: https://code.visualstudio.com/insiders/# dotnet-interactive-vscode-1.0.6323011.vsix https://dev.azure.com/dnceng/internal/_build/results?buildId=2177104&view=artifacts&pathAsName=false&type=publishedArtifacts Sdk info: dotnet-sdk-9.0.300-win-x64.exe

Actual Results: Some strings of the outputs are not translated. Image Image

Expected Results: All strings of the outputs should be translated.

Please complete the following: Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • [√] Windows 11
    • [ ] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [ ] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [√] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

v-huanli1 avatar Jul 03 '25 08:07 v-huanli1