Translate service

2

I am developing and implementing translation feature on the webpage using angular and node.js. I am currently using AWS Translate service specifically TranslateClient, and TranslateDocumentCommand.

I am sending part of the DOM that needs to be translated as string format because TranslateDocumentCommand takes 'text/html'. After I receive my response back from the service, which is string format of html with translated text (do not change tags or id to different language it only translate static text part of html), I replace my original html with response html using renderer2 .setProperty in angular.

The problem is it renders the static part of html with chosen language but dynamic rendering part doesn't show on the webpage anymore. It seems like it loses angular functionality and html functionality as well because the click to route to different page also doesn't work after replacement.

Any suggestion or idea?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