diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ce6f08e..8aa715a8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,6 +29,16 @@ For example, the _Translators: Icelandic (latest)_ group has access to: When working on changes to the "latest" source content in English, make sure to avoid unnecessarily removing and adding StreamField blocks, so block references are stable between revisions. +#### RTL support + +The guide supports right-to-left languages, like Arabic and Hebrew. All layout +and styling changes must work correctly in both LTR and RTL. + +We test RTL changes by setting `dir="rtl"` on the page and comparing against +the LTR version. If you're unsure whether something should mirror or stay +fixed, start a thread in [GitHub Discussions](https://github.com/wagtail/guide/discussions) +or the #editor-guide channel of the [Wagtail Slack workspace](https://github.com/wagtail/wagtail/wiki/Slack). + ### Versioning Our default "latest" version of the guide corresponds to Wagtail’s release currently in development. When Wagtail has a new release, we create a copy of the guide’s "latest" content for that release. Here are the preliminary steps to do this: diff --git a/apps/core/templates/base.html b/apps/core/templates/base.html index 145c8135..b300e0f9 100644 --- a/apps/core/templates/base.html +++ b/apps/core/templates/base.html @@ -1,8 +1,9 @@ -{% load core_tags wagtailcore_tags wagtailroutablepage_tags wagtailuserbar manifest %} +{% load core_tags wagtailcore_tags wagtailroutablepage_tags wagtailuserbar manifest i18n %} {% wagtail_site as current_site %} +{% get_current_language_bidi as LANGUAGE_BIDI %} - +