Skip to content

Add support for "Go to Definition" for pluralization strings #5

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

Conversation

mkevinosullivan
Copy link

@mkevinosullivan mkevinosullivan commented Jun 22, 2023

With the support for displaying inline the first available pluralization key value of a nested locale configuration (#2), the "Go to Definition" functionality is unable to switch to the definition in the locale file, as is expected.

This commit fixes that, and as a by-product, hovering over the key will display the various translations.

Before:
NoDefnFound

After:
DefinitionsHover

@mkevinosullivan mkevinosullivan marked this pull request as ready for review June 23, 2023 15:17
Copy link

@trishrempel trishrempel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👏🏻

@mkevinosullivan mkevinosullivan force-pushed the kos/support_goto_definition_for_nested_pluralization_keys branch from c239361 to 25a50cc Compare June 23, 2023 17:40
@trishrempel trishrempel changed the base branch from kos/display_first_available_counting_value to release/i18next-shopify July 10, 2023 18:22
@trishrempel trishrempel merged commit 60050a0 into release/i18next-shopify Jul 10, 2023
@trishrempel trishrempel added the #gsd:32590 App localization tools & guidance label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#gsd:32590 App localization tools & guidance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants