Skip to main content

Plugin for adding translation behavior to XBlocks

Project description

translatable-xblocks

PyPI CI Codecov Documentation Supported Python versions License status-badge

Purpose

Plugin for adding translation behavior to XBlocks. This plugin assumes:

  1. Translations IDA is setup (https://github.com/edx/ai-translations).

  2. Frontend plugin setup to add translation selector.

When present and enabled, requesting a src_lang and dest_lang as query params in a unit render should request and return translated versions of those XBlocks’ content.

WARNING: This replaces some native XBlocks from edx-platform and replaces them with custom versions. While we only override small portions of functionality, there is a chance this will cause things to “spookily” break. See translatable_xblocks/apps.py for where we do this block replacement.

Guides

Getting Started with Development

See quickstart guide.

Conventions / Rules / Best Practices

  1. Use conventional commits for making commits.

  2. Format files with black. Do this and other fixes automatically with make format.

  3. Squash commits when merging a PR.

Please see also the Open edX documentation for guidance on Python development in this repo.

Testing

See how to test this repository.

Deploying

See how to deploy this repository.

Getting Help

Documentation

PLACEHOLDER: Start by going through the documentation. If you need more help see below.

(TODO: Set up documentation)

More Help

If you’re having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace.

For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide.

https://github.com/edx/translatable-xblocks/issues

For more information about these options, see the Getting Help page.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

Please do not report security issues in public. Please email security@openedx.org.

Change Log

Unreleased

0.1.0 – 2024-03-06

Added

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

translatable_xblocks-1.3.5.tar.gz (51.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

translatable_xblocks-1.3.5-py2.py3-none-any.whl (47.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file translatable_xblocks-1.3.5.tar.gz.

File metadata

  • Download URL: translatable_xblocks-1.3.5.tar.gz
  • Upload date:
  • Size: 51.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for translatable_xblocks-1.3.5.tar.gz
Algorithm Hash digest
SHA256 af85b698a9cfe1bb1576dfae595556a4cba3070cd11ce470d61d17d65c8ef20c
MD5 47534695e3a60a4a4934e4b478d54b6b
BLAKE2b-256 9972d4c9f6ab05ad4e366d49fa0f2b1ed721ae67c6bef78b5a4910dfb60b9263

See more details on using hashes here.

File details

Details for the file translatable_xblocks-1.3.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for translatable_xblocks-1.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8897edaeeee9020a1f96c06a10cd2508cc15b20cc6524eb2a76643d9b542d091
MD5 ba91e34c9d1386fcbb6ea1afc5107cf3
BLAKE2b-256 490870e7b91b13f79208d3c392f4f313073b0c4a92c2d9dc4b3a51f39d057b45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page