desentio / weploy-translate

weploy.ai - Translate websites with ai
https://weploy.ai
7 stars 1 forks source link

Weploy detect page chnage #5

Closed 2567910 closed 2 months ago

2567910 commented 1 year ago

I think we should detect in the NPM package when a valid page change accrued.

Becuase the user could do it wrong.

We need to make sure it is an actual page change and not just a round change where you add parameters like /#SOME-ID Also he should not translate it twice so we need to remeber what languages we already have (NEXT JS) Does not relode the page.

The German page on task source is wired because you always switch back to English.,

jemikanegara commented 1 year ago

https://github.com/desentio/weploy-translate/assets/42384614/eed565f5-62c6-46f4-94e5-58ff1a788119

jemikanegara commented 1 year ago

note: add additional parameter to await x miliseconds after router change

jemikanegara commented 1 year ago

https://github.com/desentio/weploy-translate/assets/42384614/a170f727-81c8-451a-9ade-30e87311195f

jemikanegara commented 1 year ago

https://github.com/desentio/weploy-translate/commit/68ede7f4402ccc2aa4f7c5221a69821dac2ee4c5