Accorcing to this article vba works internally with English, and Excel translates to the destination language at runtime. You should be able to do this with the formula
property of the cell instead of the .value
.
sheet.cell(r,c).Formula = "=IF(A1=B1, "i18n", "#error")"
See also Internationally Valid Excel Formula.