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

feat: support finding translations pipe in KeyedRead nodes #47

Merged
merged 1 commit into from May 14, 2024

Conversation

sod
Copy link

@sod sod commented May 6, 2024

seems like KeyedRead was always there, but not detected.

Finds keys in static object and array access, e.g.:

{
  foo: 'a' | translate,
  bar: 'b' | translate,
}[ key ];
[
  'a' | translate,
  'b' | translate,
}[ index ];

seems like KeyedRead was always there, but not detected.

Finds keys in static object and array access, e.g.:

```
{
  foo: 'a' | translate,
  bar: 'b' | translate,
}[ key ];
```

```
[
  'a' | translate,
  'b' | translate,
}[ index ];
```
@michaelbromley michaelbromley merged commit 75b697b into vendure-ecommerce:master May 14, 2024
4 checks passed
@michaelbromley
Copy link
Member

Beautiful comment in the code. Thanks for the contribution!

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.

None yet

2 participants