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

Add keyPrefix support to getFixedT in RemixI18Next #192

Merged
merged 5 commits into from
Aug 5, 2024

Conversation

sergiodxa
Copy link
Owner

@sergiodxa sergiodxa commented May 4, 2024

Related to #142

Adds support for the keyPrefix option in the getFixedT function within RemixI18Next, aligning server-side translation capabilities with the original i18next and client-side usage.

  • Updates the method signature of getFixedT in src/server.ts to accept an additional keyPrefix parameter.
  • Implements logic within getFixedT to prepend the provided keyPrefix to translation keys, enhancing namespace management and translation key organization.
  • Modifies the README.md to document the new keyPrefix option, including usage examples and its benefits for server-side translation scenarios.

For more details, open the Copilot Workspace session.

src/server.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@sergiodxa sergiodxa added the enhancement New feature or request label Aug 5, 2024
@sergiodxa sergiodxa self-assigned this Aug 5, 2024
@sergiodxa sergiodxa linked an issue Aug 5, 2024 that may be closed by this pull request
@sergiodxa sergiodxa merged commit 8f239dc into main Aug 5, 2024
5 checks passed
@sergiodxa sergiodxa deleted the support-keyPrefix branch August 5, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Key Prefix in server-side getFixedT is missing
1 participant