switch locale component for frontend view