diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json
index c8df380b7..20baecc8a 100644
--- a/src/lib/locales/en.json
+++ b/src/lib/locales/en.json
@@ -89,7 +89,8 @@
"remove_domain": "Remove domain",
"public_port_range": "Public Port Range",
"public_port_range_explainer": "Ports used to expose databases/services/internal services. Add them to your firewall (if applicable).
You can specify a range of ports, eg: 9000-9100",
- "no_actions_available": "No actions available"
+ "no_actions_available": "No actions available",
+ "admin_api_key": "Admin API key"
},
"register": {
"register": "Register",
@@ -203,7 +204,9 @@
"debug_logs": "Debug Logs",
"enable_debug_log_during_build": "Enable debug logs during build phase. Sensitive information could be visible and saved in logs.",
"cant_activate_auto_deploy_without_repo": "Cannot activate automatic deployments until only one application is defined for this repository / branch.",
- "no_applications_found": "No applications found"
+ "no_applications_found": "No applications found",
+ "secret__batch_dot_env": "Paste .env file",
+ "batch_secrets": "Batch add secrets"
},
"general": "General",
"database": {
diff --git a/src/routes/applications/[id]/secrets/_BatchSecrets.svelte b/src/routes/applications/[id]/secrets/_BatchSecrets.svelte
index 38af130c9..7e6cd737d 100644
--- a/src/routes/applications/[id]/secrets/_BatchSecrets.svelte
+++ b/src/routes/applications/[id]/secrets/_BatchSecrets.svelte
@@ -6,6 +6,7 @@
import { saveSecret } from './utils';
import pLimit from 'p-limit';
import { createEventDispatcher } from 'svelte';
+ import { t } from '$lib/translations';
const dispatch = createEventDispatcher();
let batchSecrets = '';
@@ -38,11 +39,11 @@
}
-
Paste .env file
+
{$t('application.secret__batch_dot_env')}
diff --git a/src/routes/applications/[id]/secrets/_Secret.svelte b/src/routes/applications/[id]/secrets/_Secret.svelte
index 109c7752a..8adc2726b 100644
--- a/src/routes/applications/[id]/secrets/_Secret.svelte
+++ b/src/routes/applications/[id]/secrets/_Secret.svelte
@@ -12,6 +12,7 @@
import { del } from '$lib/api';
import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';
import { errorNotification } from '$lib/form';
+ import { t } from '$lib/translations';
import { createEventDispatcher } from 'svelte';
import { saveSecret } from './utils';
diff --git a/src/routes/applications/[id]/secrets/utils.ts b/src/routes/applications/[id]/secrets/utils.ts
index a7d24a39e..94afe3b9e 100644
--- a/src/routes/applications/[id]/secrets/utils.ts
+++ b/src/routes/applications/[id]/secrets/utils.ts
@@ -1,6 +1,7 @@
import { toast } from '@zerodevx/svelte-toast';
import { errorNotification } from '$lib/form';
import { post } from '$lib/api';
+import { t } from '$lib/translations';
type Props = {
isNew: boolean;
@@ -23,8 +24,8 @@ export async function saveSecret({
applicationId,
dispatch
}: Props): Promise {
- if (!name) return errorNotification('Name is required.');
- if (!value) return errorNotification('Value is required.');
+ if (!name) return errorNotification(`${t.get('forms.name')} ${t.get('forms.is_required')}`);
+ if (!value) return errorNotification(`${t.get('forms.value')} ${t.get('forms.is_required')}`);
try {
await post(`/applications/${applicationId}/secrets.json`, {
name,
@@ -39,7 +40,7 @@ export async function saveSecret({
value = '';
isBuildSecret = false;
}
- toast.push('Secret saved.');
+ toast.push(t.get('application.secrets.secret_saved'));
} catch ({ error }) {
return errorNotification(error);
}
diff --git a/src/routes/services/[id]/_Services/_MeiliSearch.svelte b/src/routes/services/[id]/_Services/_MeiliSearch.svelte
index ba0b360dd..383889bf2 100644
--- a/src/routes/services/[id]/_Services/_MeiliSearch.svelte
+++ b/src/routes/services/[id]/_Services/_MeiliSearch.svelte
@@ -1,5 +1,6 @@
@@ -7,7 +8,7 @@