Add translations for en & de in Dashdot; Fix PR comments

This commit is contained in:
MauriceNino
2023-02-14 13:01:12 +01:00
parent 2a5a0a7699
commit 368707ed76
25 changed files with 177 additions and 61 deletions

View File

@@ -205,7 +205,7 @@ const WidgetOptionTypeSwitch: FC<{
labels={Object.fromEntries(
Object.entries(option.items).map(([graphName]) => [
graphName,
t(`descriptor.settings.${graphName}.label`),
t(`descriptor.settings.${key}.${graphName}.label`),
])
)}
>
@@ -217,7 +217,7 @@ const WidgetOptionTypeSwitch: FC<{
key={`${graphName}.${subKey}.${i}`}
option={setting as IWidgetOptionValue}
widgetId={widgetId}
propName={`${graphName}.${subKey}`}
propName={`${key}.${graphName}.${subKey}`}
value={typedVal.find((v) => v.key === graphName)?.subValues?.[subKey]}
handleChange={(_, newVal) =>
handleChange(