Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Pages: rowExpand shows a field's $t: label raw when the field is not a grid column

未关闭 适合新手
#703 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

从src/presentation/islands/data-table/开始,重点查看rowExpand面板,以及它如何获取非网格列字段的标签。使用提供的配置和sovrium_language=fr Cookie重现问题。展开的面板显示法语“Détails / Titre / Texte”,且列字段标签保持不变时,即为完成。

由索引模型根据 Issue 内容生成。

描述

bug:wrong-behaviour domain:internationalization source:agent status:ready
Sovrium version

0.44.0

Last version that worked

No response

Install channel

Binary

Database

SQLite

Operating system

macOS (arm64)

Domain

internationalization

Kind of bug

wrong-behaviour

Minimal configuration
languages:
  default: en
  supported: [{ code: en, label: English }, { code: fr, label: Français }]
  translations:
    en: { notes.title: Title, notes.body: Body, notes.details: Details }
    fr: { notes.title: Titre, notes.body: Texte, notes.details: Détails }
tables: [{ id: 1, name: notes, fields: [
  { id: 1, name: title, type: single-line-text, label: '$t:notes.title' },
  { id: 2, name: body, type: long-text, label: '$t:notes.body' } ] }]
pages: [{ name: notes, path: /notes, components: [{ type: table, dataSource: { table: notes }, readOnly: true,
  columns: [{ field: title, label: '$t:notes.title' }],
  rowExpand: { title: '$t:notes.details', canEdit: false, fields: [title, body] } }] }]
Steps to reproduce
  1. Seed one note; open /notes with the sovrium_language=fr cookie.
  2. Expand the row.
Expected behaviour

The panel reads Détails / Titre / Texte.

Actual behaviour

The panel reads $t:notes.body for the field that is not a column.

Logs or error text

No response

Frequency

Every time

Workaround

Plain-text labels.

Acceptance criteria
  1. Given a rowExpand field that is not a grid column with a $t: label, when the page is French, then its label reads the French translation.
  2. Given a field that is a column, then its label is unchanged.
Affected paths

src/presentation/islands/data-table/ (rowExpand panel)

Verification

Expand a row of the repro in French and read the labels.

Out of scope

Column header labels.

Related issues

Supersedes #635

Validation
  • I ran sovrium validate on my configuration
AI assistance
  • This report was drafted with an AI assistant
主要语言
TypeScript
星标
4
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sovrium/sovrium 的其他 Issue

查看 sovrium/sovrium 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。