Script to replace string values in one column with new values in a new column

I need language names from one column (English, Italian, German, French) translated (Anglais, Francais, Italian, Allemand) and pasted into the column next to it for all rows of the column. Here is the code I have tried:

function runReplaceInSheet(){
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
var lastRow = sheet.getLastRow();
var range = sheet.getRange(2, 6, lastRow-1, 1)
var outRange = sheet.getRange(2, 7, lastRow-1, 1)
var data = range.getValues

//    Replace Languages According to Native Language

    replaceInSheet(range,"English","Anglais");
    replaceInSheet(range,"French","Français");
    replaceInSheet(range,"Italian","Italien");
    replaceInSheet(range,"German","Allemand");

    }

    function replaceInSheet(range, to_replace, replace_with) {

      var data = range.getValues

      //loop over the rows in the array
      for(var row in data){

        //use Array.map to execute a replace call on each of the cells in the row.
        var replaced_values = values[row].map(function(original_value){
          return original_value.toString().replace(to_replace,replace_with);
        });

        //replace the original row values with the replaced values
        values[row] = replaced_values;
      }

      //write the updated values to the sheet
      range.setValues(data);
    }