Skip to content

Commit ad4c0f6

Browse files
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 changed

packages/richtext-lexical/src/features/heading/server/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const i18n: Partial<GenericLanguages> = {
1414
label: 'Nadpis {{headingLevel}}',
1515
},
1616
da: {
17-
label: 'Overskrift {{overskriftNiveau}}',
17+
label: 'Overskrift {{headingLevel}}',
1818
},
1919
de: {
2020
label: 'Überschrift {{headingLevel}}',

0 commit comments

Comments
 (0)