Help translate Coggle into your native language!
This repository holds translations of Coggle's interface into different languages, what's in the production branch should match what's live on the site – so if you see a mistake, submit a pull request to fix it!
We use l20n for our translations, so for a guide to the syntax of our l20n files you can read the l20n tutorial. We use some html in our translations,
If you've found a problem with an existing translation, please open a new issue to report it!
We accept pull-requests to the master
branch, which we'll then test and merge
into the production
branch (at which point they will automatically be
deployed to the live site).
To make a pull-request you'll first have to fork this repository, make and commit your changes back to github. If you're new to Github here's a great guide to the process.
To create a new language, in your own fork of the repository:
-
Create a new file, named after the language code for the language you want to translate, for example the British-English translation is in a file called
en-GB.l20n
. -
Add your language to the locales list in the
manifest.json
file. -
Start adding translations to your file!
-
Then submit a pull request for us to add the language. You can do this as soon as your file has any translations (it doesn't have to be complete!). Before your pull-request can be accepted you need to agree to our contributor agreement, which gives us the necessary permissions to use your translations on the live site.
-
As you make and commit new changes, they will appear on the existing pull request (until that is merged), after that you should open a new pull requests to update the main Coggle/translations repository with your changes. You may have to sync your fork to pull in other people's changes, too.
If there's a specific bit of text in Coggle that you want to translate, first find that in the en-GB or en-US translations (which we maintain), then copy and paste it into your own translation file.
For example, to translate the "Unleash Your Creativity" section from the homepage, you would copy this:
<index-description """
<h1>Unleash your creativity</h1>
<p>
Produce beautiful notes, quickly and easily.
Share them with friends and colleagues to enhance your ideas collaboratively.
All for free!
</p>
<p>
<a><span><b>Get started now! </b></span></a>
<a><span>Or, read more.</span></a>
</p>
""">
This is a fairly complex translation element, with bits of html mixed in - when you translate you need to leave the same html elements in there, but you can change any of the text.
If you want to contribute but have any questions / don't know how to get started, just drop us an email at [email protected], and we'll do our best to get you started!