Skip to content

Commit

Permalink
fix: use translation text for deleting subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Feb 18, 2024
1 parent f378bcb commit 074a909
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function handleFileSelect(event) {
}

function deleteSubscription(id) {
if (confirm("Are you sure you want to delete this subscription?")) {
if (confirm(translate('confirm_delete_subscription'))) {
fetch(`endpoints/subscription/delete.php?id=${id}`, {
method: 'DELETE',
})
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "Fehler beim Laden des Abonnements",
edit_subscription: "Abonnement bearbeiten",
add_subscription: "Abonnement hinzufügen",
confirm_delete_subscription: "Sind Sie sicher, dass Sie dieses Abonnement löschen möchten?",
// Settings
network_response_error: "Netzwerkfehler",
failed_add_member: "Hinzufügen von Mitglied fehlgeschlagen",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "Απέτυχε η φόρτωση της συνδρομής",
edit_subscription: "Επεξεργασία συνδρομής",
add_subscription: "Προσθήκη συνδρομής",
confirm_delete_subscription: "Είστε σίγουρος ότι θέλετε να διαγράψετε αυτή τη συνδρομή;",
// Settings
network_response_error: "Η ανταπόκριση του δικτύου δεν ήταν εντάξει",
failed_add_member: "Αποτυχία προσθήκης μέλους",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "Failed to load subscription",
edit_subscription: "Edit subscription",
add_subscription: "Add subscription",
confirm_delete_subscription: "Are you sure you want to delete this subscription?",
// Settings
network_response_error: "Network response was not ok",
failed_add_member: "Failed to add member",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "Error al cargar la suscripción",
edit_subscription: "Editar suscripción",
add_subscription: "Añadir suscripción",
confirm_delete_subscription: "¿Estás seguro de que quieres eliminar esta suscripción?",
// Settings
network_response_error: "Error en la respuesta de la red",
failed_add_member: "Error al añadir miembro",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "Impossible de charger l'abonnement",
edit_subscription: "Modifier l'abonnement",
add_subscription: "Ajouter un abonnement",
confirm_delete_subscription: "Êtes-vous sûr de vouloir supprimer cet abonnement ?",
// Paramètres
network_response_error: "La réponse du réseau n'était pas correcte",
failed_add_member: "Échec de l'ajout du membre",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/jp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "定期購入の読み込みに失敗しました",
edit_subscription: "定期購入の編集",
add_subscription: "定期購入の追加",
confirm_delete_subscription: "この定期購入を削除してもよろしいですか?",
// Settings
network_response_error: "ネットワークの応答異常",
failed_add_member: "世帯員の追加に失敗",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
'failed_to_load_subscription': 'Falha ao carregar a subscrição',
'edit_subscription': 'Editar subscrição',
'add_subscription': 'Adicionar subscrição',
'confirm_delete_subscription': 'Tem a certeza de que deseja eliminar esta subscrição?',
// Settings
'network_response_error': 'Erro de resposta de rede',
'failed_add_member': 'Falha ao adicionar membro',
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
failed_to_load_subscription: "Abonelik yüklenemedi",
edit_subscription: "Aboneliği Düzenle",
add_subscription: "Abonelik Ekle",
confirm_delete_subscription: "Bu aboneliği silmek istediğinizden emin misiniz?",
// Ayarlar
network_response_error: "Ağ yanıtı kabul edilmedi",
failed_add_member: "Üye eklenemedi",
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/zh_cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
'failed_to_load_subscription': "加载订阅失败",
'edit_subscription': "编辑订阅",
'add_subscription': "添加订阅",
'confirm_delete_subscription': "您确定要删除此订阅吗?",
// Settings
'network_response_error': "网络响应不正常",
'failed_add_member': '添加成员失败',
Expand Down
1 change: 1 addition & 0 deletions scripts/i18n/zh_tw.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let i18n = {
'failed_to_load_subscription': "讀取訂閱失敗",
'edit_subscription': "編輯訂閱",
'add_subscription': "新增訂閱",
'confirm_delete_subscription': "您確定要刪除此訂閱嗎?",
// Settings
'network_response_error': "網路無回應",
'failed_add_member': '新增成員失敗',
Expand Down

0 comments on commit 074a909

Please sign in to comment.