replace arrays in translations