Commit ad4c0f6
authored
fix(richtext-lexical): use headingLevel in danish heading label (#15685)
### What?
Danish rich text heading labels now show "Overskrift 1", "Overskrift 2",
etc. instead of the raw placeholder "Overskrift {{overskriftNi...".
### Why?
With the UI in Danish, the heading dropdown (H1–H4) showed an unresolved
placeholder because the Danish string used `{{overskriftNiveau}}` while
the code only passes `headingLevel`. The interpolation key must be
`{{headingLevel}}` for the value to be substituted.
### How?
In `packages/richtext-lexical/src/features/heading/server/i18n.ts`, the
Danish (`da`) label was changed from `'Overskrift {{overskriftNiveau}}'`
to `'Overskrift {{headingLevel}}'` so it matches the variable passed by
the client. No other locales used a different placeholder.1 parent a40210c commit ad4c0f6
File tree
1 file changed
+1
-1
lines changed- packages/richtext-lexical/src/features/heading/server
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments