diff --git a/_locales/ar/messages.json b/_locales/ar/messages.json index 17dcb76f..b111ae0b 100644 --- a/_locales/ar/messages.json +++ b/_locales/ar/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/bg/messages.json b/_locales/bg/messages.json index f7c54281..78a8ca5a 100644 --- a/_locales/bg/messages.json +++ b/_locales/bg/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json index 7a15bf54..d87b9af0 100644 --- a/_locales/cs/messages.json +++ b/_locales/cs/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/da/messages.json b/_locales/da/messages.json index c699c955..5fd03a8b 100644 --- a/_locales/da/messages.json +++ b/_locales/da/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 73181b23..11a4e652 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "Ersetzte Frameworks", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "Bist du sicher, dass du die Statistiken löschen möchtest?", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/el/messages.json b/_locales/el/messages.json index 27b8f1b4..3bb2fabd 100644 --- a/_locales/el/messages.json +++ b/_locales/el/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/en_CA/messages.json b/_locales/en_CA/messages.json index 2d6f7886..592fa7cf 100644 --- a/_locales/en_CA/messages.json +++ b/_locales/en_CA/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "Replaced frameworks", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "Are you sure you want to delete the statistics?", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/en_GB/messages.json b/_locales/en_GB/messages.json index a86d53cd..994495f8 100644 --- a/_locales/en_GB/messages.json +++ b/_locales/en_GB/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "Replaced frameworks", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "Are you sure you want to delete the statistics?", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json index 1075d00c..2861224d 100644 --- a/_locales/en_US/messages.json +++ b/_locales/en_US/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "Replaced frameworks", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "Are you sure you want to delete the statistics?", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/eo/messages.json b/_locales/eo/messages.json index e6f91db0..5ff517ba 100644 --- a/_locales/eo/messages.json +++ b/_locales/eo/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/es/messages.json b/_locales/es/messages.json index f8e6d586..b5e899c1 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/et/messages.json b/_locales/et/messages.json index b3260d7d..c406c2e0 100644 --- a/_locales/et/messages.json +++ b/_locales/et/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json index de23cfea..fa624b1c 100644 --- a/_locales/fi/messages.json +++ b/_locales/fi/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index ff6e41b4..fa3f4c3d 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/he/messages.json b/_locales/he/messages.json index 74628de6..77ea67e3 100644 --- a/_locales/he/messages.json +++ b/_locales/he/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/hu/messages.json b/_locales/hu/messages.json index 6c2d6ea8..5c37263e 100644 --- a/_locales/hu/messages.json +++ b/_locales/hu/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/id/messages.json b/_locales/id/messages.json index d1db68fe..9a3000dd 100644 --- a/_locales/id/messages.json +++ b/_locales/id/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/is/messages.json b/_locales/is/messages.json index 96fb4087..6251bfd5 100644 --- a/_locales/is/messages.json +++ b/_locales/is/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 29794400..a517a597 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index 719a2f72..71053680 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/ko/messages.json b/_locales/ko/messages.json index 505eac9d..9ef559dc 100644 --- a/_locales/ko/messages.json +++ b/_locales/ko/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/lb/messages.json b/_locales/lb/messages.json index 0ecfb8da..889fe12a 100644 --- a/_locales/lb/messages.json +++ b/_locales/lb/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/nb/messages.json b/_locales/nb/messages.json index 54d2dff9..cbea4bb9 100644 --- a/_locales/nb/messages.json +++ b/_locales/nb/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index d0535c21..5a7ec547 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json index 38f627b2..722694fe 100644 --- a/_locales/pl/messages.json +++ b/_locales/pl/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index 62e96155..c7ac9b20 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json index 127a5053..c34b2106 100644 --- a/_locales/pt_PT/messages.json +++ b/_locales/pt_PT/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/ro/messages.json b/_locales/ro/messages.json index d514e868..4a604fd9 100644 --- a/_locales/ro/messages.json +++ b/_locales/ro/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 8f35907c..039c0126 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json index f5a603bd..8d244084 100644 --- a/_locales/sr/messages.json +++ b/_locales/sr/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index 43c70db3..c377908b 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/tl/messages.json b/_locales/tl/messages.json index f47db87f..9d73600c 100644 --- a/_locales/tl/messages.json +++ b/_locales/tl/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json index e0822518..a3f0029f 100644 --- a/_locales/tr/messages.json +++ b/_locales/tr/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 7dcdc502..3f60b52a 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index d6fbbcb7..5f1c2714 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -178,5 +178,9 @@ "labelInjectedFrameworks": { "message": "", "description": "Followed by a number of injections within a specific period." + }, + "dialogConfirmDeleteStatistics": { + "message": "", + "description": "Are you sure you want to delete the statistics?" } } diff --git a/pages/statistics/statistics.js b/pages/statistics/statistics.js index 162c8655..f1468498 100644 --- a/pages/statistics/statistics.js +++ b/pages/statistics/statistics.js @@ -183,7 +183,8 @@ statistics._handlerDateRange = function ({ target }) { }; statistics._deleteStatistic = function () { - if (confirm('Are you sure you want to delete the statistics?')) { + let text = chrome.i18n.getMessage("dialogConfirmDeleteStatistics"); + if (confirm(text)) { chrome.storage.local.set({ [Setting.INTERNAL_STATISTICS_DATA]: {}, });