diff --git a/core/includes/locale.inc b/core/includes/locale.inc
index e9cd427..8ea02c9 100644
--- a/core/includes/locale.inc
+++ b/core/includes/locale.inc
@@ -781,7 +781,7 @@ function _locale_rebuild_js($langcode = NULL) {
     file_prepare_directory($dir, FILE_CREATE_DIRECTORY);
 
     // Save the file.
-    if (file_unmanaged_save_data($data, $dest)) {
+    if (file_unmanaged_save_data($data, $dest, FILE_EXISTS_REPLACE)) {
       $locale_javascripts[$language->language] = $data_hash;
       // If we deleted a previous version of the file and we replace it with a
       // new one we have an update.
