1.2.2 • Published 2 years ago

instatranslate v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Insta Translate

npm i instatranslate

This page translater is extremely easy to use. To install it, either use NPM to install it to your root project directory, or use a CDN to import it into your project. <script src="/path/to/package"></script> And thats it! By default, the language of choice is from EN (english) to ZH (Chinese) but this can be changed easily in the window.sourceLang and window.targetLang variables. Simply Change these before you include the package, call the package, and you're set!

the window.init() function can be run at any time to refresh the page data if some data changed.

Example

<script>
    window.sourceLang = "en";
    window.targetLang = "ru";
</script>

<script src="https://cdn.jsdelivr.net/npm/instatranslate@latest/index.min.js"></script>

<script>
    window.init();
</script>

Supported languages

Country code (Use this)Country Name
enEnglish
arArabic
zhChinese
frFrench
deGerman
hiHindi
idIndonesian
gaIrish
itItalian
jaJapanese
koKorean
plPolish
ptPortugeuse
ruRussian
esSpanish
trTurkish
viVietmanese

npm.io

1.2.2

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago