statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

get:focus doesn't work in other than main-locale #2521

Open delz-dev opened 4 years ago

delz-dev commented 4 years ago

Describe the bug {{ image | get:focus | background_position }} doesn't output correct values in other than main-locale.

To Reproduce Steps to reproduce the behavior:

  1. Define focus point on image in main-locale and other locale
  2. {{ image | get:focus | background_position }} in main locale: output correct
  3. {{ image | get:focus | background_position }} in other locale output is always: 50% 50%

-> workaround: {{ asset:image }}{{ focus_css }}{{ /asset:image }} always outputs the correct value in every locale …

Expected behavior Should output the per locale defined focus of an asset: p.e. 57% 50%

Environment details (please complete the following information):