Skip to content

Commit

Permalink
fix(pdf-service): fix bug with German umlauts not rendered correctly …
Browse files Browse the repository at this point in the history
…in pdf (#1535)

* fix(pdf-service): fix bug with German umlauts not rendered correctly in pdf

Co-authored-by: chris <[email protected]>
Co-authored-by: Spencer Peace <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent 85b9ac7 commit a7b885f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const fillBargeldOderWertgegenstaende: PkhPdfFillFunction = ({
text: `${bargeld.wert} €`,
},
{
title: "Eigentümer:in",
title: "Eigentümer:in",
text: eigentuemer,
},
);
Expand All @@ -187,7 +187,7 @@ export const fillBargeldOderWertgegenstaende: PkhPdfFillFunction = ({
text: `${wertsache.wert} €`,
},
{
title: "Eigentümer:in",
title: "Eigentümer:in",
text: eigentuemerMapping[wertsache.eigentuemer],
},
);
Expand Down
10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ export default tseslint.config(
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",

"no-restricted-syntax": [
"error",
{
selector:
"Literal[value=/(a\u0308)|(o\u0308)|(u\u0308)|(A\u0308)|(O\u0308)|(U\u0308)/]",
message:
"German umlauts must be written as NFC (normalized form canonical composition) and not NFD (normalized form canonical decomposition). E.g. use 'ä' instead of the character 'a' followed by the combining diacritical marks ' ̈'.",
},
],
},
},
// Vitest
Expand Down

0 comments on commit a7b885f

Please sign in to comment.