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 optional defaultNS #1050

Merged
merged 2 commits into from
Feb 14, 2020
Merged

Conversation

jpgarcia
Copy link
Contributor

@jpgarcia jpgarcia commented Feb 9, 2020

Closes #1049

@coveralls
Copy link

coveralls commented Feb 9, 2020

Coverage Status

Coverage remained the same at 95.316% when pulling d51a639 on jpgarcia:fix/add-missing-type into c764b02 on i18next:master.

@jamuhl
Copy link
Member

jamuhl commented Feb 10, 2020

Will be able to publish this after my holidays (this weekend, early next week)

test/typescript/I18nextProvider.test.tsx Show resolved Hide resolved
src/index.d.ts Outdated
@@ -98,6 +98,7 @@ export function withTranslation(

export interface I18nextProviderProps {
i18n: i18n;
defaultNS: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a required property, only i18n is. This should be defaultNS?: string. Leaving the test as-is and adding another would prove this true in the future.

@rosskevin rosskevin changed the title fix: add missing defaultNS Add optional defaultNS Feb 14, 2020
@rosskevin rosskevin merged commit 42f6824 into i18next:master Feb 14, 2020
@rosskevin
Copy link
Collaborator

Thanks @jpgarcia

@jamuhl this can be a patch release

@jamuhl
Copy link
Member

jamuhl commented Feb 15, 2020

was published in react-i18next@11.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing defaultNS prop in I18nextProviderProps
4 participants