Skip to content

Commit 4c18673

Browse files
committed
feat(localization): add Arabic translations and update deleted item snackbar message
- Add Arabic translations for item action confirmations in app_ar.arb - Update app_en.arb to include item deletion snackbar message - Modify existing confirmation messages for consistency across both languages
1 parent edabb9c commit 4c18673

File tree

2 files changed

+59
-32
lines changed

2 files changed

+59
-32
lines changed

lib/l10n/arb/app_ar.arb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,5 +2776,19 @@
27762776
"deleteItemContent": "هل أنت متأكد أنك تريد حذف هذا العنصر؟.",
27772777
"@deleteItemContent": {
27782778
"description": "Confirmation dialog content for deleting an item."
2779+
},
2780+
"itemDeletedSnackbar": "تم حذف {itemType} \"{itemName}\".",
2781+
"@itemDeletedSnackbar": {
2782+
"description": "Snackbar message shown after an item is deleted, with an undo option.",
2783+
"placeholders": {
2784+
"itemType": {
2785+
"type": "String",
2786+
"example": "Headline"
2787+
},
2788+
"itemName": {
2789+
"type": "String",
2790+
"example": "Breaking News Story"
2791+
}
2792+
}
27792793
}
27802794
}

lib/l10n/arb/app_en.arb

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,36 +2742,49 @@
27422742
"description": "Subtitle for the breaking news filter switch"
27432743
},
27442744
"publishItemTitle": "Republish Item?",
2745-
"@publishItemTitle": {
2746-
"description": "Confirmation dialog title for publishing an item."
2747-
},
2748-
"publishItemContent": "Are you sure you want to republish this item? It will become publicly visible.",
2749-
"@publishItemContent": {
2750-
"description": "Confirmation dialog content for publishing an item."
2751-
},
2752-
"archiveItemTitle": "Archive Item?",
2753-
"@archiveItemTitle": {
2754-
"description": "Confirmation dialog title for archiving an item."
2755-
},
2756-
"archiveItemContent": "Are you sure you want to archive this item? It will be hidden from public view.",
2757-
"@archiveItemContent": {
2758-
"description": "Confirmation dialog content for archiving an item."
2759-
},
2760-
"restoreItemTitle": "Restore Item?",
2761-
"@restoreItemTitle": {
2762-
"description": "Confirmation dialog title for restoring an item."
2763-
},
2764-
"restoreItemContent": "Are you sure you want to restore this item? It will become active and publicly visible again.",
2765-
"@restoreItemContent": {
2766-
"description": "Confirmation dialog content for restoring an item."
2767-
},
2768-
"deleteItemTitle": "Delete Item?",
2769-
"@deleteItemTitle": {
2770-
"description": "Confirmation dialog title for deleting an item."
2771-
},
2772-
"deleteItemContent": "Are you sure you want to delete this item?.",
2773-
"@deleteItemContent": {
2774-
"description": "Confirmation dialog content for deleting an item."
2775-
}
2776-
2745+
"@publishItemTitle": {
2746+
"description": "Confirmation dialog title for publishing an item."
2747+
},
2748+
"publishItemContent": "Are you sure you want to republish this item? It will become publicly visible.",
2749+
"@publishItemContent": {
2750+
"description": "Confirmation dialog content for publishing an item."
2751+
},
2752+
"archiveItemTitle": "Archive Item?",
2753+
"@archiveItemTitle": {
2754+
"description": "Confirmation dialog title for archiving an item."
2755+
},
2756+
"archiveItemContent": "Are you sure you want to archive this item? It will be hidden from public view.",
2757+
"@archiveItemContent": {
2758+
"description": "Confirmation dialog content for archiving an item."
2759+
},
2760+
"restoreItemTitle": "Restore Item?",
2761+
"@restoreItemTitle": {
2762+
"description": "Confirmation dialog title for restoring an item."
2763+
},
2764+
"restoreItemContent": "Are you sure you want to restore this item? It will become active and publicly visible again.",
2765+
"@restoreItemContent": {
2766+
"description": "Confirmation dialog content for restoring an item."
2767+
},
2768+
"deleteItemTitle": "Delete Item?",
2769+
"@deleteItemTitle": {
2770+
"description": "Confirmation dialog title for deleting an item."
2771+
},
2772+
"deleteItemContent": "Are you sure you want to delete this item?.",
2773+
"@deleteItemContent": {
2774+
"description": "Confirmation dialog content for deleting an item."
2775+
},
2776+
"itemDeletedSnackbar": "{itemType} \"{itemName}\" deleted.",
2777+
"@itemDeletedSnackbar": {
2778+
"description": "Snackbar message shown after an item is deleted, with an undo option.",
2779+
"placeholders": {
2780+
"itemType": {
2781+
"type": "String",
2782+
"example": "Headline"
2783+
},
2784+
"itemName": {
2785+
"type": "String",
2786+
"example": "Breaking News Story"
2787+
}
2788+
}
2789+
}
27772790
}

0 commit comments

Comments
 (0)