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, 3.0) 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


Release history Release notifications | RSS feed

This version

1.2

Download files

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

Source Distribution

enkonix-wagtail-localize-1.2.tar.gz (228.8 kB view details)

Uploaded Source

Built Distribution

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

enkonix_wagtail_localize-1.2-py3-none-any.whl (468.6 kB view details)

Uploaded Python 3

File details

Details for the file enkonix-wagtail-localize-1.2.tar.gz.

File metadata

  • Download URL: enkonix-wagtail-localize-1.2.tar.gz
  • Upload date:
  • Size: 228.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.9

File hashes

Hashes for enkonix-wagtail-localize-1.2.tar.gz
Algorithm Hash digest
SHA256 b5f92ff4025d5cb45235635feabfffe977eff321e4586888213310e6a97e3864
MD5 4a1bfa08dc202f4f69d2654a2494d8ec
BLAKE2b-256 2244ce45bb780d3f1435f8bf3b2888b3b01560e33b610b0590141f138f9c1f0e

See more details on using hashes here.

File details

Details for the file enkonix_wagtail_localize-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for enkonix_wagtail_localize-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e54442fd581e9b91b71984c8a701600359ac527e1faab8f7fa001d677acb28d8
MD5 bd69d419773b1ee939d7f707b904c3fe
BLAKE2b-256 6b18f78267a0cf29600dd3aeb1136c42623d7a982da7d80d38929a2cc84619fc

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