When I'm staying for a few days in a different part of my country (Italy) I end up switching to the local phrase construction pattern if it's notably different from my native one. Accent not so much, I guess it takes quite a long time. Words are easy to swap (like truck/lorry in English) and pronunciation quite easy too (change of vowel sounds in my case.) BTW, none of this involves speaking dialects, it's all Italian with regional differences that everybody understand.