0.0.3 • Published 9 months ago

@acryps/language v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

acryps language

Translations made easy.

'Hello World'
	.german('Hallo Welt')
	.italian('Ciao mondo')
	.greek('Γεια σου κόσμε')
	.japanese('ハローワールド')

Just make sure to set the active language before the strings are resolved

import { Language, languages } from '@acryps/language';

Language.active = languages.german;

const count = 3;
console.log(
	`${count} items in the cart`
		.german(`Warenkorb: ${count} Stück`)
) // → Warenkorb: 3 Stück

Can be used in the browser and server-side!

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago

0.0.0

9 months ago