1.0.1 • Published 4 years ago

mini-trans v1.0.1

Weekly downloads
33
License
MIT
Repository
github
Last release
4 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

4 years ago

1.0.0

4 years ago

1.0.0-beta.0

4 years ago

0.2.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago