Translate surveyjs
This commit is contained in:
		
							parent
							
								
									534f9f3db6
								
							
						
					
					
						commit
						8492022a11
					
				@ -128,6 +128,7 @@ function generateHostPage(
 | 
				
			|||||||
                visibleIf: `{${f('legitimate_interest_activity_specified')}} = "precise" or {${f(
 | 
					                visibleIf: `{${f('legitimate_interest_activity_specified')}} = "precise" or {${f(
 | 
				
			||||||
                    'consent_problems'
 | 
					                    'consent_problems'
 | 
				
			||||||
                )}} = "none"`,
 | 
					                )}} = "none"`,
 | 
				
			||||||
 | 
					                isRequired: true,
 | 
				
			||||||
                choices: [
 | 
					                choices: [
 | 
				
			||||||
                    { value: 'yes', text: 'Tak' },
 | 
					                    { value: 'yes', text: 'Tak' },
 | 
				
			||||||
                    { value: 'no', text: 'Nie' },
 | 
					                    { value: 'no', text: 'Nie' },
 | 
				
			||||||
@ -138,6 +139,7 @@ function generateHostPage(
 | 
				
			|||||||
                type: 'radiogroup',
 | 
					                type: 'radiogroup',
 | 
				
			||||||
                title: `Czy w {Twojej} ocenie wysłanie {Twoich} danych do właściciela domeny  ${host} było konieczne do świadczenia zażądanej przez {Ciebie} usługi drogą elektroniczną?`,
 | 
					                title: `Czy w {Twojej} ocenie wysłanie {Twoich} danych do właściciela domeny  ${host} było konieczne do świadczenia zażądanej przez {Ciebie} usługi drogą elektroniczną?`,
 | 
				
			||||||
                name: f('was_processing_necessary'),
 | 
					                name: f('was_processing_necessary'),
 | 
				
			||||||
 | 
					                isRequired: true,
 | 
				
			||||||
                ...defaultValue('was_processing_necessary'),
 | 
					                ...defaultValue('was_processing_necessary'),
 | 
				
			||||||
                visibleIf: `{${f('legal_basis_type')}} = "legitimate_interest" or {${f(
 | 
					                visibleIf: `{${f('legal_basis_type')}} = "legitimate_interest" or {${f(
 | 
				
			||||||
                    'present'
 | 
					                    'present'
 | 
				
			||||||
@ -156,6 +158,10 @@ export default function generateSurveyQuestions(hosts: string[]) {
 | 
				
			|||||||
    return {
 | 
					    return {
 | 
				
			||||||
        showQuestionNumbers: 'off',
 | 
					        showQuestionNumbers: 'off',
 | 
				
			||||||
        showProgressBar: 'top',
 | 
					        showProgressBar: 'top',
 | 
				
			||||||
 | 
					        pagePrevText: 'Wróć',
 | 
				
			||||||
 | 
					        pageNextText: 'Dalej',
 | 
				
			||||||
 | 
					        completeText: 'Dalej',
 | 
				
			||||||
 | 
					        locale: 'pl',
 | 
				
			||||||
        clearInvisibleValues: 'onHidden',
 | 
					        clearInvisibleValues: 'onHidden',
 | 
				
			||||||
        pages: [
 | 
					        pages: [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
				
			|||||||
@ -173,6 +173,10 @@ h1 {
 | 
				
			|||||||
    margin-bottom: 0.5rem;
 | 
					    margin-bottom: 0.5rem;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.sv_q_radiogroup_label {
 | 
				
			||||||
 | 
					    cursor: pointer;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.sv_nav {
 | 
					.sv_nav {
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    margin: 2rem 0;
 | 
					    margin: 2rem 0;
 | 
				
			||||||
@ -180,7 +184,8 @@ h1 {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.sv_prev_btn,
 | 
					.sv_prev_btn,
 | 
				
			||||||
.sv_next_btn {
 | 
					.sv_next_btn,
 | 
				
			||||||
 | 
					.sv_complete_btn {
 | 
				
			||||||
    border: 0;
 | 
					    border: 0;
 | 
				
			||||||
    outline: 0;
 | 
					    outline: 0;
 | 
				
			||||||
    font-size: 0.875rem !important;
 | 
					    font-size: 0.875rem !important;
 | 
				
			||||||
@ -189,7 +194,8 @@ h1 {
 | 
				
			|||||||
    cursor: pointer;
 | 
					    cursor: pointer;
 | 
				
			||||||
    min-width: 100px;
 | 
					    min-width: 100px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.sv_next_btn {
 | 
					.sv_next_btn,
 | 
				
			||||||
 | 
					.sv_complete_btn {
 | 
				
			||||||
    background-color: #000 !important;
 | 
					    background-color: #000 !important;
 | 
				
			||||||
    font-weight: 800 !important;
 | 
					    font-weight: 800 !important;
 | 
				
			||||||
    padding: 0 1.5rem;
 | 
					    padding: 0 1.5rem;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user