Skip to content

feat(core): add namespace options to useTranslation#7386

Open
arndom wants to merge 2 commits intorefinedev:mainfrom
arndom:feat/core/i18n-namespace
Open

feat(core): add namespace options to useTranslation#7386
arndom wants to merge 2 commits intorefinedev:mainfrom
arndom:feat/core/i18n-namespace

Conversation

@arndom
Copy link
Copy Markdown
Contributor

@arndom arndom commented Apr 8, 2026

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

  • namespace had to be specified for each key translation
  • useDocumentTitle had no fallback

What is the new behavior?

  • all translations use the namespace from the hook call
  • useDocumentTitle now has a fallback title

resolves #7195 #7198

Notes for reviewers

Is anyone else facing this issue? I haven't contributed to testing since the vitest migration

image

arndom added 2 commits April 8, 2026 15:39
- add for useTranslate
- add tests
- add changeset
@arndom arndom requested a review from a team as a code owner April 8, 2026 16:33
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 8, 2026

🦋 Changeset detected

Latest commit: 3fcd025

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@refinedev/react-router Patch
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

[FEAT] Loading namespaces with useTranslation and useTranslate hooks.

1 participant