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

chore: add currentUser directive to graphql_directives #1616

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

nbaosullivan
Copy link
Contributor

@nbaosullivan nbaosullivan commented Feb 27, 2025

Package(s) involved

graphql_directives

Description of changes

Add @currentUser and associated @preferredLanguage directives.

Motivation and context

Initially intended for our SEO analysis tool introduced with SLB-496, to enable interface translation in the correct language on the frontend, but can be used for other contexts.

How has this been tested?

Added Drupal kernel tests

@nbaosullivan nbaosullivan force-pushed the user-preferred-language branch 4 times, most recently from 0a0e4a7 to 8745be4 Compare February 27, 2025 13:03
@nbaosullivan nbaosullivan requested a review from pmelab February 27, 2025 13:18
@nbaosullivan nbaosullivan force-pushed the user-preferred-language branch 8 times, most recently from a541c35 to 524d84f Compare February 27, 2025 15:47
@nbaosullivan nbaosullivan changed the title chore: add preferred language to _currentUser query chore: add currentUser directive to graphql_directives Feb 27, 2025
@nbaosullivan nbaosullivan force-pushed the user-preferred-language branch from 524d84f to 7179118 Compare February 27, 2025 16:09
@nbaosullivan nbaosullivan merged commit 1fd2827 into development Feb 27, 2025
3 checks passed
@nbaosullivan nbaosullivan deleted the user-preferred-language branch February 27, 2025 18:11
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