All Projects β†’ kyaryunha β†’ i18n-language.js

kyaryunha / i18n-language.js

Licence: MIT license
i18n-language.js is Simple i18n language with Vanilla Javascript

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to i18n-language.js

grav-plugin-langswitcher
Grav LangSwitcher Plugin
Stars: ✭ 22 (+4.76%)
Mutual labels:  multilingual, i18n, multilanguage
translate-components
🌎🌍🌏 translate-components provides a super simple translation for React.
Stars: ✭ 16 (-23.81%)
Mutual labels:  multilingual, multilanguage
pH7-Internationalization
🎌 pH7CMS Internationalization (I18N) package πŸ™Š Get new languages for your pH7CMS website!
Stars: ✭ 17 (-19.05%)
Mutual labels:  multilingual, i18n
babel
Babel is an Extra for MODx Revolution that creates linked documents across different contexts. The easy way for your multilingual site!
Stars: ✭ 61 (+190.48%)
Mutual labels:  multilingual, i18n
vue-i18n-manager
Internationalization plugin for Vue
Stars: ✭ 18 (-14.29%)
Mutual labels:  i18n, multilanguage
next-multilingual
An opinionated end-to-end solution for Next.js applications that requires multiple languages.
Stars: ✭ 135 (+542.86%)
Mutual labels:  multilingual, i18n
mkdocs-static-i18n
MkDocs i18n plugin using static translation markdown files
Stars: ✭ 78 (+271.43%)
Mutual labels:  multilingual, i18n
Keys Translations Manager
KTM, a locale management web app built on MERN stack, lets you manage and control locales in one place. It's particularly useful for someone who needs to manage multiple internationalization/localization projects.
Stars: ✭ 81 (+285.71%)
Mutual labels:  multilingual, i18n
academic
Jekyll theme with a focus on simplicity, typography and flexibility
Stars: ✭ 71 (+238.1%)
Mutual labels:  multilingual, i18n
f3-multilang
Create multilingual apps with this localization plugin for the PHP Fat-Free Framework
Stars: ✭ 44 (+109.52%)
Mutual labels:  multilingual, i18n
Elefant
Elefant, the refreshingly simple PHP CMS and web framework.
Stars: ✭ 188 (+795.24%)
Mutual labels:  multilingual, i18n
Linguist
Easy multilingual urls and redirection support for the Laravel framework
Stars: ✭ 188 (+795.24%)
Mutual labels:  multilingual, i18n
sketch-crowdin
Connect your Sketch and Crowdin projects together
Stars: ✭ 35 (+66.67%)
Mutual labels:  multilingual, multilanguage
qiokian
πŸ™Š live2d anime waifu vuejs component.
Stars: ✭ 34 (+61.9%)
Mutual labels:  i18n
ember-i18n-cp-validations
ember-i18n support for ember-cp-validations
Stars: ✭ 20 (-4.76%)
Mutual labels:  i18n
event-driven-web-components-realworld-example-app
Exemplary real world application built with Vanilla JS Web Components in an Event Driven Architecture
Stars: ✭ 55 (+161.9%)
Mutual labels:  vanilla-javascript
angular-i18n-localization
An angular application with i18n and localization implemented.
Stars: ✭ 22 (+4.76%)
Mutual labels:  i18n
TraduXio
A participative platform for cultural texts translators
Stars: ✭ 19 (-9.52%)
Mutual labels:  multilingual
next.js-boilerplate
next.js bolierplate, next.js ηš„εΌ€ε‘ζ¨‘ζΏ
Stars: ✭ 28 (+33.33%)
Mutual labels:  i18n
msgtools
Tools for Developing Diagnostic Messages
Stars: ✭ 18 (-14.29%)
Mutual labels:  i18n

i18n-language.js

i18n-language.js is Simple i18n language with Vanilla Javascript

Write by Hyun SHIN

Demo Page: http://i18n-language.s3-website.ap-northeast-2.amazonaws.com/

NPM Link: https://www.npmjs.com/package/i18n-language

Github Link: https://github.com/kyaryunha/i18n-language.js

Introduce

There are a lot of approaches to internationalization, 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
  • When visiting for the first time, the language is set as the browser setting value, and if there is no setting value, English is displayed first
  • When the language is changed, it is stored in the local storage and displayed in the corresponding language when revisiting

Usage:

HTML

<!-- Example -->
<h4 data-lang="ko">
    바닐라 JS둜 ν•˜λŠ” κ°„λ‹¨ν•œ λ‹€κ΅­μ–΄ 지원
</h4>
<h4 data-lang="en">
    Simple i18n language with Vanilla JS
</h4>
<h4 data-lang="jp">
    バニラJSで簑単γͺε€šθ¨€θͺžγ‚΅γƒγƒΌγƒˆ
</h4>
<!-- How To Change Language -->
<select id="change-language">
    <option value="ko" selected="selected">
        Korean
    </option>
    <option value="en">
        English
    </option>
    <option value="jp">
        Japanese
    </option>
</select> 

JS

Download i18n-language.js and write this code.

<script type="text/javascript" src="./i18n-language.js"></script>

If you want use just link,

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/i18n-language.js"></script>

or minified version is

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/i18n-language.min.js"></script>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].