[MCKIN-7023] Make XBlock services available to template render context

Description

Adds `i18n` support for XBlock Django templates passing all the XBlock's loaded services into the template render `context`. This change also allows other services to be used during template rendering.

*JIRA tickets*: [MCKIN-7023](https://edx-wiki.atlassian.net/browse/MCKIN-7023), (https://openedx.atlassian.net/browse/OSPR-2279)

*Discussions*: (https://openedx.atlassian.net/browse/WL-230), (https://openedx.atlassian.net/browse/YONK-879?focusedCommentId=307771&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-307771)

*Dependencies*:

No dependencies, but this change is related to https://github.com/edx/xblock-utils/pull/48

*Screenshots*: See https://github.com/edx-solutions/xblock-drag-and-drop-v2/pull/154 for before and after screenshots using dummy translations.

*Sandbox URL*: sandbox is being provisioned.

*Merge deadline*: None

*Testing instructions*:

See https://github.com/edx-solutions/xblock-drag-and-drop-v2/pull/154 for test instructions.

*Reviewers*

  • [ ] @mtyaka

  • [ ] edX reviewer[s] TBD

Won't Do

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Labels

None

Contributor Name

Jillian Vogel

Repo

edx/XBlock

Customer

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Blended Hour Utilization Percentage

None

edX Theme

None

edX Squad

None

Github Lines Added

33

Github Lines Deleted

18

Priority

Unset