1.0.0 • Published 5 years ago
i18n-multilanguage v1.0.0
MultiLanguage.js
multilanguage.js is Simple Multi Language with Vanilla Javascript
Write by Hyun SHIN
Demo Page: http://kyaryunha.com/multilanguage
Introduce
There are a lot of approaches to internationalisation, but this project offers unique advantages like: followings.
- Inline translation in HTML documents
- Lightweight JS implementation in 48 lines
- Written in pure HTML/CSS/JS so beginners can use it easily
Usage:
HTML
<!-- Example -->
<h2 class="ko">
바닐라 JS로 하는 간단한 다국어 지원
</h2>
<h2 class="en">
Simple Multi Language with Vanilla Javascript
</h2>
<!-- How To Change Language -->
<select id="change-language">
<option value="ko" selected="selected">
Korean
</option>
<option value="en">
English
</option>
</select>
JS
Download multilanguage.js and write this code.
<script type="text/javascript" src="./multilanguage.js"></script>
If you want use just link,
<script type="text/javascript" src="https://unpkg.com/i18n-multilanguage@1.0.0/multilanguage.js"></script>