@valevassallo/introduction-translator
v1.0.2
Published
This module helps you translate a basic introduction in multiple languages
Downloads
6
Maintainers
Readme
@valevassallo/introduction-translator
Installation
- npm:
npm install @valevassallo/introduction-translator
- yarn:
yarn add @valevassallo/introduction-translator
Usage
First, import this module like this:const translate = require("@valevassallo/introduction-translator");
.
There's the function translate()
which receives three parameters: the language you want your introduction in, your name and your age.
It looks like this: translate(language, name, age)
.
Available languages:
- English (en)
- Spanish (es)
- German (de)
- French (fr)
- Korean (kr)
- Chinese (ch)
Check out the examples