diff --git a/src/app/components/TextComponent.tsx b/src/app/components/TextComponent.tsx index 5e008ca5..f613e4e9 100644 --- a/src/app/components/TextComponent.tsx +++ b/src/app/components/TextComponent.tsx @@ -112,7 +112,7 @@ function TextPart({ part, lang, oneline }: { part: PartData, lang: Record): string { - const str = lang[translate] ?? fallback + const str = lang[translate] ?? fallback ?? translate if (typeof str !== 'string') return translate const params = with_?.map((c): string => { if (typeof c === 'string' || typeof c === 'number') return `${c}` diff --git a/src/app/components/previews/DialogPreview.tsx b/src/app/components/previews/DialogPreview.tsx index 9c77e297..95b4d435 100644 --- a/src/app/components/previews/DialogPreview.tsx +++ b/src/app/components/previews/DialogPreview.tsx @@ -220,8 +220,7 @@ function InputControl({ input }: { input: any }) { } if (type === 'number_range') { - // TODO: use label_format - const label = {translate: 'options.generic_value', with: [input.label ?? '', input.start ?? 0]} + const label = {translate: input.label_format ?? 'options.generic_value', with: [input.label ?? '', input.start ?? 0]} return
diff --git a/src/styles/global.css b/src/styles/global.css index d046b01b..20af463b 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1981,6 +1981,7 @@ hr { display: flex; align-items: center; justify-content: center; + padding-bottom: var(--dialog-px); } .project-files {