Skip to main content

Translation plugin for Wagtail CMS

Project description

Wagtail localize

Version License codecov Language grade: Python black pre-commit

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

Requirements

Wagtail Localize requires the following:

  • Python (3.7, 3.8, 3.9, 3.10)
  • Django (2.2, 3.0, 3.1, 3.2, 4.0)
  • Wagtail (2.11, 2.12, 2.13, 2.14, 2.15, 2.16) with internationalisation enabled

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"
    # ...
]

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:

pip install -e .[testing] -U

pre-commit

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

# if you don't have it yet, globally
$ pip install pre-commit
# 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.8-django3.2-wagtail2.15 or specific test tox -e python3.9-django3.2-wagtail2.15-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

wagtail-localize-1.1rc2.tar.gz (236.9 kB view details)

Uploaded Source

Built Distribution

wagtail_localize-1.1rc2-py3-none-any.whl (507.1 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-localize-1.1rc2.tar.gz.

File metadata

  • Download URL: wagtail-localize-1.1rc2.tar.gz
  • Upload date:
  • Size: 236.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.10

File hashes

Hashes for wagtail-localize-1.1rc2.tar.gz
Algorithm Hash digest
SHA256 92279d36cf31132c5b6386806c90becf4badb3a6d36c25be8fc8c40a4d57b9aa
MD5 576741f738aef2d1a55df8653ef03dd2
BLAKE2b-256 97d0e6e8bed4d4bcdde62bb851e042653110c846a413e815f1005a86bfb32bcb

See more details on using hashes here.

Provenance

File details

Details for the file wagtail_localize-1.1rc2-py3-none-any.whl.

File metadata

  • Download URL: wagtail_localize-1.1rc2-py3-none-any.whl
  • Upload date:
  • Size: 507.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.10

File hashes

Hashes for wagtail_localize-1.1rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 972b15b550d1a48e7010a6b7b8a43d2a9fc24025e01268a54b9a7515f8963ba4
MD5 ad049244ab12b33030f421f102123601
BLAKE2b-256 2bdda29855c473782d838e9e424f61783289edc0934857d3412941f4448c7ac0

See more details on using hashes here.

Provenance

Supported by

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