The Republic attempted to modernize and centralize the Swiss Confederation .
In 1798 , the French under Napoleon I invaded Switzerland and set up the Helvetic Republic .
The Republic attempted to modernize and centralize the Switzerland   .
In 1798 , the French under Napoleon I invaded Switzerland and set up the Helvetic Republic .