Skip to content

Commit cf65ff0

Browse files
authored
Fix missing i18n placeholders in OpenInFlexModal (#2269)
1 parent dfcaf0d commit cf65ff0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
</Button>
362362
{:else if canSyncProject}
363363
{#if project && project.type === ProjectType.FlEx && !isEmpty}
364-
<OpenInFlexModal bind:this={openInFlexModal} {project}/>
364+
<OpenInFlexModal bind:this={openInFlexModal} {project} login={user.emailOrUsername}/>
365365
<OpenInFlexButton projectId={project.id} onclick={openInFlexModal?.open}/>
366366
{:else}
367367
<Dropdown>

frontend/src/routes/(authenticated)/project/[project_code]/OpenInFlexModal.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
1010
interface Props {
1111
project: Project;
12+
login: string;
1213
}
1314
14-
const { project }: Props = $props();
15+
const { project, login }: Props = $props();
1516
let modal: Modal | undefined = $state();
1617
1718
export async function open(): Promise<void> {
@@ -35,11 +36,11 @@
3536
<div class="collapse collapse-arrow">
3637
<input type="checkbox" />
3738
<h3 class="collapse-title my-0 px-0 pb-0">
38-
{$t('project_page.get_project.instructions_header', { type: project.type, mode: 'manual' })}...
39+
{$t('project_page.get_project.instructions_header', { type: project.type, mode: 'manual', isEmpty: 'false' })}...
3940
</h3>
4041
<div class="collapse-content p-0">
4142
<div class="divider mt-0"></div>
42-
<Markdown md={$t('project_page.get_project.instructions_flex', { code: project.code, name: project.name })} />
43+
<Markdown md={$t('project_page.get_project.instructions_flex', { code: project.code, login, name: project.name })} />
4344
<SendReceiveUrlField projectCode={project.code} />
4445
</div>
4546
</div>

0 commit comments

Comments
 (0)