before locale changes