Skip to main content

Translation plugin for Wagtail CMS

Project description

Wagtail localize

Version License codecov Ruff pre-commit.ci status

Wagtail Localize is a translation plugin for the Wagtail CMS. It allows pages or snippets to be translated within Wagtail's admin interface. It also provides integrations with external translations services such as Pontoon or DeepL, and importing/exporting translations with PO files.

Documentation Changelog

Join the Community at Wagtail Space!

We'll be at Wagtail Space US this year! The Call for Participation and Registration for both Wagtail Space 2024 events is open. We would love to have you give a talk, or just us as an attendee in June.

Requirements

Wagtail Localize requires the following:

Installation

Install using pip:

pip install wagtail-localize

Add wagtail_localize and wagtail_localize.locales to your INSTALLED_APPS setting:

INSTALLED_APPS = [
    # ...
    "wagtail_localize",
    "wagtail_localize.locales",  # This replaces "wagtail.locales"
    # ...
]

wagtail-localize loads additional assets for the editing interface. Run the collectstatic management command to collect all the required assets.

python manage.py collectstatic

Contributing

All contributions are welcome!

Install

To make changes to this project, first clone this repository:

git clone git@github.com:wagtail/wagtail-localize.git
cd wagtail-localize

With your preferred virtualenv activated, install testing dependencies:

Using pip

pip install "pip>=21.3"
pip install -e '.[testing]' -U

Using flit

pip install "flit>=3.8.0"
flit install

pre-commit

Note that this project uses pre-commit. To set up locally:

# go to the project directory
$ cd wagtail-localize
# initialize pre-commit
$ pre-commit install

# Optional, run all checks once for this, then the checks will run only on the changed files
$ pre-commit run --all-files

How to run tests

Now you can run tests as shown below:

tox

or, you can run them for a specific environment tox -e python3.11-django4.2-wagtail5.2 or specific test tox -e python3.11-django4.2-wagtail5.2-sqlite -- wagtail_localize.tests.test_edit_translation.TestGetEditTranslationView

To run the test app interactively, use tox -e interactive, visit http://127.0.0.1:8020/admin/ and log in with admin/changeme.

Support

For support, please use GitHub Discussions or ask a question on the #multi-language channel on Wagtail's Slack instance.

Thanks

Many thanks to all of our supporters, contributors, and early adopters who helped with the initial release. In particular, to The Mozilla Foundation and Torchbox who sponsored the majority of the initial development and Wagtail core's internationalisation support.

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

ck_wagtail_localize-1.9.3.tar.gz (272.2 kB view details)

Uploaded Source

Built Distribution

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

ck_wagtail_localize-1.9.3-py3-none-any.whl (495.0 kB view details)

Uploaded Python 3

File details

Details for the file ck_wagtail_localize-1.9.3.tar.gz.

File metadata

  • Download URL: ck_wagtail_localize-1.9.3.tar.gz
  • Upload date:
  • Size: 272.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ck_wagtail_localize-1.9.3.tar.gz
Algorithm Hash digest
SHA256 12f289db5d126d3cdc0371d80a9ef46e38abe6d8199daeaf7037d3889a426ee7
MD5 fa911790f47e966fe34556d59c492f7c
BLAKE2b-256 c65fa5e6d1463d0f127affe8d31c2abae4370f317eeafe31e2e128b3a990d755

See more details on using hashes here.

Provenance

The following attestation bundles were made for ck_wagtail_localize-1.9.3.tar.gz:

Publisher: publish.yml on commonknowledge/wagtail-localize

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ck_wagtail_localize-1.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ck_wagtail_localize-1.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe330badfb03cc52e7399633e4440f12ed1c4d206eb759d857593b04f928c29
MD5 e455096e1b251ed7fc7597f4f68ec881
BLAKE2b-256 415a460972b7db0a7f6c44641526862d94275f555f5dfbb1a3969cf3ae8247d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ck_wagtail_localize-1.9.3-py3-none-any.whl:

Publisher: publish.yml on commonknowledge/wagtail-localize

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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