Thank you for considering contributing to this project! We appreciate your effort in helping improve it. Below are the guides for contributing new languages and features.
If you would like to add support for a new language, follow these steps:
- Python: Ensure you have Python installed on your system. You can download it from python.org.
- Git: Install Git to clone the repository and manage contributions. Git installation guide.
-
Fork the Repository
- Go to the project's GitHub page.
- Click on the "Fork" button to create your copy of the repository.
-
Clone Your Fork
git clone https://github.com/yehuda-lev/Get_Chat_ID_Bot.git cd Get_Chat_ID_Bot
-
Install Dependencies Create a virtual environment and install the required libraries:
python -m venv .venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate` pip install -r requirements.txt
-
Prepare the Language Data
- Open
languages.json
and check if the language you want to add already exists. - If not, add an entry for your language. Provide:
Code
(ISO 639 format)NativeName
Flag
EnglishName
- Open
-
Generate the Translation File Use the provided script to generate translations:
python generate.py <lang_code>
Replace
<lang_code>
with the language code of your choice. -
Verify the Output
- Check the generated
<lang_code>.json
file in the project directory. - Ensure translations are correct and formatted properly.
- Check the generated
-
Submit Your Changes
- Commit your changes:
git add . git commit -m "Add support for <language>"
- Push your changes to your fork:
git push origin main
- Open a pull request on the original repository, describing the new language you added.
- Commit your changes:
Note: Please ensure translations are accurate. You can consult native speakers or reliable sources for verification.
If you have an idea for a new feature or improvement, follow these steps:
- Familiarity with Python and Git.
- A clear understanding of the feature you want to add.
-
Fork and Clone the Repository Follow the same steps as described in the "Contributing a New Language" section to fork and clone the repository.
-
Create a New Branch
git checkout -b feature/<your-feature-name>
-
Implement Your Feature
- Add your code changes.
- Ensure they do not break existing functionality.
-
Test Your Changes
- Run the project locally to verify your feature works as intended.
-
Document Your Changes
- Update any relevant documentation to include your new feature.
-
Commit Your Changes
git add . git commit -m "Add feature: <your-feature-name>"
-
Submit Your Changes
- Push your changes to your fork:
git push origin feature/<your-feature-name>
- Open a pull request on the original repository, describing your feature.
- Push your changes to your fork:
If you have any questions, feel free to join our Telegram support group. We're here to help! 💬
By contributing to this project, you agree that your contributions will be licensed under the same license as the project. Please see the LICENSE
file in the repository for details.