0
Google Transliterate API를 사용하여 텍스트 콘텐츠를 Gujarati
으로 음역하는 코드를 작성했습니다. 그것은 컴퓨터의 브라우저에서 잘 작동하고, 그것은 또한 모바일 브라우저 UC 브라우저에서 작동합니다. 내가 직면하고있는 문제는 모바일 브라우저 crome에서 동일한 코드를 실행할 때 작동하지 않는다는 것입니다. 코드는 다음과 같습니다Google Transliterate API가 모바일 crome에서 작동하지 않습니다.
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
// Load the Google Transliterate API
google.load("elements", "1", {
packages: "transliteration"
});
function onLoad() {
var options = {
sourceLanguage: 'en',
destinationLanguage: ['gu'],
transliterationEnabled: true
};
if (google.elements.transliteration.isBrowserCompatible()) {
alert('compatible');
var control = new google.elements.transliteration.TransliterationControl(options);
var ids = [ "idTitle", "idContent"];
control.makeTransliteratable(ids);
} else { alert('not compatible'); } }
google.setOnLoadCallback(onLoad);
</script>
<form action="index.php" method="post">
<label for="blogtitle">Title</label>
<input type="text" id="idTitle" name="txtTitle" value="" required>
<label for="content">Content</label>
<textarea id="idContent" name="txtContent" required> </textarea>
<input name="btnAdd" type="submit" value="Add" >
</form>
이 옵션을 선택했습니다. 내 업데이트 된 코드를 참조하십시오. 호환되지만 여전히 출력이 나오지 않는다고합니다. – Himadri
나는 또한 동일한 문제에 직면하고있다. Chrome 데스크톱에서는 정상적으로 작동하지만 Chrome 모바일에서는 정상적으로 작동하지 않습니다. –