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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n.t('') type support #1372

Closed
shubhamdeodia opened this issue Sep 9, 2021 · 2 comments
Closed

i18n.t('') type support #1372

shubhamdeodia opened this issue Sep 9, 2021 · 2 comments
Assignees

Comments

@shubhamdeodia
Copy link

shubhamdeodia commented Sep 9, 2021

馃悰 Bug Report

I followed the steps which is specified here.

within react component, my type support is working fine

function App(){
   const { t } = useTranslation()

   return <span>{t('key')}</span>
}

But outside React component, I am using i18n.t and it is not having the same type support as i had with the t from useTranslation

I feel both the instance for t should have the same type support, as its not always true that I can use useTranslation at all the places in my App.

Your Environment

  • runtime version: node 14
  • i18next version: 20.6.0
  • os: Windows
@pedrodurek
Copy link
Member

We'll add support for the i18next library very soon, i18next/i18next#1504

@stale
Copy link

stale bot commented Sep 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 17, 2021
@stale stale bot closed this as completed Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants