Skip to content

Extractor: Handle object props as namespace#205

Merged
adrai merged 1 commit intoi18next:mainfrom
LudvigHz:extract-object-property
Mar 4, 2026
Merged

Extractor: Handle object props as namespace#205
adrai merged 1 commit intoi18next:mainfrom
LudvigHz:extract-object-property

Conversation

@LudvigHz
Copy link
Contributor

@LudvigHz LudvigHz commented Mar 4, 2026

I forgot to handle object properties in #204 😓

This will handle those cases as well, which I found quite a few uses of in our own code at least,
where you define a const object of namespaces.

Hopefully this isn't too niche, but I do think that the more common patterns the extractor can cover
the better the cli is :)

Checklist

  • only relevant code is changed (make a diff before you submit the PR)
  • run tests npm run test
  • tests are included
  • commit message and code follows the Developer's Certification of Origin

@adrai adrai merged commit 03a858e into i18next:main Mar 4, 2026
8 checks passed
@adrai
Copy link
Member

adrai commented Mar 4, 2026

v1.47.12 👍

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