add locale middleware