Update french translations

This commit is contained in:
Restray
2022-04-03 19:58:10 +02:00
parent a284928352
commit 8cd561b8cc
3 changed files with 60 additions and 59 deletions

View File

@@ -73,7 +73,7 @@
let loading = false;
async function deleteService() {
const sure = confirm(t.get('application.confirm_to_delete', { name: service.name }));
const sure = confirm($t('application.confirm_to_delete', { name: service.name }));
if (sure) {
loading = true;
try {
@@ -88,7 +88,7 @@
}
}
async function stopService() {
const sure = confirm(t.get('application.confirm_stop', { name: service.name }));
const sure = confirm($t('database.confirm_stop', { name: service.name }));
if (sure) {
loading = true;
try {

View File

@@ -31,6 +31,7 @@
import { errorNotification } from '$lib/form';
import { goto } from '$app/navigation';
import { post } from '$lib/api';
import { t } from '$lib/translations';
const { id } = $page.params;
const from = $page.url.searchParams.get('from');