Skip to content

Commit bf56b00

Browse files
committed
i18n: Parameterise help url, to avoid repetition in translation files
1 parent dd7177c commit bf56b00

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Statuses/StatusRegistryReport.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ ${i18n.t('reports.statusRegistry.sampleTasks.line2')}
5858
${i18n.t('reports.statusRegistry.sampleTasks.line3')}
5959
6060
> [!Tip] ${i18n.t('reports.statusRegistry.sampleTasks.tip.line1')}
61-
> ${i18n.t('reports.statusRegistry.sampleTasks.tip.line2')}
61+
> ${i18n.t('reports.statusRegistry.sampleTasks.tip.line2', {
62+
url: 'https://publish.obsidian.md/tasks/How+To/Style+custom+statuses',
63+
})}
6264
6365
${sampleTasksText.join('\n')}
6466

src/i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"line3": "If you have modified the sample tasks since they were created, you can see the current status types and names in the group headings in the Tasks search below.",
7171
"tip": {
7272
"line1": "Tip: If all your checkboxes look the same...",
73-
"line2": "If all the checkboxes look the same in Reading Mode or Live Preview, see [Style custom statuses](https://publish.obsidian.md/tasks/How+To/Style+custom+statuses) for how to select a theme or CSS snippet to style your statuses."
73+
"line2": "If all the checkboxes look the same in Reading Mode or Live Preview, see [Style custom statuses]({{url}}) for how to select a theme or CSS snippet to style your statuses."
7474
},
7575
"title": "Sample Tasks"
7676
},

0 commit comments

Comments
 (0)