We welcome and appreciate new contributions.
- We expect contributors to abide by our underlying Code of Conduct . All discussions about this project must be respectful and harassment-free.
- Remember that communication is the lifeblood of any Open Source project. We are all working on this together, and we are all benefiting from this software.
- It's very easy to misunderstand one another in asynchronous, text-based conversations. When in doubt, assume everyone has the best intentions.
- Check if the issue you are going to propose is not duplicate of another issue.
- Open a new issue according to type i.e., if issue is a bug open a new issue by clicking on Bug Report.
- Give a precise and meaningful name of the issue.
- Describe your issue as good as possible that may ease the process of issue-reviewing by a community member.
-
Fork the project and clone it to your local machine. Follow the setup guideline.
-
Always take a pull from the remote repository to your master branch to keep it at sync with the main project(updated repository).
git pull upstream master
-
Create a branch. For details on how to name your branches, see Branch names.
git checkout -b feat/feature-nameThis both creates and checks out that branch in one command. The feature name should provide a (short) description of the issue.
-
Follow the translation rules while translating UI strings
-
Commit your changes and push it to your fork of the repository. For details on how to name your commit, see Commit Message Format.
-
Create Pull Request (PR). Make sure to comment the issue that your PR is supposed to solve.
When creating a PR please take this points as a reminder:
- If there's not yet an issue for your PR please first create an issue with a proposal what you would like to do. This allows us to give feedback and helps you no wasting time and motivation
- Think in iterations (babysteps)
You can always start a PR and if you feel like adding on more things to it, better branch off and create a new i.e. draft-PR - Newly added components should have a unit-test
- If you work on a more complex PR please join our community chat (Invite link at https://bitcoin.design/) to get feedback, discuss the best way to tackle the challenge, and to ensure that there's no duplication of work. It's often faster and nicer to chat or call about questions than to do ping-pong comments in PRs
For better support we recommend these extensions:
Please prefix your branch names with feat/, fix/, chore/, refactor/, docs/ based on the intent of the branch or issue being addressed (see commit message format below).
Alby enforces Conventional Commits Specification
A specification for adding human and machine-readable meaning to commit messages
Alby uses Weblate to manage translations for different locales. If you'd like to contribute, you can add translations here.
[Not to be confused with language translations]
- Translations
Here we again divide strings as per screens (Welcome, Home...) - Common
All the common words and actions (Confirm, Delete, Edit...) - Components
The i18n strings which exist within the components (SitePreferences, QRCodeScanner, PublisherCard...)
✅ Correct
"pay_now": "Pay Now"❌ Wrong
"payNow": "Pay Now"✅ Correct
{
"blue": {
"label": "Blue"
}
}❌ Wrong
{
"blue_label": "Blue"
}✅ Correct
{
"edit": {
"title": "Edit Account",
"label": "Name",
"screen_reader": "Edit account name"
}
}❌ Wrong
{
"edit": {
"title": "Edit Account"
}
}Correct way for this would be:
{
"edit": "Edit Account"
}{
"enable": {
"request1": "Request approval for transactions",
"request2": "Request invoices and lightning information"
}
}{
"common": {}
}You can add a new string if you don't find the suitable text in common. In that case, indent them within "actions":
{
"actions": {
"add_account": "Add account"
}
}Usually, we prefer single words in common, phrases like "Get Started", "Enable Now" can be indented in the above way.
{
"errors": {
"enter_password": "Please enter a new unlock password.",
"confirm_password": "Please confirm your password.",
"mismatched_password": "Passwords don't match."
}
}