问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

我需要用英文翻译一段话

发布网友 发布时间:2022-04-21 18:18

我来回答

3个回答

懂视网 时间:2022-04-21 22:39

关注 JSDigs 偶尔给你来点干的。

这是一个利用HTML注释的页面翻译解决方案。对于少量的静态页面,这种解决方案显得更简单。它没有依赖,压缩只有只有(~2kb)。

支持 IMG 文本 切换

支持 URL 加载语言

支持本地缓存选择

作为模块安装

$ npm install translater.js

传统使用方法

<div> 这里是中文 <!--{jp}ここは日本語です--> <!--{en}Here is English--></div><script src="../dist/translater.min.js" type="text/javascript"></script><script type="text/javascript">var tran = new Translater({ lang:"jp"});</script>

切换语言方法通过超链接

<a href="javascript:tran.setLang('default');">English</a><a href="javascript:tran.setLang('jp');">日本語</a><a href="javascript:tran.setLang('cn');">中文</a>

可以通过URL穿参数设置语言

http://.../test.html?lang=jp

文本翻译添加

<div> 这里是中文 <!--{jp}ここは日本語です--> <!--{en}Here is English--></div>

图片切换

<img alt="images" src="../img/imgae.jpg" data-lang-cn="../img/imgae_cn.jpg" data-lang-jp="../img/imgae_jp.jpg" />

热心网友 时间:2022-04-21 19:47

