lokaly

A library that helps you Localizate your app!

Usage no npm install needed!

<script type="module">
  import lokaly from 'https://cdn.skypack.dev/lokaly';
</script>

README

Lokaly

How to use

Create lokaly.json file in your main folder, then create sentences/words to translate just like the below example

{
  "enter": {
    "en": "Welcome",
    "tr": "Hoşgeldin"
  },
  "sonuc": {
    "en": "Your result",
    "tr": "Sonucunuz"
  }
}

To use, import lokaly and call the sentence you want to call. Just like 'lokaly("enter")'

To change the language, import setLanguage from lokaly