Aral Roca Gomez
Aral Roca Gomez
I think we can revert the PR, because it also does not solve the problem it was trying to solve and introduces this other one: https://github.com/vinissimus/next-translate/issues/604
Try this prerelease https://github.com/vinissimus/next-translate/releases/tag/1.3.6-canary.1
Can you share you page code to see how is transpiling? `getInitialProps` is the default loader when using a HOC, but it should use `getStaticProps` if you have a `getStaticProps`...
@JbPons I guess we have to try to reproduce it in the tests. I've added a couple of tests, but they seem correct and it looks like the transpilation does...
@JbPons the name of the branch to work is `canary`. To run the tests locally `yarn test` or `yarn test:watch`. And to see how next-translate transpile your code you can...
Right now it is a current limitation of the loader... It is necessary to investigate how to do it, because it will be necessary to modify the content of where...
What code do you use to change the site language? The `setLanguage` function? ```js import React from 'react' import setLanguage from 'next-translate/setLanguage' export default function ChangeLanguage() { return ( await...
I can't reproduce your error. Would you explain the instructions in more detail to reproduce the error? Thanks
@ahmadalfy I see that is no problem of `getServerSideProps`, we have this test: https://github.com/vinissimus/next-translate/blob/8c86d102cb99d04f977fa7baf3ccb79f312d1dde/__tests__/hasHOC.test.js#L381-L398 that is testing that is not considered as getInitialProps `toBe(false)`. I changed to your function and...
> I'm having the same problem, I think is related with https://github.com/vinissimus/next-translate/blob/master/src/plugin/loader.ts#L76 Or maybe is related with this check as you comment https://github.com/vinissimus/next-translate/blob/8a28e76bd75c958191db2fa8cb7b137625c4e774/src/plugin/loader.ts#L91 The detection of the getInitialProps should be...