Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(react/settings): use translation for all units
Elian Doran53eda4604358
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex ead6a51336..b80e8745e8 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -2013,5 +2013,8 @@"settings_appearance": {"related_code_blocks": "Color scheme for code blocks in text notes","related_code_notes": "Color scheme for code notes"+ },+ "units": {+ "percentage": "%"}}diff --git a/apps/client/src/widgets/type_widgets/options/appearance.tsx b/apps/client/src/widgets/type_widgets/options/appearance.tsxindex f59f83259a..dd9e9a9efd 100644--- a/apps/client/src/widgets/type_widgets/options/appearance.tsx+++ b/apps/client/src/widgets/type_widgets/options/appearance.tsx@@ -204,7 +204,7 @@ function Font({ title, fontFamilyOption, fontSizeOption }: { title: string, fontname="tree-font-size"type="number" min={50} max={200} step={10}currentValue={fontSize} onChange={setFontSize}- unit="%"+ unit={t("units.percentage")}/></Column></div>diff --git a/apps/client/src/widgets/type_widgets/options/images.tsx b/apps/client/src/widgets/type_widgets/options/images.tsxindex 36126352e0..7072a86b7f 100644--- a/apps/client/src/widgets/type_widgets/options/images.tsx+++ b/apps/client/src/widgets/type_widgets/options/images.tsx@@ -42,7 +42,7 @@ export default function ImageSettings() {<FormTextBoxWithUnitname="image-jpeg-quality"min="10" max="100" type="number"- unit="%"+ unit={t("units.percentage")}currentValue={imageJpegQuality} onChange={setImageJpegQuality}/></FormGroup>