Skip to content

v0.1.3

Latest

Choose a tag to compare

@Albert-code-1114 Albert-code-1114 released this 13 Oct 04:35
· 1 commit to main since this release

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.json holds 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 use package.nls.json (English, the
    default) plus package.nls.zh-cn.json, the same two-file shape VS Code's own
    built-in extensions ship.
    • src/core/l10n.js wraps vscode.l10n.t and 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 scope claimed "no models configured yet" whenever
    copilotOtelUsage.gatewayModels was empty, even though host evidence alone
    (server.address in the records) can drive a correct grouping. It now needs
    both gatewayModels and gatewayHosts to be empty before it hints.

Tests

  • New test/l10n.test.js (24 assertions) fails the build on a t("…") 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.js now runs five suites.

Install

code --install-extension copilot-otel-usage-0.1.3.vsix

Then 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