feat: internationalize internship application status messages and add Swedish/German language support
This commit is contained in:
@@ -300,10 +300,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
if (result.type === 'success') {
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Başarılı!',
|
||||
title: '{{ __("career.success") ?? "Başarılı!" }}',
|
||||
text: result.data.message,
|
||||
confirmButtonColor: '#e31e24',
|
||||
confirmButtonText: 'Tamam'
|
||||
confirmButtonText: '{{ __("career.ok") ?? "Tamam" }}'
|
||||
}).then(() => {
|
||||
form.reset();
|
||||
});
|
||||
@@ -315,14 +315,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
const errorDiv = document.createElement('div');
|
||||
errorDiv.className = 'invalid-feedback text-start d-block';
|
||||
errorDiv.textContent = result.errors[key][0];
|
||||
input.closest('.col-md-9').appendChild(errorDiv);
|
||||
input.closest('.md\\:col-span-9')?.appendChild(errorDiv) || input.closest('.col-md-9')?.appendChild(errorDiv);
|
||||
}
|
||||
});
|
||||
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Hata!',
|
||||
text: 'Lütfen formdaki hataları kontrol ediniz.',
|
||||
title: '{{ __("career.error") ?? "Hata!" }}',
|
||||
text: '{{ __("career.validation_error") ?? "Lütfen formdaki hataları kontrol ediniz." }}',
|
||||
confirmButtonColor: '#e31e24',
|
||||
});
|
||||
}
|
||||
@@ -335,8 +335,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
console.error('Error:', error);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Hata!',
|
||||
text: error.message || 'Başvuru gönderilirken bir hata oluştu. Lütfen tekrar deneyiniz.',
|
||||
title: '{{ __("career.error") ?? "Hata!" }}',
|
||||
text: error.message || '{{ __("career.error_message") ?? "Başvuru gönderilirken bir hata oluştu. Lütfen tekrar deneyiniz." }}',
|
||||
confirmButtonColor: '#e31e24',
|
||||
});
|
||||
submitBtn.disabled = false;
|
||||
|
||||
Reference in New Issue
Block a user