Skip to content

fix(sales): Period Label help shows the stored Q3 2026 / Aug 2026 form in every locale (#2786) - #2788

Merged
sunhaolin merged 1 commit into
mainfrom
fix/2786-forecast-period-label-help
Nov 25, 2026
Merged

sunhaolin merged 1 commit into
mainfrom
fix/2786-forecast-period-label-help

Conversation

@sunhaolin

Copy link
Copy Markdown
Collaborator

Fixes #2786

What

The forecast hook (forecast_derive_period, labelFor) writes a blank period_label as Q{n} {yyyy} / {Mon} {yyyy} (e.g. Q3 2026, Aug 2026) in every locale. This is intentional: the label is stored data, a searchableFields key and half of the record title. The zh-CN, es-ES and ja-JP period_label.help strings localised the example values (2026 年第三季度 / 2026 年 8 月, T3 2026 / Ago 2026, 2026 年第 3 四半期 / 2026 年 8 月), so they promised a format the system never writes.

  • zh-CN, es-ES, ja-JP: the examples are now the literal stored form Q3 2026 / Aug 2026; the prose stays translated and adds that a blank label is generated from Period and Period Start (citing each locale's own field labels).
  • ja-JP was not named in the issue but had the same mismatch. The app ships no Traditional Chinese pack; the docs pages (en, zh-Hans, zh-Hant) already use Q3 2026.
  • en text and the derivation are unchanged. No test pins these strings.

Verification

  • pnpm validate, pnpm typecheck, pnpm lint, pnpm hygiene: green
  • pnpm test: 335 files / 6466 tests passed
  • Independent read-only review: passed, class confirmed as reviewer (text and translations)

Metadata-impact: reviewer

…m in every locale (#2786)

The forecast hook writes period_label as 'Q{n} {yyyy}' or '{Mon} {yyyy}'
whatever the writer's locale: the label is stored data, a search key and
half of the record title. The zh-CN, es-ES and ja-JP help localised the
example values, promising a format the system never writes. Keep the
prose translated, use the literal stored examples, and say that a blank
label is generated from Period and Period Start. en and the derivation
are unchanged.

Fixes #2786
@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Nov 25, 2026 8:03am UTC

Request Review

@github-actions github-actions Bot added the metadata Declarative metadata — schema, security posture, UI surfaces label Nov 25, 2026
@sunhaolin
sunhaolin marked this pull request as ready for review November 25, 2026 09:01
@sunhaolin
sunhaolin added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit b4084fb Nov 25, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metadata Declarative metadata — schema, security posture, UI surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

销售预测「周期标签」的 zh-CN / es-ES 帮助文字示例与系统实际写入的格式不符(写入 Q1 2027 / Jan 2027)

1 participant