Admin wording follow-ups from the browser check
- stats nav link reads "Statistics overview" (it renders after all nav groups) - form-builder e-mails array labelled in en + pl - dev import map: RowLabel (cookie banner rows) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0a2374db18
commit
a92bc51814
@@ -102,7 +102,12 @@ function localizeFormBuilder<T>(node: T): T {
|
||||
if ('label' in f) {out.label = formBuilderText(f.label)}
|
||||
// The text block's rich text has no label of its own.
|
||||
if (f.type === 'richText' && f.name === 'message' && !f.label) {out.label = { en: 'Text', pl: 'Treść' }}
|
||||
if (f.labels && typeof f.labels === 'object') {
|
||||
// The e-mails array has no label (auto "Emails").
|
||||
if (f.type === 'array' && f.name === 'emails' && !f.label) {
|
||||
out.label = { en: 'E-mails', pl: 'E-maile' }
|
||||
out.labels = { plural: { en: 'E-mails', pl: 'E-maile' }, singular: { en: 'E-mail', pl: 'E-mail' } }
|
||||
}
|
||||
if (f.labels && typeof f.labels === 'object' && f.name !== 'emails') {
|
||||
const labels = f.labels as Record<string, unknown>
|
||||
out.labels = { ...labels, plural: formBuilderText(labels.plural), singular: formBuilderText(labels.singular) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user