version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Free Online Translator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Free Online Language Translation. Translates from English, Chinese Simplified, Chinese Traditional,
Dutch, French, German, Greek, Italian, Japanese, Korean, Portuguese, Russian, Swedish, Arabic, Spanish to English, Chinese Simplified, Chinese Traditional,
Dutch, French, German, Greek, Italian, Japanese, Korean, Portuguese, Russian, Swedish, Arabic, Spanish" />
<meta name="keywords" content="online translator, Text Translator, translators online, chinese alphabet letters,
Online Spanish Translator, chinese characters alphabet, dictionary english german, english french dictionary,
english german translator, english japanese dictionary, english spanish converter, english spanish translator,
english to french dictionary, english to french online translation, english to french translations,
english words to chinese symbols, english/spanish dictionary, english-french dictionary, foreign language translations,
foreign language translator, free french translations, free french translator, free german translator,
free language translations, free online language translator, free spanish translater, free spanish translators,
free translator online, french dictionary online, french english translation dictionary, french language, french names,
french to english dictionary, french translator, french-english dictionary, german online translators, german translater,
internet translator spanish, Chinese Symbols for Words" />
<meta name="copyright" content="WorldLingo Translations LLC" /><link href="/wlstyles.css" type="text/css" rel="stylesheet"/> <link href="/favicon.ico" type="image/ico" rel="Shortcut Icon" />
<style TYPE="text/css">
<!--
#mainCol {
width:405px;
}
.textbox {
width:300px;
}
#rightCol {
width:295px;
}
#rightCol h2 {
width:284px;
}
#rightCol ul{
width:284px;padding:5px;
}
-->
</style>
</head>
<body>
<div id="PageWrapper">
<div id="logo" onclick="location.href='/'">World<span class="black">Lingo</span></div>
<div id="search" align="right">
<form action="/wl/search/search_results.html" method="get" style="float:right" >
<input id="searchQuery" type="text" name="query" size="24" /><input class="searchButton" type="submit" name="submit" value="Search" />
</form>
<!--logged in status goes here -->
<div id="l_o" align="right"></div>
</div>
<br clear="all"/>
<div class="navcontainer">
<ul id="menu">
<li><a href="/en/solutions/" title="Language Translation Solutions">Solutions</a></li>
<li><a href="/en/procts/" title="Machine Translation Procts">Procts</a></li>
<li><a href="/en/services/" title="Translation Services">Services</a></li>
<li><a href="/en/contact/" title="Contact WorldLingo Support">Support</a></li>
<li><a href="/en/company/" title="About WorldLingo">Company</a></li>
<li id="menu5"><a href="/login/" title="Your Account">Your Account</a></li>
</ul>
</div>
<!--main body content -->
<h1>Free Online Language Translator</h1>
<p id="navigator"><a href="/" title="Home">Home</a> › Free Online Translator</p>
<div id="BodyWrapper">
<div align="center" style="padding:5px; border-bottom: dashed 1px #cccccc;"> <!-- ValueClick Media 468x60 and 728x90 Banner CODE for worldlingo.com -->
<script language="javascript" src="http://media.fastclick.net/w/get.media?sid=25961&m=1&tp=5&d=j&t=n"></script>
<noscript><a href="http://media.fastclick.net/w/click.here?sid=25961&m=1&c=1" target="_blank">
<img src="http://media.fastclick.net/w/get.media?sid=25961&m=1&tp=5&d=s&c=1" width=728 height=90 border=1/></a></noscript>
<!-- ValueClick Media 468x60 and 728x90 Banner CODE for worldlingo.com -->
</div>
<div id="mainCol">
<div class="navcontainer">
<ul id="navlist">
<li id="TextTran" title="Text Translator" ><b>Text Translator</b></li>
<li><a href="/en/websites/url_translator.html" title="Website Translator" id="WebTran">Website Translator</a></li>
<li><a href="/en/procts/email_translator_form.html" title="Email Translator" id="EmailTran">Email Translator</a></li>
</ul>
</div>
<span id="wl_service:S591.3">
<script type="text/javascript" src="http://www.worldlingo.com/S591.3/loader"></script>
</span>
</div>
<div id="rightCol">
<h2>Professional Translation</h2>
<ul>
<li><a title="Upload your document for an instant quote" href="/en/services/document_translation.html">Upload your Word, Excel, PDF, HTML, rich text or text document for an instant quote</a></li>
</ul>
<h2>Word Document Translator</h2>
<ul>
<li><a title="Microsoft Office Translations" href="/en/solutions/office_translations.html">Get WorldLingo translations from within Microsoft Word</a></li>
</ul> <!-- Casale Media 2006 (C) -->
<!-- Ad Format: Medium Rectangle -->
<!-- Domain(s): worldlingo.com -->
<script type="text/javascript"><!--
var casaleD=new Date();var casaleR=(casaleD.getTime()%8673806982)+Math.random();
var casaleUU=escape(window.location.href); var casaleHost='.casalemedia.com/';
var casaleWH='" width="300" height="250" ';
var casaleFR='marginwidth="0" marginheight="0" frameborder="0" scrolling="no"';
casaleFR += 'allowtransparency="true">';
document.write('<ifr'+'ame src="http://as'+casaleHost+'s?s=73900&u='+casaleUU);
document.write('&f=4&id='+casaleR+casaleWH+casaleFR+'<a hr'+'ef="http://c');
document.write(casaleHost+'c?s=73900&f=4&id='+casaleR+'" target="_blank">');
document.write('<i'+'mg src="http://as'+casaleHost+'s?s=73900&u='+casaleUU);
document.write('&f=4&id='+casaleR+'&if=0'+casaleWH+'border="0"></a>');
document.write('</ifr'+'ame>');
//--></script><noscript>
<iframe src="http://as.casalemedia.com/s?s=73900&u=http%3A%2F%2Fworldlingo.com&f=4&id=1"
width="300" height="250" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"
allowtransparency="true">
<a href="http://c.casalemedia.com/c?s=73900&f=4&id=0" target="_blank"><img
src="http://as.casalemedia.com/s?s=73900&u=http%3A%2F%2Fworldlingo.com&f=4&id=0&if=0"
width="300" height="250" border="0" alt=""></a></iframe></noscript>
<!-- Casale Media 2006 (C) -->
</div>
</div>
<!--FOOTER GOES HERE -->
<p id="footer">
<a title="WorldLingo" href="/">Home</a> |
<a title="Human Translation" href="/en/services/document_translation.html">Human Translation</a> |
<a title="Website Translation" href="/en/solutions/website_translation.html">Website Translation</a> |
<a title="Email Translation" href="/en/procts/email_translator.html">Email Translation</a> |
<a title="Software Localization" href="/en/services/software_localization.html">Software Localization</a> |
<a title="Online Translator" href="/en/procts_services/worldlingo_translator.html">Online Translator</a> |
<a title="More WorldLingo Solutions" href="/en/solutions/">More.. </a>
<br/>
<a title="Terms & Conditions" href="/en/company/terms_conditions.html">Terms & Conditions</a> |
<a title="Privacy Policy" href="/en/company/privacy.html">Privacy Policy</a> |
<a title="Accessibility Statement" href="/en/company/accessibility.html">Accessibility Statement</a> |
<a title="Contact WorldLingo" href="/en/contact/">Contact </a>
</p>
<p id="copyright">© Copyright 2006 WorldLingo Translations LLC. All rights reserved.</p>
</div>
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-309475-1";
urchinTracker();
</script>

