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

fix(react-i18next): show sub completion items when using scoped namespace #941

Merged
merged 2 commits into from
Aug 27, 2023

Conversation

Angeart
Copy link
Contributor

@Angeart Angeart commented Jun 8, 2023

This change resolve the following problems

  • show auto-complete correctly using a namespace with useTranslation and other specify namespace

Example case

Structure

locales/
  en/
    common.json
    login.json
  ja/
    common.json
    login.json

login.json

{
  "emailAddress": "Email Address",
  "password": "password",
  "rememberMe": "Remember me",
  "loginButton": "Sign in",
  "socialLoginButton": "Sign in with {{provider}}"
}


image

image

@Angeart Angeart changed the title fix(react-i18n): show sub completion items when using scoped namespace fix(react-i18next): show sub completion items when using scoped namespace Jun 9, 2023
@terales terales merged commit fb8a429 into lokalise:main Aug 27, 2023
huacnlee pushed a commit to huacnlee/i18n-ally that referenced this pull request Aug 28, 2023
…pace (lokalise#941)

* fix(react-i18next): show sub completion items when using scoped namespace

* Empty commit to trigger CI

---------

Co-authored-by: Alex Terehov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants