Skip to content

Commit

Permalink
dynamic translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Axxiar committed Dec 30, 2024
1 parent 81db15b commit 45f5ee2
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion frontend/messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@
"enterYourEmail": "أدخل عنوان بريدك الإلكتروني أدناه، وسنرسل لك تعليمات لتعيين كلمة مرور جديدة",
"send": "إرسال",
"goBackToLogin": "العودة إلى تسجيل الدخول",
"riskAcceptanceReviewMessage": "هذا القبول للمخاطر بانتظار المعالجة. تذكر مراجعته قبل الموافقة أو الرفض، لن تتمكن من العودة.",
"riskAcceptanceValidatingReviewMessage": "هذا القبول للمخاطر بانتظار المعالجة. تذكر مراجعته قبل الموافقة أو الرفض، لن تتمكن من العودة.",
"validate": "تحقق",
"reject": "رفض",
"revoke": "إلغاء",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@
"enterYourEmail": "Zadejte svou e-mailovou adresu níže a zašleme vám instrukce pro nastavení nového hesla",
"send": "Odeslat",
"goBackToLogin": "Vrátit se k přihlášení",
"riskAcceptanceReviewMessage": "Toto přijetí rizika čeká na zpracování. Nezapomeňte jej před schválením nebo odmítnutím zkontrolovat, později už to nebudete moci změnit.",
"riskAcceptanceValidatingReviewMessage": "Toto přijetí rizika čeká na zpracování. Nezapomeňte jej před schválením nebo odmítnutím zkontrolovat, později už to nebudete moci změnit.",
"validate": "Ověřit",
"reject": "Odmítnout",
"revoke": "Odebrat",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Geben Sie unten Ihre E-Mail-Adresse ein, und wir senden Ihnen Anweisungen zum Festlegen eines neuen Passworts",
"send": "Senden",
"goBackToLogin": "Zurück zur Anmeldung",
"riskAcceptanceReviewMessage": "Diese Risikoakzeptanz wartet auf die Bearbeitung. Denken Sie daran, sie zu überprüfen, bevor Sie sie validieren oder ablehnen, Sie können nicht zurückgehen.",
"riskAcceptanceValidatingReviewMessage": "Diese Risikoakzeptanz wartet auf die Bearbeitung. Denken Sie daran, sie zu überprüfen, bevor Sie sie validieren oder ablehnen, Sie können nicht zurückgehen.",
"validate": "Validieren",
"reject": "Ablehnen",
"revoke": "Widerrufen",
Expand Down
4 changes: 3 additions & 1 deletion frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
"acceptedAt": "Accepted at",
"rejectedAt": "Rejected at",
"revokedAt": "Revoked at",
"created": "Created",
"submitted": "Submitted",
"rejected": "Rejected",
"revoked": "Revoked",
Expand Down Expand Up @@ -457,7 +458,8 @@
"enterYourEmail": "Enter your email address below, and we'll send instructions for setting a new one",
"send": "Send",
"goBackToLogin": "Go back to login",
"riskAcceptanceReviewMessage": "This risk acceptance is awaiting processing. Remember to review it before validating or rejecting it, you will not be able to go back.",
"riskAcceptanceSubmittingReviewMessage": "Remember to review approver before submitting",
"riskAcceptanceValidatingReviewMessage": "This risk acceptance is awaiting processing. Remember to review it before validating or rejecting it, you will not be able to go back.",
"validate": "Validate",
"reject": "Reject",
"revoke": "Revoke",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Ingrese su dirección de correo electrónico a continuación y le enviaremos instrucciones para establecer una nueva",
"send": "Enviar",
"goBackToLogin": "Volver al inicio de sesión",
"riskAcceptanceReviewMessage": "Esta aceptación de riesgo está pendiente de procesamiento. Recuerde revisarla antes de validarla o rechazarla, no podrá volver atrás.",
"riskAcceptanceValidatingReviewMessage": "Esta aceptación de riesgo está pendiente de procesamiento. Recuerde revisarla antes de validarla o rechazarla, no podrá volver atrás.",
"validate": "Validar",
"reject": "Rechazar",
"revoke": "Revocar",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
"enterYourEmail": "Entrez votre adresse e-mail ci-dessous et nous vous enverrons des instructions pour en définir un nouveau",
"send": "Envoyer",
"goBackToLogin": "Revenir à la page de connexion",
"riskAcceptanceReviewMessage": "Cette acceptation de risque est en attente de traitement. Pensez à la consulter avant de la valider ou de la rejeter, vous ne pourrez pas revenir en arrière.",
"riskAcceptanceValidatingReviewMessage": "Cette acceptation de risque est en attente de traitement. Pensez à la consulter avant de la valider ou de la rejeter, vous ne pourrez pas revenir en arrière.",
"validate": "Valider",
"reject": "Rejeter",
"revoke": "Révoquer",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "नीचे अपना ईमेल पता दर्ज करें, और हम आपको नया पासवर्ड सेट करने के निर्देश भेजेंगे",
"send": "भेजें",
"goBackToLogin": "लॉगिन पर वापस जाएं",
"riskAcceptanceReviewMessage": "यह जोखिम स्वीकृति प्रसंस्करण के लिए प्रतीक्षारत है। इसे मान्य करने या अस्वीकार करने से पहले इसकी समीक्षा करना याद रखें, आप वापस नहीं जा सकेंगे।",
"riskAcceptanceValidatingReviewMessage": "यह जोखिम स्वीकृति प्रसंस्करण के लिए प्रतीक्षारत है। इसे मान्य करने या अस्वीकार करने से पहले इसकी समीक्षा करना याद रखें, आप वापस नहीं जा सकेंगे।",
"validate": "मान्य करें",
"reject": "अस्वीकार करें",
"revoke": "रद्द करें",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Inserisci il tuo indirizzo email per ricevere le istruzioni per impostare una nuova password",
"send": "Invia",
"goBackToLogin": "Torna al login",
"riskAcceptanceReviewMessage": "L'accettazione di questo rischio è in valutazione. Ricordati di revisionarla con attenzione prima di convalidarla o/o rifiutarla. Dopo l'accettazione o il rigiuto non sarà possibile tornare indietro.",
"riskAcceptanceValidatingReviewMessage": "L'accettazione di questo rischio è in valutazione. Ricordati di revisionarla con attenzione prima di convalidarla o/o rifiutarla. Dopo l'accettazione o il rigiuto non sarà possibile tornare indietro.",
"validate": "Convalida",
"reject": "Rifiuta",
"revoke": "Revoca",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Voer hieronder je e-mailadres in, en we sturen instructies om een nieuw wachtwoord in te stellen",
"send": "Versturen",
"goBackToLogin": "Ga terug naar inloggen",
"riskAcceptanceReviewMessage": "Deze risicoacceptatie wacht op verwerking. Vergeet niet deze te beoordelen voordat je deze valideert of afwijst, je kunt niet meer terug.",
"riskAcceptanceValidatingReviewMessage": "Deze risicoacceptatie wacht op verwerking. Vergeet niet deze te beoordelen voordat je deze valideert of afwijst, je kunt niet meer terug.",
"validate": "Valideren",
"reject": "Afwijzen",
"revoke": "Intrekken",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Wpisz swój adres e-mail poniżej, a wyślemy instrukcje dotyczące ustawienia nowego hasła",
"send": "Wyślij",
"goBackToLogin": "Wróć do logowania",
"riskAcceptanceReviewMessage": "Ta akceptacja ryzyka oczekuje na przetworzenie. Pamiętaj, aby ją przejrzeć przed zatwierdzeniem lub odrzuceniem, nie będzie można wrócić.",
"riskAcceptanceValidatingReviewMessage": "Ta akceptacja ryzyka oczekuje na przetworzenie. Pamiętaj, aby ją przejrzeć przed zatwierdzeniem lub odrzuceniem, nie będzie można wrócić.",
"validate": "Zatwierdź",
"reject": "Odrzuć",
"revoke": "Cofnij",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Digite seu endereço de e-mail abaixo e enviaremos instruções para definir uma nova senha",
"send": "Enviar",
"goBackToLogin": "Voltar para o login",
"riskAcceptanceReviewMessage": "Esta aceitação de risco está aguardando processamento. Lembre-se de revisá-la antes de validá-la ou rejeitá-la, pois você não poderá voltar atrás.",
"riskAcceptanceValidatingReviewMessage": "Esta aceitação de risco está aguardando processamento. Lembre-se de revisá-la antes de validá-la ou rejeitá-la, pois você não poderá voltar atrás.",
"validate": "Validar",
"reject": "Rejeitar",
"revoke": "Revogar",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Introduceți adresa dvs. de e-mail mai jos și vă vom trimite instrucțiuni pentru a seta una nouă",
"send": "Trimite",
"goBackToLogin": "Înapoi la autentificare",
"riskAcceptanceReviewMessage": "Această acceptare a riscului așteaptă procesarea. Amintiți-vă să o revizuiți înainte de a o valida sau respinge, nu veți putea reveni.",
"riskAcceptanceValidatingReviewMessage": "Această acceptare a riscului așteaptă procesarea. Amintiți-vă să o revizuiți înainte de a o valida sau respinge, nu veți putea reveni.",
"validate": "Validați",
"reject": "Respingeți",
"revoke": "Revocați",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "Ange din e-postadress nedan, så skickar vi instruktioner för att ställa in ett nytt",
"send": "Skicka",
"goBackToLogin": "Gå tillbaka till inloggning",
"riskAcceptanceReviewMessage": "Denna riskacceptans väntar på bearbetning. Kom ihåg att granska den innan du validerar eller avvisar den; du kommer inte att kunna ångra dig.",
"riskAcceptanceValidatingReviewMessage": "Denna riskacceptans väntar på bearbetning. Kom ihåg att granska den innan du validerar eller avvisar den; du kommer inte att kunna ångra dig.",
"validate": "Validera",
"reject": "Avvisa",
"revoke": "Återkalla",
Expand Down
2 changes: 1 addition & 1 deletion frontend/messages/ur.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"enterYourEmail": "نیچے اپنا ای میل پتہ درج کریں، اور ہم آپ کو نیا پاس ورڈ سیٹ کرنے کے لیے ہدایات بھیجیں گے",
"send": "بھیجیں",
"goBackToLogin": "لاگ ان پر واپس جائیں",
"riskAcceptanceReviewMessage": "یہ خطرے کی منظوری کارروائی کے لیے زیر التواء ہے۔ اسے درست کرنے یا مسترد کرنے سے پہلے اس کا جائزہ لینا یاد رکھیں، آپ واپس نہیں جا سکیں گے۔",
"riskAcceptanceValidatingReviewMessage": "یہ خطرے کی منظوری کارروائی کے لیے زیر التواء ہے۔ اسے درست کرنے یا مسترد کرنے سے پہلے اس کا جائزہ لینا یاد رکھیں، آپ واپس نہیں جا سکیں گے۔",
"validate": "درست کریں",
"reject": "مسترد کریں",
"revoke": "منسوخ کریں",
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/lib/components/DetailView/DetailView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@
</script>

<div class="flex flex-col space-y-2">
{#if data.data.state === 'Created'}
{#if data.data.state === m.created()}
<div
class="flex flex-row space-x-4 items-center bg-yellow-100 rounded-container-token shadow px-6 py-2 mb-2 justify-between"
>
<div class="text-yellow-900">
{'Remember to review approver before submitting'}
{m.riskAcceptanceSubmittingReviewMessage()}
</div>
<div class="flex space-x-2">
<button
Expand All @@ -230,7 +230,7 @@
on:keydown={(_) => modalConfirm(data.data.id, data.data.name, '?/submit')}
class="btn variant-filled-secondary"
>
<i class="fas fa-paper-plane mr-2" /> {'Submit'}</button
<i class="fas fa-paper-plane mr-2" /> {m.submit()}</button
>
</div>
</div>
Expand All @@ -239,7 +239,7 @@
class="flex flex-row space-x-4 items-center bg-yellow-100 rounded-container-token shadow px-6 py-2 mb-2 justify-between"
>
<div class="text-yellow-900">
{m.riskAcceptanceReviewMessage()}
{m.riskAcceptanceValidatingReviewMessage()}
</div>
<div class="flex space-x-2">
<button
Expand Down

0 comments on commit 45f5ee2

Please sign in to comment.