feat(#22): Use translation keys in files
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user