The Computational Democracy Project

ServicesAbout

Community Contributed Translations

The Polis participation interface automatically detects the browsers preferred language settings, and updates the text it presents accordingly. These translations live in "strings" files, which can be reviewed here:

Adding a translation

New translations can be submitted for a new language by following these steps, and does not require a programmer:

  • Login to (or sign up for) a GitHub account.
  • Create a new strings file
  • Look up the country code for the language you're adding (e.g. Google "French language code")
  • Name the new file <language-code>.js (leave out the <> brackets)
  • Copy the code in the canonical english language strings file over in to your new strings file.
  • Translate the text in the quotation marks ("..."), leaving any brackets ("... {{ }} ...") or code outside of the quotation marks unaltered.
  • (Optional) Down below where it says "Propose new file", you can replace the default description of "Create new file" with something like "Add French translation"; This is helpful, but not strictly necessary.
  • Finally, click the button that says "Propose new file".

While it's helpful to do your best to only edit the text in the string (quotation marks), and leave brackets intact, rest assured that we have automated testing of the codebase to catch any mistakes you might make, and will happily fix them up for you. We'd rather take the time to fix up any technical issues with your submission than to not be able to support a language.

If you have any questions about the best interpretation of a particular word or phrase that you are translating, please reach out to us at hello@compdemocracy.org.

Note: we do a review of all submissions using Google Translate as a sanity check to prevent bad actors from intentionally injecting bad translations.

Updating translations

If you think that some of the existing translations could be improved, you can edit it as follows:

  • Login to (or sign up for) a GitHub account, as described above.
  • Find the corresponding strings file, using the language's language code (as described above).
  • Click on that filename.
  • Click the edit button (the little pen icon in the upper right hand corner of the file view).
  • Make any changes you'd like to propose to the file, following the guidance described above.
  • Add a description of your changes in the provided boxes, and click the "Propose changes" button when done (again, as described above)

The Computational Democracy Project

© 2024 The Computational Democracy Project, a 501c3 nonprofit.

About

HomeAbout
© 2024 The Computational Democracy Project, a 501c3 nonprofit.