You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
♣︎ This is a use of HTML comments page translation solution. For a small amount of static pages, this solution is more simple. it has no dependents, Compression only (4KB)
♣︎ This is a use of HTML comments page translation solution. For a small amount of static pages, this solution is more simple. it has no dependents, Compression only (~2KB) Official document demo preview.
Support IMG``text switching
Support URL parameter switching language
Support local cache selection
Usage
$ npm install translater.js
import 'translater.js';
Or manually download and link translater.js in your HTML, It can also be downloaded via UNPKG:
<div>
这里是中文
<!--{jp}ここは日本語です--><!--{en}Here is English--></div><scriptsrc="https://unpkg.com/translater.js/dist/translater.js" type="text/javascript"></script><scripttype="text/javascript">vartran=newTranslater({lang:"jp"});</script>
♣︎ This is a use of HTML comments page translation solution. For a small amount of static pages, this solution is more simple. it has no dependents, Compression only (4KB)