Thank you for considering contributing to bitcoin.rocks! Please review this document before suggesting new content or submitting a pull request.
If you are not technical, you can still contribute! You can suggest new content like a new homepage section, adding a new link to an existing section, or an entirely new page.
You can also help by:
- sharing bitcoin.rocks when someone asks you about bitcoin
- putting our free bitcoin stickers in public
- reporting a bug, typo, or other issue here
Before you spend your time working on a significant new feature, please first create a feature request.
This will protect you from having a pull request declined after investing a lot of time and effort into a new feature.
If you wish to work on a translation, please follow our Translations guide below.
Before starting work on a translation, check the open translation discussions to see if other people are already translating content into your language. If a discussion for your language already exists, join that discussion and let them know you'd like to help translate.
If a discussion doesn't exist for your language, make a new one.
- A laptop or desktop computer
- the GitHub Desktop app
- Atom text editor (or any other text editor)
Let's get started!
- Go to https://github.com/sovenor/bitcoin-rocks
- Click the "Fork" button at the top of the page.
- Follow the steps and click the green button to create your fork.
- Open the GitHub Desktop app
- Go to File > Clone Repository...
- Choose bitcoin-rocks from the list and click the blue "Clone" button. Make note of where the local repository files will be stored and change that location if necessary.
The files are now on your computer and can be edited.
- Go to your local files and open bitcoin-rocks > i18n
- Duplicate the "en" folder.
- Rename the duplicated folder to the 2 letter language code that corresponds to your language. For example, if you are translating into French you can rename it to "fr".
Now you can begin translating the website content from English to your language.
- Open the files in Atom text editor (or any other text editor)
- Go to bitcoin-rocks > i18n > "your language code" and choose the page you want to translate.
- At the top of the file, change the "last-updated" date to today's date in YYYY-MM-DD format. Change the "locale" to to the 2 letter language code that corresponds to your language. You can also optionally add your name in the list of authors.
- Replace the content on the right side of the files with the translated text Do not change the content on the left side of the files. Do not delete any quotation marks or commas.
- When a file has been translated, rename it so it matches the 2 letter language code that corresponds to your language. For example, if the file was previously "404_en.json" and you are translating it into French, it should be renamed to "404_fr.json"
Once you've completed at least one page of translations, you can submit it for approval.
- Open the GitHub Desktop app.
- In the bottom left, enter a short title (summary) and a description of what you did. For example, your title could be "Translated 404_fr.json"
- Click "Commit to main"
- Click "Push to origin"
Your changes are now saved on GitHub in your forked repo. Now it's time to submit a pull request so your changes can be applied to the live website!
- Go back to https://github.com/sovenor/bitcoin-rocks
- In the yellow banner above the list of files, click the green "Compare & pull request" button.
- Follow the steps to create your pull request and make sure "Allow edits from maintainers" is enabled.
- When you're ready, click "Create Pull Request" to submit it for review.
One of the maintainers will review your translations and make edits if necessary. If approved, your translations will be accessible on the live website! You will be notified in GitHub when your translations are approved.
Thank you for helping to spread Bitcoin adoption by translating our content into more languages!
If you have questions, please submit them here.
Thank you for your interest in contributing to bitcoin.rocks! Together, we can improve this global, educational website and help spread bitcoin.