Skip to content

Commit 1e525bf

Browse files
committed
Fix string to make it properly translatable
1 parent b48a8d2 commit 1e525bf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

root/static/scripts/edit/externalLinks.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,12 @@ export class ExternalLinksEditor
521521
const duplicate = links[0].submitted
522522
? false : linksGroupMap.get(url);
523523
const duplicateNotice = duplicate
524-
? l(`Note: This link already exists
525-
at position #${duplicate[0].urlIndex + 1}.
526-
To merge, press enter or select a type.`)
527-
: '';
524+
? texp.l(
525+
`Note: This link already exists
526+
at position #{position}.
527+
To merge, press enter or select a type.`,
528+
{position: duplicate[0].urlIndex + 1},
529+
) : '';
528530

529531
let urlError = null;
530532
links.forEach(link => {

0 commit comments

Comments
 (0)