feat(#22): Use translation keys in files

This commit is contained in:
2025-11-21 19:20:19 +01:00
parent 63023f4f9f
commit 81b1227e82
28 changed files with 497 additions and 195 deletions

View File

@@ -74,7 +74,7 @@ function flattenFormElements(form: ApplicationFormDto): Array<{ element: FormEle
for (const section of form.formElementSections) {
for (const subsection of section.formElementSubSections) {
for (const element of subsection.formElements) {
elements.push({ element, sectionTitle: section.title })
elements.push({ element, sectionTitle: section.title })
}
}
}
@@ -88,7 +88,7 @@ function flattenSnapshotElements(
for (const section of snapshot.sections) {
for (const subsection of section.subsections) {
for (const element of subsection.elements) {
elements.push({ element, sectionTitle: section.title })
elements.push({ element, sectionTitle: section.title })
}
}
}
@@ -110,7 +110,7 @@ function compareElements(
position: number
): ElementModification | null {
const optionsDiff = compareOptions(current.options, version.options)
if (optionsDiff.added.length > 0 || optionsDiff.removed.length > 0 || optionsDiff.modified.length > 0) {
return {
sectionTitle,