remix-i18next
remix-i18next copied to clipboard
Add keyPrefix support to getFixedT in RemixI18Next
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
insrc/server.ts
to accept an additionalkeyPrefix
parameter. - Implements logic within
getFixedT
to prepend the providedkeyPrefix
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.