Repository navigation
Commit ea128da
authored
docs(config): the plan display name is the frontend's, not /api/plans (#371)
`Plan.name` claimed "为空时 /api/plans 按 type 推导" — the opposite of what the
endpoint does. `plans()` returns the config value verbatim (empty string when
unset) and there is a gate pinning that: a backend-invented label would surface
as Chinese text in the `en` UI, because response *data* fields are rendered
as-is (`I18n.mapErr` only translates the `error` field). The `type` → label
mapping lives in the frontend's `planLabel()`, which reads the language pack.
The comment outlived the behaviour it describes: the derivation was removed in
the same change that rewrote `plans()`'s own doc comment, which this struct
field never received. Point at the real owner instead of restating the history
that `gateway.rs` already carries.
Comment only — no behaviour, no signature, no config-shape change.1 parent 64c77f9 commit ea128da
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| |||
0 commit comments