Skip to content

Fixed localization issues - #37

Open
kevinmeijer97 wants to merge 1 commit into
masterfrom
feature/localization-fixes
Open

Fixed localization issues#37
kevinmeijer97 wants to merge 1 commit into
masterfrom
feature/localization-fixes

Conversation

@kevinmeijer97

Copy link
Copy Markdown
Member

Fixes structured data resolving the wrong localization. The StructuredDataPreview fieldtype now passes the active site handle from the publish context, and getTemplates() uses it to set the current site and resolve terms via $term->in($site). Previously Term::find() returned an arbitrary localization, so a Dutch term could render Portuguese output. Raw ->get() calls in the controller, service, and builder were also replaced with augmented property access so values follow Statamic's localization cascade.

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.

3 participants