1.2.5 • Published 2 years ago

@kamkam1_0/languages v1.2.5

Weekly downloads
-
License
BSD 2
Repository
github
Last release
2 years ago

Installation

    npm install "@kamkam1_0/languages"

getName function

Gives you the name of the language in english of the given ISO

    const languages = require("@kamkam1_0/languages")
    let languages = languages.getName("fr")
    //Expected Output: French

getOriginalName function

Gives you the original name of the language of the given ISO

    const languages = require("@kamkam1_0/languages")
    let languages = languages.getName("fr")
    //Expected Output: Français

getAllNames function

Gives you both the name of the language in english and the original language name of the given ISO

    const languages = require("@kamkam1_0/languages")
    let languages = languages.getName("fr")
    //Expected Output: { name: 'French', nativeName: 'Français' }

getISObyName function

Gives you the ISO of the given language name (in english)

    const languages = require("@kamkam1_0/languages")
    let languages = languages.getName("french")
    //Expected Output: fr

getISObyFullName function

Gives you the ISO of the given language name (with the original name)

    const languages = require("@kamkam1_0/languages")
    let languages = languages.getName("français")
    //Expected Output: fr
1.2.5

2 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago