vue-i18next icon indicating copy to clipboard operation
vue-i18next copied to clipboard

Typescript issues

Open k-schneider opened this issue 6 years ago • 7 comments

I'm trying to use 0.15.0 with the latest version of i18next (14.1.1) but I'm having some troubles. It seems like TranslationFunction was renamed to TFunction in one of the latest releases and this is causing problems.

https://github.com/i18next/i18next/pull/1180

What version of i18next is properly supported by this lib? Thanks.

k-schneider avatar Feb 08 '19 23:02 k-schneider

same here.. @k-schneider in case you need to get it working with an older version, i had success with v13.0.0 (perhaps an intermediary version works as well, only tried majors)

aragalie avatar Feb 10 '19 15:02 aragalie

Any progress on this?

dnasir avatar Mar 04 '19 13:03 dnasir

This needs fixing.... I got these errors :

Namespace 'i18next' has no exported member 'TranslationFunction'
Namespace 'i18next' has no exported member 'TranslationOptions'

@dnasir I believe you fixed this ? And nobody merged ?

PerpetualWar avatar Apr 16 '19 07:04 PerpetualWar

Seems it’s WIP in feature/next branch.

@claudiocro Could you maybe publish an alpha version of feature/next, so we typescript users have an easier time integrating vue-i18next. You might even get some useful feedback for the new version out of it ;-)

bodograumann avatar Aug 01 '19 12:08 bodograumann

For anybody looking for a solution. You can actually locally patch dependencies with npm. So simply apply the fix from PR #63 yourself.

bodograumann avatar Aug 01 '19 12:08 bodograumann

Any updates on this? 😄

dkln avatar Nov 13 '19 16:11 dkln

Would be nice to have this fixed. Thanks to MrSimonEmms for a PR :)

mv-go avatar Jan 08 '20 01:01 mv-go