Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Add last translations for 2.3.0

Restraybd15d85732ce
diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json
index c8df380b7a..20baecc8a5 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.<br> Add them to your firewall (if applicable).<br><br>You can specify a range of ports, eg: <span class='text-yellow-500 font-bold'>9000-9100</span>",
- "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.<br><span class='text-red-500 font-bold'>Sensitive information</span> 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 38af130c9c..7e6cd737de 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 @@
}
</script>
-<h2 class="title my-6 font-bold">Paste .env file</h2>
+<h2 class="title my-6 font-bold">{$t('application.secret__batch_dot_env')}</h2>
<form on:submit={getValues} class="mb-12 w-full">
<textarea value={batchSecrets} on:change={setBatchValue} class="mb-2 min-h-[200px] w-full" />
<button
class="bg-green-600 hover:bg-green-500 disabled:text-white disabled:opacity-40"
- type="submit">Batch add secrets</button
+ type="submit">{$t('application.batch_secrets')}</button
>
</form>
diff --git a/src/routes/applications/[id]/secrets/_Secret.svelte b/src/routes/applications/[id]/secrets/_Secret.svelte
index 109c7752ae..8adc2726bd 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 a7d24a39ee..94afe3b9e4 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<void> {
- 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 ba0b360ddc..383889bf2d 100644
--- a/src/routes/services/[id]/_Services/_MeiliSearch.svelte
+++ b/src/routes/services/[id]/_Services/_MeiliSearch.svelte
@@ -1,5 +1,6 @@
<script lang="ts">
import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';
+ import { t } from '$lib/translations';
export let service;
</script>
@@ -7,7 +8,7 @@
<div class="title">MeiliSearch</div>
</div>
<div class="grid grid-cols-2 items-center px-10">
- <label for="masterKey">Admin API key</label>
+ <label for="masterKey">{$t('forms.admin_api_key')}</label>
<CopyPasswordField
id="masterKey"
isPasswordField