Skip to content

Modern Docker Management, Designed for Everyone

chore(translations): replace hardcoded UI strings with translation keys (#3163)

olzi935ec3bf257b
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
index eb52d7d7a..ea16b20d4 100644
--- a/frontend/messages/en.json
+++ b/frontend/messages/en.json
@@ -3432,5 +3432,42 @@
"account_global_scope": "Global scope",
"account_via_sso": "· via SSO",
"account_signout_other_desc": "Revokes every active session except this one. Useful if you forgot to log out somewhere.",
- "swarm_stacks_not_deployed_files_found": "This stack is not currently deployed, but Arcane still found its saved source files."
+ "swarm_stacks_not_deployed_files_found": "This stack is not currently deployed, but Arcane still found its saved source files.",
+ "environments_direct_desc": "Manager connects directly to the agent. Requires the agent port to be accessible.",
+ "environments_edge_desc": "Agent connects outbound to the manager. No exposed ports required - ideal for firewalled environments.",
+ "environments_edge_mtls_enable": "Enable manager mTLS",
+ "environments_edge_mtls_desc": "Use Arcane-generated edge mTLS assets when they are available on the manager.",
+ "auth_login_success": "Successfully logged in!",
+ "common_form_errors": "Please check the form for errors",
+ "settings_notifications_save_error": "Failed to save notification settings. Please try again.",
+ "common_copied_path": "Copied current path",
+ "common_copy_path_error": "Failed to copy path",
+ "common_file_saved": "File saved",
+ "account_profile_updated": "Profile updated",
+ "account_password_updated": "Password updated",
+ "account_api_key_deleted": "API key deleted",
+ "common_key_copied": "Key copied to clipboard",
+ "account_sessions_signed_out": "All other sessions signed out",
+ "environments_api_key_error": "Failed to generate API key",
+ "common_download_error": "Unable to download file.",
+ "environments_connect_error": "Failed to Connect to Environment",
+ "common_access_denied": "Access denied",
+ "volumes_backup_restore_desc": "Select files from this backup to restore.",
+ "file_browser_backup_restore_desc": "Select a backup to restore the chosen file.",
+ "editor_commands_desc": "Run editor commands",
+ "environments_swarm_stack_source_label": "Swarm Stack Sources Directory",
+ "carousel_next_slide": "Next slide",
+ "carousel_previous_slide": "Previous slide",
+ "volumes_volume": "Volume",
+ "common_back_to_projects": "Back to Projects",
+ "common_edit_name": "Edit name",
+ "common_ive_saved_it": "I've saved it",
+ "file_browser_restore_file": "Restore file",
+ "containers_status_created": "Created",
+ "containers_status_restarting": "Restarting",
+ "containers_status_running": "Running",
+ "containers_status_removing": "Removing",
+ "containers_status_paused": "Paused",
+ "containers_status_exited": "Exited",
+ "containers_status_dead": "Dead"
}
diff --git a/frontend/src/lib/components/activity/activity-detail-panel.svelte b/frontend/src/lib/components/activity/activity-detail-panel.svelte
index ab92cf799..bdc283bfd 100644
--- a/frontend/src/lib/components/activity/activity-detail-panel.svelte
+++ b/frontend/src/lib/components/activity/activity-detail-panel.svelte
@@ -229,12 +229,12 @@
</div>
{:else}
{#each messages as message (message.id)}
- <div class="grid grid-cols-[auto_auto_minmax(0,1fr)] gap-2 rounded px-1 py-0.5 hover:bg-white/[0.04]">
+ <div class="grid grid-cols-[auto_auto_minmax(0,1fr)] gap-2 rounded px-1 py-0.5 hover:bg-white/4">
<span class="text-zinc-500">{formatDateTimeInternal(message.createdAt)}</span>
<span class={cn('font-bold', messageLevelClassInternal(message.level))}>
{message.level.toUpperCase()}
</span>
- <span class="break-words whitespace-pre-wrap">{message.message}</span>
+ <span class="wrap-break-word whitespace-pre-wrap">{message.message}</span>
</div>
{/each}
{/if}
diff --git a/frontend/src/lib/components/code-editor/editor.svelte b/frontend/src/lib/components/code-editor/editor.svelte
index b35d05c16..55a32d5a0 100644
--- a/frontend/src/lib/components/code-editor/editor.svelte
+++ b/frontend/src/lib/components/code-editor/editor.svelte
@@ -855,7 +855,7 @@
{/if}
</div>
- <Command.Dialog bind:open={commandPaletteOpen} title={m.editor_commands()} description="Run editor commands">
+ <Command.Dialog bind:open={commandPaletteOpen} title={m.editor_commands()} description={m.editor_commands_desc()}>
{#snippet children()}
<Command.Input placeholder={m.editor_search_commands()} />
<Command.List>
diff --git a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
index 6dd6a530b..0214b78f6 100644
--- a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
@@ -219,7 +219,7 @@
toast.success(m.environments_switched_to({ name: env.name }));
} catch (error) {
console.error('Failed to set environment:', error);
- toast.error('Failed to Connect to Environment');
+ toast.error(m.environments_connect_error());
}
}
diff --git a/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte b/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
index af959dcd3..ed8e1f988 100644
--- a/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
+++ b/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
@@ -258,7 +258,7 @@
open={showRestoreFile}
onOpenChange={(nextOpen) => (showRestoreFile = nextOpen)}
title={m.file_browser_restore()}
- description="Select a backup to restore the chosen file."
+ description={m.file_browser_backup_restore_desc()}
contentClass="sm:max-w-[520px]"
>
{#snippet children()}
@@ -333,7 +333,7 @@
{#if canBackupVolume}
<ArcaneButton
action="create"
- customLabel="Restore file"
+ customLabel={m.file_browser_restore_file()}
onclick={handleRestoreFile}
loading={restoringFile}
disabled={restoringFile ||
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index 65c8bbd1c..7e57f3dd6 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -83,7 +83,7 @@
toast.success(m.environments_created_success());
} else {
- toast.error('Failed to generate API key');
+ toast.error(m.environments_api_key_error());
}
},
onError: (error) => {
@@ -190,7 +190,7 @@
return;
}
if (!file.downloadUrl) {
- toast.error('Unable to download file.');
+ toast.error(m.common_download_error());
return;
}
try {
@@ -209,7 +209,7 @@
URL.revokeObjectURL(url);
} catch (err) {
console.error('Failed to download mTLS asset:', err);
- toast.error('Unable to download file.');
+ toast.error(m.common_download_error());
}
}
</script>
@@ -306,7 +306,7 @@
<Tabs.Content value="direct" class="mt-4">
<p class="text-muted-foreground mb-4 text-sm">
- Manager connects directly to the agent. Requires the agent port to be accessible.
+ {m.environments_direct_desc()}
</p>
<form onsubmit={preventDefault(handleDirectSubmit)} class="space-y-4">
<FormInput
@@ -340,15 +340,15 @@
<Tabs.Content value="edge" class="mt-4">
<p class="text-muted-foreground mb-4 text-sm">
- Agent connects outbound to the manager. No exposed ports required - ideal for firewalled environments.
+ {m.environments_edge_desc()}
</p>
<form onsubmit={preventDefault(handleEdgeSubmit)} class="space-y-4">
<FormInput label={m.common_name()} placeholder={m.env_remote_docker_host()} bind:input={$edgeInputs.name} />
<LabeledSwitch
id="new-edge-agent-mtls"
- label="Enable manager mTLS"
- description="Use Arcane-generated edge mTLS assets when they are available on the manager."
+ label={m.environments_edge_mtls_enable()}
+ description={m.environments_edge_mtls_desc()}
checked={edgeMTLSEnabled}
onCheckedChange={(checked) => (edgeMTLSEnabled = checked)}
disabled={isSubmittingNewAgent}
diff --git a/frontend/src/lib/components/ui/carousel/carousel-next.svelte b/frontend/src/lib/components/ui/carousel/carousel-next.svelte
index a1788b89d..365f0af9b 100644
--- a/frontend/src/lib/components/ui/carousel/carousel-next.svelte
+++ b/frontend/src/lib/components/ui/carousel/carousel-next.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { m } from '$lib/paraglide/messages';
import type { WithoutChildren } from 'bits-ui';
import { ArrowRightIcon } from '$lib/icons';
import type { Props } from '$lib/components/ui/button/index.js';
@@ -7,4 +8,4 @@
let { ref = $bindable(null), ...restProps }: WithoutChildren<Props> = $props();
</script>
-<CarouselControl bind:ref direction="next" icon={ArrowRightIcon} label="Next slide" {...restProps} />
+<CarouselControl bind:ref direction="next" icon={ArrowRightIcon} label={m.carousel_next_slide()} {...restProps} />
diff --git a/frontend/src/lib/components/ui/carousel/carousel-previous.svelte b/frontend/src/lib/components/ui/carousel/carousel-previous.svelte
index 507d8b906..221307491 100644
--- a/frontend/src/lib/components/ui/carousel/carousel-previous.svelte
+++ b/frontend/src/lib/components/ui/carousel/carousel-previous.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { m } from '$lib/paraglide/messages';
import type { WithoutChildren } from 'bits-ui';
import { ArrowLeftIcon } from '$lib/icons';
import type { Props } from '$lib/components/ui/button/index.js';
@@ -7,4 +8,4 @@
let { ref = $bindable(null), ...restProps }: WithoutChildren<Props> = $props();
</script>
-<CarouselControl bind:ref direction="previous" icon={ArrowLeftIcon} label="Previous slide" {...restProps} />
+<CarouselControl bind:ref direction="previous" icon={ArrowLeftIcon} label={m.carousel_previous_slide()} {...restProps} />
diff --git a/frontend/src/lib/services/api-service.ts b/frontend/src/lib/services/api-service.ts
index a812339a0..56e45a194 100644
--- a/frontend/src/lib/services/api-service.ts
+++ b/frontend/src/lib/services/api-service.ts
@@ -1,3 +1,4 @@
+import { m } from '$lib/paraglide/messages';
import ky, { HTTPError as KyHTTPError, NetworkError, TimeoutError, type Options as KyOptions, type SearchParamsOption } from 'ky';
import { toast } from 'svelte-sonner';
@@ -319,7 +320,7 @@ class APIClient {
if (errorResponse.status === 403 && typeof window !== 'undefined' && !config.suppressAccessDeniedToast) {
const reason = extractServerMessage(parsed) ?? 'You do not have permission to perform this action.';
- toast.error('Access denied', { description: reason });
+ toast.error(m.common_access_denied(), { description: reason });
}
throw new APIError(extractServerMessage(parsed, true) ?? error.message, {
diff --git a/frontend/src/routes/(app)/account/+page.svelte b/frontend/src/routes/(app)/account/+page.svelte
index f4f51c4f5..fdf63de4a 100644
--- a/frontend/src/routes/(app)/account/+page.svelte
+++ b/frontend/src/routes/(app)/account/+page.svelte
@@ -138,7 +138,7 @@
email: profileEmail.trim()
});
await userStore.setUser(updated);
- toast.success('Profile updated');
+ toast.success(m.account_profile_updated());
} catch (err) {
const msg = err instanceof Error ? err.message : 'Failed to update profile';
toast.error(msg);
@@ -202,7 +202,7 @@
passwordSaving = true;
try {
await userService.changePassword({ currentPassword, newPassword });
- toast.success('Password updated');
+ toast.success(m.account_password_updated());
currentPassword = '';
newPassword = '';
confirmPassword = '';
@@ -255,7 +255,7 @@
if (!confirm(`Delete API key "${name}"? This cannot be undone.`)) return;
try {
await apiKeyService.deleteMine(id);
- toast.success('API key deleted');
+ toast.success(m.account_api_key_deleted());
await loadApiKeys();
} catch (err) {
toast.error(err instanceof Error ? err.message : 'Failed to delete API key');
@@ -264,7 +264,7 @@
function copyKeyToClipboard(key: string) {
void navigator.clipboard.writeText(key);
- toast.success('Key copied to clipboard');
+ toast.success(m.common_key_copied());
}
onMount(() => {
@@ -276,7 +276,7 @@
revokingAll = true;
try {
await userService.logoutAllOtherSessions();
- toast.success('All other sessions signed out');
+ toast.success(m.account_sessions_signed_out());
} catch (err) {
const msg = err instanceof Error ? err.message : 'Failed to sign out other sessions';
toast.error(msg);
@@ -520,7 +520,7 @@
action="base"
tone="outline"
size="sm"
- customLabel="Copy"
+ customLabel={m.common_copy()}
icon={CopyIcon}
onclick={() => copyKeyToClipboard(createdKey!.key)}
/>
@@ -530,7 +530,7 @@
action="cancel"
tone="ghost"
size="sm"
- customLabel="I've saved it"
+ customLabel={m.common_ive_saved_it()}
onclick={() => (createdKey = null)}
/>
</div>
@@ -574,7 +574,7 @@
tone="ghost"
size="sm"
icon={TrashIcon}
- customLabel="Delete"
+ customLabel={m.common_delete()}
showLabel={false}
class="text-muted-foreground hover:text-destructive hover:bg-destructive/10"
onclick={() => deleteApiKey(key.id, key.name)}
diff --git a/frontend/src/routes/(app)/containers/[containerId]/+page.svelte b/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
index 13dde5674..945849e75 100644
--- a/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
@@ -14,6 +14,7 @@
import ContainerOverview from '../components/ContainerOverview.svelte';
import ContainerStats from '../components/ContainerStats.svelte';
import ContainerConfiguration from '../components/ContainerConfiguration.svelte';
+ import { getContainerStatusLabel } from '../container-table.helpers';
import ContainerNetwork from '../components/ContainerNetwork.svelte';
import ContainerStorage from '../components/ContainerStorage.svelte';
import ContainerLogsPanel from '../components/ContainerLogsPanel.svelte';
@@ -315,13 +316,13 @@
class="size-5"
containerClass="size-9"
/>
- <h1 class="max-w-[300px] truncate text-lg font-semibold" title={containerDisplayName}>
+ <h1 class="max-w-75 truncate text-lg font-semibold" title={containerDisplayName}>
{containerDisplayName}
</h1>
{#if container?.state}
<StatusBadge
variant={container.state.status === 'running' ? 'green' : container.state.status === 'exited' ? 'red' : 'amber'}
- text={container.state.status}
+ text={getContainerStatusLabel(container.state.status)}
/>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/containers/container-table.helpers.ts b/frontend/src/routes/(app)/containers/container-table.helpers.ts
index 2b744428a..f76e1eb07 100644
--- a/frontend/src/routes/(app)/containers/container-table.helpers.ts
+++ b/frontend/src/routes/(app)/containers/container-table.helpers.ts
@@ -59,3 +59,16 @@ export function getProjectName(container: ContainerSummaryDto): string {
export function groupContainerByProject(container: ContainerSummaryDto): string {
return getProjectName(container);
}
+
+export function getContainerStatusLabel(state: string): string {
+ switch (state) {
+ case 'created': return m.containers_status_created();
+ case 'restarting': return m.containers_status_restarting();
+ case 'running': return m.containers_status_running();
+ case 'removing': return m.containers_status_removing();
+ case 'paused': return m.containers_status_paused();
+ case 'exited': return m.containers_status_exited();
+ case 'dead': return m.containers_status_dead();
+ default: return state ? state.charAt(0).toUpperCase() + state.slice(1) : m.common_unknown();
+ }
+}
diff --git a/frontend/src/routes/(app)/containers/container-table.svelte b/frontend/src/routes/(app)/containers/container-table.svelte
index b9956e3dd..1a9f2417b 100644
--- a/frontend/src/routes/(app)/containers/container-table.svelte
+++ b/frontend/src/routes/(app)/containers/container-table.svelte
@@ -9,7 +9,7 @@
import type { SearchPaginationSortRequest } from '$lib/types/shared';
import StatusBadge from '$lib/components/badges/status-badge.svelte';
import { format } from 'date-fns';
- import { capitalizeFirstLetter, truncateImageDigest } from '$lib/utils/formatting';
+ import { truncateImageDigest } from '$lib/utils/formatting';
import type { ContainerSummaryDto } from '$lib/types/docker';
import type { ColumnSpec, BulkAction } from '$lib/components/arcane-table';
import { m } from '$lib/paraglide/messages';
@@ -40,6 +40,7 @@
getProjectName,
getStateBadgeVariant,
parseImageRef,
+ getContainerStatusLabel,
type ActionStatus
} from './container-table.helpers';
import {
@@ -412,7 +413,7 @@
</span>
</div>
{:else}
- <StatusBadge variant={getStateBadgeVariant(item.state)} text={capitalizeFirstLetter(item.state)} />
+ <StatusBadge variant={getStateBadgeVariant(item.state)} text={getContainerStatusLabel(item.state)} />
{/if}
<div class="flex items-center gap-1">
{#if !status && item.state !== 'running'}
@@ -515,7 +516,7 @@
(mobileFieldVisibility['state'] ?? true)
? {
variant: getStateBadgeVariant(item.state),
- text: capitalizeFirstLetter(item.state)
+ text: getContainerStatusLabel(item.state)
}
: null
]}
diff --git a/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte
index fe55a0c9f..6e49f6a6e 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte
@@ -121,7 +121,7 @@
/>
<TextInputWithLabel
id="swarm-stack-sources-directory"
- label="Swarm Stack Sources Directory"
+ label={m.environments_swarm_stack_source_label()}
bind:value={$formInputs.swarmStackSourcesDirectory.value}
error={$formInputs.swarmStackSourcesDirectory.error}
helpText="Directory where original compose/env sources for Swarm stack deploys are stored. Supports the same container:host bind-mount format as Projects Directory."
diff --git a/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte b/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
index 1bc2a503f..c58ad4421 100644
--- a/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
+++ b/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
@@ -153,10 +153,10 @@
async function handleCopyPath() {
const status = await clipboard.copy(absoluteCurrentPath);
if (status === 'success') {
- toast.success('Copied current path');
+ toast.success(m.common_copied_path());
return;
}
- toast.error('Failed to copy path');
+ toast.error(m.common_copy_path_error());
}
async function openEditor(file: FileEntry) {
@@ -174,7 +174,7 @@
const file = new File([editorContent], editorFile.name, { type: 'text/plain' });
await uploadMutation.mutateAsync({ path: dirPath, file });
await queryClient.invalidateQueries({ queryKey: queryKeys.buildWorkspace.content(envId, editorFile.path) });
- toast.success('File saved');
+ toast.success(m.common_file_saved());
editorOpen = false;
await filesQuery.refetch();
} catch (e: any) {
diff --git a/frontend/src/routes/(app)/projects/components/EditableName.svelte b/frontend/src/routes/(app)/projects/components/EditableName.svelte
index a6813f8cc..e503d1f4b 100644
--- a/frontend/src/routes/(app)/projects/components/EditableName.svelte
+++ b/frontend/src/routes/(app)/projects/components/EditableName.svelte
@@ -133,7 +133,7 @@
tone="ghost"
size="icon"
class="pointer-events-none size-6 opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100"
- customLabel="Edit name"
+ customLabel={m.common_edit_name()}
showLabel={false}
icon={EditIcon}
onclick={beginEdit}
diff --git a/frontend/src/routes/(app)/settings/notifications/+page.svelte b/frontend/src/routes/(app)/settings/notifications/+page.svelte
index 5508c5ce0..199a5eb5a 100644
--- a/frontend/src/routes/(app)/settings/notifications/+page.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/+page.svelte
@@ -218,7 +218,7 @@
matrixValid &&
genericValid
)) {
- toast.error('Please check the form for errors');
+ toast.error(m.common_form_errors());
return;
}
@@ -363,7 +363,7 @@
}
} catch (error) {
console.error('Error saving notification settings:', error);
- toast.error('Failed to save notification settings. Please try again.');
+ toast.error(m.settings_notifications_save_error());
} finally {
isLoading = false;
}
diff --git a/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte b/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
index db6b09731..3238007f0 100644
--- a/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
+++ b/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
@@ -275,7 +275,7 @@
{/snippet}
</TabbedPageLayout>
{:else}
- <ResourceDetailLayout backUrl="/volumes" backLabel={m.volumes_title()} title="Volume" {actions}>
+ <ResourceDetailLayout backUrl="/volumes" backLabel={m.volumes_title()} title={m.volumes_volume()} {actions}>
<div class="flex flex-col items-center justify-center px-4 py-16 text-center">
<div class="bg-muted/30 mb-4 rounded-full p-4">
<BoxIcon class="text-muted-foreground size-10 opacity-70" />
diff --git a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
index a4526904f..de14e41ab 100644
--- a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
+++ b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
@@ -335,7 +335,7 @@
<ResponsiveDialog
bind:open={showRestoreFiles}
title={m.volume_restore_files()}
- description="Select files from this backup to restore."
+ description={m.volumes_backup_restore_desc()}
contentClass="sm:max-w-[640px]"
>
{#snippet children()}
diff --git a/frontend/src/routes/(auth)/oidc/callback/+page.svelte b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
index 2a025dc6c..93b0fb7ac 100644
--- a/frontend/src/routes/(auth)/oidc/callback/+page.svelte
+++ b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
@@ -130,7 +130,7 @@
// the root layout already pulls public settings as a fallback.
console.warn('Skipping post-login settings fetch:', err);
}
- toast.success('Successfully logged in!');
+ toast.success(m.auth_login_success());
// Navigate straight to a route the user can actually reach. Computing the
// reachable target here (rather than always going to /dashboard) avoids the
// (app) layout's auth-redirect superseding this navigation: an interrupted