Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/localization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: microsoft/vscode-common-python-lsp/.github/actions/localization@d1877b84bb10ff7caa6bd12ab4e75498ba760790
- uses: microsoft/vscode-common-python-lsp/.github/actions/localization@6b4a3573e7e7a9fe1e468e129544432278aec2d6
with:
app-id: ${{ vars.PYTHON_LOCALIZATION_APP_ID }}
private-key: ${{ secrets.PYTHON_LOCALIZATION_PRIVATE_KEY }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ The **Localization** GitHub workflow submits English strings using the [shared c

Both paths use `microsoft/vscode-python-extensions-loc`, branch **`dev`**, with canonical extension ID **`ms-python.debugpy`**. English XLF is stored in `src/en/ms-python.debugpy` and handbacks in `out/ms-python.debugpy`. The action and Azure tooling checkout are pinned to the same reviewed revision.

Configure the `PYTHON_LOCALIZATION_APP_ID` Actions variable and `PYTHON_LOCALIZATION_PRIVATE_KEY` secret here, or grant access to organization-level credentials. The app needs Contents write access only to the localization drop; the caller's repository token stays read-only. The shared action uses the Microsoft npm proxy and pinned localization CLI. Authorize the literal `Github-Pylance` service connection for both Azure repository resources and release pipelines.
Configure the `PYTHON_LOCALIZATION_APP_ID` Actions variable and `PYTHON_LOCALIZATION_PRIVATE_KEY` secret here, or grant access to organization-level credentials. The app needs Contents write access only to the localization drop; the caller's repository token stays read-only. The shared action uses the Microsoft npm proxy and pinned localization CLI. Authorize the literal `Github-Pylance` service connection for the [pipeline templates](https://github.com/microsoft/pylance-eng), translation, and shared-tooling repository resources in both release pipelines.

Keep English `package.nls.json` tracked. Root `package.nls.<locale>.json` and `l10n/` runtime files are generated, git-ignored release outputs. VSCE must include generated locale files despite Git ignores. Local builds are English-only unless translations are imported explicitly (debugger pre-built assets remain available, but the release import runs after their overlay and is authoritative).

Translation is asynchronous. All 14 supported locales must be present, and every required real-language table must contain translation evidence. Individual untranslated strings are allowed. Missing, incomplete, or wholly untranslated handbacks fail before packaging, without falling back to stale translations. Do not publish while onboarding or real translated output is pending.
Translation is asynchronous. Nonempty manifest and runtime tables must be present for all 14 supported locales. Untranslated strings, including wholly untranslated tables, are allowed; users see English until translations arrive. Missing, empty, malformed, or incomplete handbacks still fail before packaging, without falling back to stale translations.
7 changes: 4 additions & 3 deletions build/azure-devdiv-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ schedules:
resources:
repositories:
- repository: templates
type: git
name: DevDiv/Pylance-Eng
type: github
name: microsoft/pylance-eng
ref: refs/heads/main
endpoint: Github-Pylance
- repository: translations
type: github
name: microsoft/vscode-python-extensions-loc
Expand All @@ -25,7 +26,7 @@ resources:
- repository: localizationTools
type: github
name: microsoft/vscode-common-python-lsp
ref: d1877b84bb10ff7caa6bd12ab4e75498ba760790
ref: 6b4a3573e7e7a9fe1e468e129544432278aec2d6
endpoint: Github-Pylance
variables:
- name: TeamName
Expand Down
7 changes: 4 additions & 3 deletions build/azure-devdiv-pipeline.stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ pr: none
resources:
repositories:
- repository: templates
type: git
name: DevDiv/Pylance-Eng
type: github
name: microsoft/pylance-eng
ref: refs/heads/main
endpoint: Github-Pylance
- repository: translations
type: github
name: microsoft/vscode-python-extensions-loc
Expand All @@ -20,7 +21,7 @@ resources:
- repository: localizationTools
type: github
name: microsoft/vscode-common-python-lsp
ref: d1877b84bb10ff7caa6bd12ab4e75498ba760790
ref: 6b4a3573e7e7a9fe1e468e129544432278aec2d6
endpoint: Github-Pylance
variables:
- name: TeamName
Expand Down
Loading