Через сколько лет проживания в стране можно получить гражданство Швейцарии?
Ordinary naturalisation in Switzerland is a cantonal competency but regulated by federal legislation. 
On 20 June 2014, the two Chambers of the Swiss Parliament passed the Total Revision of the Federal Law Concerning the Acquisition and Loss of Swiss Nationality ("Révision totale de la loi sur l'acquisition et la perte de la nationalité suisse"). The Law, first introduced in 2011 by the Swiss federal government, aimed to lower, among other requirements, the residency requirement from 12 years to 8 years. During the parliamentary debates and the ensuing disagreements between the more conservative National Council (lower house) and the more liberal Council of States (upper house), the residency requirement was increased to 10 years. The time spent in Switzerland between the ages of 8 and 18 is doubled when counted for purposes of applying for naturalisation, however, an applicant must have spent at least 6 years in Switzerland. The law also requires cantons to set a minimum residency requirement of between 2 and 5 years, as well as requiring applicants to have a permanent residency permit (Autorisation d'établissement), which is commonly referred as a C permit. Additionally, time spent in Switzerland with temporary admission ("Permis d'admission provisoire") is halved counting the years spent in Switzerland for the purposes of naturalisation. The 2014 Total Revision of the Federal Law Concerning the Acquisition and Loss of Swiss Nationality entered into force on 1 January 2018.
Applications for naturalisation submitted prior to the entry into force of the new nationality law will continue to be processed under the 1952 law.
The federal nationality law of 2014 imposes two formal conditions which an applicant for naturalisation must satisfy:
8 years.