1.0.1 • Published 5 years ago

mini-trans v1.0.1

Weekly downloads
33
License
MIT
Repository
github
Last release
5 years ago

Install

yarn add mini-trans

Use

import { makeTranslations } from "mini-trans"

const translations = {
  da: {
    "Hello World": "Hej Verden"
  },
  de: {
    "Hello World: "Hallo Welt"
  }
}

let t = makeTranslations(translations, "de")
t("Hello World")
// Hallo Welt

t = makeTranslations(translations, "da")
t("Hello World")
// Hej Verden
1.0.1

5 years ago

1.0.0

6 years ago

1.0.0-beta.0

6 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago