Skip to content

Commit

Permalink
add translations for indent size
Browse files Browse the repository at this point in the history
  • Loading branch information
astudentinearth committed Jan 20, 2025
1 parent 4fb960a commit fe36bbb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- You can now toggle todo, bullet and numbered lists directly from the floating menu
- Added block quote button to floating menu
- Word count can now be always shown in the bottom-right corner of the window. (You can enable or disable it in settings)
- Upgraded code blocks
- Hitting `⇥Tab` inserts a desired number of spaces for indentation
- Hitting `⬇️Down Arrow` at the last line exits the code block
- Hitting `Ctrl/Cmd` + `⬇️Down Arrow` exits the code block immediately, even if you are on the first line

## ✨ Improvements and fixes
- Fixed 7 places where notes without icons were handled incorrectly
Expand Down
5 changes: 4 additions & 1 deletion packages/app-desktop/src/features/settings/workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ export function WorkspaceSettings() {
className="place-self-end"
id="always-show-word-count-switch"
/>
<Label>Code block indent size</Label>
<div className="flex flex-col gap-1">
<Label>{t("codeBlockIndentSize")}</Label>
<span className="text-foreground/70 text-sm">{t("codeBlockIndentSizeDescription")}</span>
</div>
<Input type="number" defaultValue={indentSize} className="w-12 place-self-end hide-number-arrows" onChange={(inp)=>{
if(inp.target.value && !Number.isNaN(parseInt(inp.target.value))) setIndentSize(parseInt(inp.target.value))
}} id="code-block-indent-size-input"/>
Expand Down
4 changes: 3 additions & 1 deletion packages/app-desktop/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"openLastPage": "Continue where I left off",
"openSpecificPage": "Open a specific page"
},
"alwaysShowWordCount": "Always show word count"
"alwaysShowWordCount": "Always show word count",
"codeBlockIndentSize": "Indent size in code blocks",
"codeBlockIndentSizeDescription": "Number of spaces to be inserted when you hit the tab key."
},
"appearance": {
"title": "Appearance",
Expand Down
4 changes: 3 additions & 1 deletion packages/app-desktop/src/locales/tr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"openLastPage": "Kaldığım yerden devam et",
"openSpecificPage": "Belirli bir sayfayı aç"
},
"alwaysShowWordCount": "Kelime sayısını her zaman göster"
"alwaysShowWordCount": "Kelime sayısını her zaman göster",
"codeBlockIndentSize": "Kod bloklarındaki girinti genişliği",
"codeBlockIndentSizeDescription": "Tab tuşuna basıldığında kod bloklarına eklenecek boşluk sayısını belirleyin."
},
"appearance": {
"title": "Görünüm",
Expand Down

0 comments on commit fe36bbb

Please sign in to comment.