Repository navigation
0.1.3 — the interface speaks English too
Everything the extension shows — command titles, setting descriptions, the status
bar hint, the details panel, the Markdown report, the diagnostics output — now
follows VS Code's display language.
Chinese remains the authored language, so a Chinese VS Code looks exactly as
before; every other display language gets English. Nothing about the numbers
changed in this release: 0.1.3 is the 0.1.2 accounting with a bilingual UI.
Added
- English UI. 85 runtime strings and 24 manifest strings are translated.
Messages are authored in Chinese, so the Chinese string is the key and
l10n/bundle.l10n.en.jsonholds the English text. There is deliberately no
bundle.l10n.zh-cn.json: the host resolves an untranslated key to the authored
text, so a Chinese bundle could only ever be an identity map that silently rots.
Command titles and setting descriptions usepackage.nls.json(English, the
default) pluspackage.nls.zh-cn.json, the same two-file shape VS Code's own
built-in extensions ship.src/core/l10n.jswrapsvscode.l10n.tand falls back to in-place{0}
substitution when the host API is absent, so nothing throws on an older VS
Code and the headless test suites keep working.- The details QuickPick dispatches on codicon prefixes rather than on item
text, so a translated label can never break the command wiring.
Fixed
Switch scopeclaimed "no models configured yet" whenever
copilotOtelUsage.gatewayModelswas empty, even though host evidence alone
(server.addressin the records) can drive a correct grouping. It now needs
bothgatewayModelsandgatewayHoststo be empty before it hints.
Tests
- New
test/l10n.test.js(24 assertions) fails the build on at("…")call with
no English translation, an entry nothing uses, a translation that adds, drops
or renumbers a{0}placeholder, a translation left identical to its key, Han
characters surviving into the English text, or a stray
bundle.l10n.zh-cn.json.test/run-all.jsnow runs five suites.
Install
code --install-extension copilot-otel-usage-0.1.3.vsixThen reload the window. Coming from 0.1.1 or earlier, also run
Copilot Token Usage: Reset today and Copilot Token Usage: Re-scan data source
— those versions double-billed every call, and the stored totals keep showing it
until you reset.
Full changelog: CHANGELOG.md