Add callback on setLocale