wagtail-localize icon indicating copy to clipboard operation
wagtail-localize copied to clipboard

Snippets don’t get automatically translated

Open TheoChevalier opened this issue 3 years ago • 5 comments

I’ve noticed a regression, snippets stopped being automatically translated after a sync when there’s a change in the source page:

Capture d’écran 2022-03-10 à 16 59 45 (The UI says "Not translated" in front of the 3rd snippet)

STR:

  • Have a snippet set as TranslatableField
  • Edit the source page and pick a new snippet
  • Sync translations
  • Edit the French page

Actual result:

  • The new snippet is not translated

Expected result:

  • The new snippet is automatically translated

TheoChevalier avatar Mar 11 '22 16:03 TheoChevalier

@TheoChevalier is this with v1.1?

zerolab avatar Mar 11 '22 23:03 zerolab

Correct, this was with 1.1rc1 and I’m reproducing with 1.1 final

TheoChevalier avatar Mar 14 '22 11:03 TheoChevalier

This slipped a bit under my radar. @TheoChevalier was "Test 4" a new snippet that did not have any translations?

zerolab avatar Apr 28 '22 13:04 zerolab

This slipped a bit under my radar. @TheoChevalier was "Test 4" a new snippet that did not have any translations?

Yup, Test 4 was created right before adding it to the English page

TheoChevalier avatar Apr 28 '22 14:04 TheoChevalier

I may be missing something, but doesn't that then work as expected? ie. it is a new, non-translated snippets, so it shows as such after you run "sync translations" which updates the translated pages with content from the source page.

zerolab avatar Apr 28 '22 15:04 zerolab