Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Wagtail/ Smartling integration on the Bedrock side #14935

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

stevejalim
Copy link
Collaborator

@stevejalim stevejalim commented Jul 31, 2024

This changeset tweaks some dials related to the Smartling integration from Wagtail, getting it ready for when we move the VPN Resource Center into Wagtail.

Early review is fine - the only extra commit here will be bumping the version of wagtail-localize-smartling

Done

  • Prevent slug field on localized pages from being sent to Smartling, and instead keep it synchronised with the source page's slug
  • Configure initial set of language codes that we'll handle in the CMS. (These may change, of course, but they follow what we currently have in used for the VPN Resource Centre, which was localized in Smartling. Hopefully we can leverage Smartling's Translation memory automatically when we move those pages into Wagtail)
  • Bump wagtail-localize-smartling to latest version (0.2.4 - due as soon as Apply locale ID mappings consistently wagtail-localize-smartling#16 is updated and merged)

Testing

Just eyeballing this changeset is fine - i've tested locally and we'll test lots on Dev, Stage and soon Prod

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.71%. Comparing base (1447d33) to head (ddf8018).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14935   +/-   ##
=======================================
  Coverage   77.70%   77.71%           
=======================================
  Files         161      161           
  Lines        8380     8382    +2     
=======================================
+ Hits         6512     6514    +2     
  Misses       1868     1868           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stevejalim stevejalim marked this pull request as ready for review August 1, 2024 21:45
@stevejalim
Copy link
Collaborator Author

@smithellis @escattone I think this changeset will be relevant to SUMO too, particularly the new REFORMAT_LANGUAGE_CODES setting

…uses our base class

Instead, it will keep it synchronised with the value of the slug in the source page.

This means that we won't get slugs sent to Smartling for translation, either - we don't want that, based on what we've done so far in Bedrock
…he CMS

Note that the settings here will require the 0.2.4 release of wagtail-localize-smartling (or greater)
@stevejalim stevejalim force-pushed the update-wagtail-smartling-lang-codes branch from 024332c to ddf8018 Compare August 30, 2024 20:39
@stevejalim stevejalim merged commit 15115fe into main Aug 30, 2024
4 checks passed
@stevejalim stevejalim deleted the update-wagtail-smartling-lang-codes branch August 30, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants