By default, the embed code included in a petition's manage section displays the signature form in English. If you need to display the form in another language, you can do so by adding ?preferred_locale=[the code of the language you want to use] to the end of the petition's URL.
For example, if the default code for the English signature form is:
<script src="https://demo.controlshiftlabs.com/assets/embed_sign_form.js" id="controlsfhift-embed-sign-form-script" data-petition-url="https://demo.controlshiftlabs.com/petitions/repair-the-yellow-brick-road-1/embed"></script>
Then to display the form in Spanish, this is the code you'd use:
<script src="https://demo.controlshiftlabs.com/assets/embed_sign_form.js" id="controlsfhift-embed-sign-form-script" data-petition-url="https://demo.controlshiftlabs.com/petitions/repair-the-yellow-brick-road-1/embed?preferred_locale=es"></script>
With that extra piece, the signature form will display like below:
To display the signature form in other languages, use the codes in the table below.
ControlShift Supported Languages
Language | ID Code |
Arabic | ar |
Czech | cs |
Danish | da |
Dutch | nl |
English (Australian) | en |
English (American) | en-US |
English (British) | en-GB |
French | fr |
German (formal / Sie) | de |
German (informal / Du) | de-AT |
German (Swiss) | de-CH |
Greek | el |
Hebrew | he |
Hindi | hi |
Hungarian | hu |
Indonesian | id |
Italian | it |
Japanese | ja |
Korean | ko |
Norwegian | no |
Portuguese | pt |
Polish | pl |
Romanian | ro |
Serbian | sr |
Spanish | es |
Swedish | sv |
Comments
0 comments
Please sign in to leave a comment.