Repository navigation
fix(sales): Period Label help shows the stored Q3 2026 / Aug 2026 form in every locale (#2786) - #2788
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
sunhaolin
marked this pull request as ready for review
November 25, 2026 09:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2786
What
The forecast hook (
forecast_derive_period,labelFor) writes a blankperiod_labelasQ{n} {yyyy}/{Mon} {yyyy}(e.g.Q3 2026,Aug 2026) in every locale. This is intentional: the label is stored data, asearchableFieldskey and half of the record title. The zh-CN, es-ES and ja-JPperiod_label.helpstrings localised the example values (2026 年第三季度/2026 年 8 月,T3 2026/Ago 2026,2026 年第 3 四半期/2026 年 8 月), so they promised a format the system never writes.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).Q3 2026.Verification
pnpm validate,pnpm typecheck,pnpm lint,pnpm hygiene: greenpnpm test: 335 files / 6466 tests passedMetadata-impact: reviewer