Contributions are welcome! Feel free to open an issue or submit a pull request if you have a way to improve this project.
Make sure your request is meaningful and you have tested the app locally before submitting a pull request.
# Install dependencies for running the Flask server
pip install .
# Install dependencies for testing and development
pip install '.[dev]'
# Install dependencies for running the action script
pip install '.[action]'gunicorn api.index:apppython action.py --channel=UCipSxT7a3rn81vGLw9lqRkg --comment-tag-name="EXAMPLE-YOUTUBE-CARDS"Any additional arguments can be passed to the script. Run python action.py -h to see the full list of arguments.
toxYou can contribute to GitHub Readme YouTube Cards by adding translations in the api/locale folder.
To add translations for a new language:
- Copy the contents of
api/locale/en.ymlfile toapi/locale/<IDENTIFIER>.yml, where IDENTIFIER is shorthand for the language you are adding translations for. - Change the top most yaml key
en:to<IDENTIFIER>:. - Add translations for the strings provided below in the file. Only alter the text enclosed in quotes.
- To test, run the project locally and add
&lang=IDENTIFIERto a card URL to test if translation works as expected.