<!-- ValueClick Media POP-UNDER CODE v1.8 for worldlingo.com (96 hour) -->
<script language="javascript"><!--
var dc=document; var date_ob=new Date();
dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
dc.write('/w/pop.cgi?sid=25961&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
date_ob.setTime(date_ob.getTime()+345600000);
dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
</script>
<!-- ValueClick Media POP-UNDER CODE v1.8 for worldlingo.com -->
</body>
</ht

热心网友 时间:2022-04-21 21:05

In in more than half centuries development, various countries television entertainment program content and style although have occurred either is deep or the shallow change But took a program shape, the television entertainment program actually throughout is occupying an important position In the 1990s later periods, the entertainment program very quickly on still held the pipa in China's development from "partly to obstruct surface" to enter the "thousand trees ten thousand trees plow furrows to open" the aspect From central station to regional station, even is various columns all has own entertainment program 1998 year the data display nation provincial level television station to hold the entertainment program to have 32, since the city level television station has set up the entertainment program to have 42 1999 years, successively also has 32 television stations to introce the entertainment program Thereupon we saw the multi-colored television entertainment program, it has become the television program type which the people pursues holds, and undertook the television program entertainment function But our country television entertainment program must base to the localization develops with the humanities concern can have the long-time development space, therefore walks 原创性 the path is our country entertainment program bases the foundation
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
爱情的句子高质量文案句子 干妹妹对我"久伴你"是什么意思 陪她一辈子的文案汇总123句 蜂窝移动通信笔记2——调制 通信系统的带宽和频率分析 汽车座椅头枕应该调到什么位置 老面馒头和酵母馒头的区别 老面馒头与酵母馒头哪个好 2024财富中国500强最赚钱40家公司揭晓 2024中国500强盈利排名榜一览 2024全球银行1000强中国名单2024世界银行1000强中国哪些上榜 品牌榜:2024年中国十大银行排行榜 投票结果公布【新】 武汉周边的温泉有哪些?我想自驾游去泡温泉,然后住一晚上,最好也能帮把住宿的事情也落实了 武汉周边最值得去的温泉有哪些? 请问武汉有温泉的酒店吗? l联想笔记本旭日466A后盖怎么打开 三国战记风云再起诸葛亮 多次236a 技巧 一定要技巧哦 最好带教程 帮忙啦 我466a都会了 这个不会啊 哭 大学生个体如何体现医学人体美?大学生个体如何理解医学人体美? 日记一件难忘的事怎么写 三国战记之风云再起电脑版本怎样连招? 网上介绍的aaa46+466a,这里面的46和466是什么意 联想旭日466a 电源适配器 经常锻练身体会变帅不? 美化人体&quot;的英语翻译,内含flatter 三国战记风云再起诸葛亮5级之前能AA 466A啊 但是过了5级按4就回不来呢?还有有的人说不按4回头也能连上? 有人用过黑暗之魂2最美身体MOD吗,感觉用后没去区别 旭日466A键盘鼠标怎么关 三国战纪风云再起张飞466A连不上,说下技巧 ! 急急急 Nike专家进:我参加过舍宾,觉得太残酷了,感觉就像为了减肥的体能训练,是这样的么? 联想g405和466a哪个好 舍宾是什么 大众的466a功放什么车型上的? 三国战记里466A打不出怎么办? 武汉温泉哪里好? win7怎么扩大c盘容量 win7怎么无损扩大c盘容量 阿尔玛是哪个国家 黄莲圣母做为义和团民族女英雄,最后是什么结局? The Kooples的经典搭配有哪些? 有谁知道龟灵圣母的结局吗? 义和团失败后,“黄莲圣母”林黑儿最后的结局如何呢? “黄莲圣母”林黑儿,在八国联军入侵后,最终的结局如何? 人王和瑶池圣母最后的结局是怎样的?求大神帮助 做梦梦见妈妈被人打 《封神榜》中无当圣母的下场是怎样的 有谁知道巴黎圣母院的结局,要详细点 今天上午睡觉梦见老妈被隔辟村的混混打,身上脸上多是伤、还有我去世的外婆来看我妈了、可那些人还找到 _百度问一问 圣母在上第四季的结局是什么? 梦见妈妈被人打的在大街起不来了咋回事 懂印刷、纸张的人进来帮个忙,一般用白牛皮做手提袋,是多少克的纸?类似于优衣库,杰克琼斯那种。比较薄 求:谁家有施华洛世奇的纸拎袋??? 关于《美在我身边》的600字作文