1.2.5 • Published 4 months ago

@kamkam1_0/languages v1.2.5

Weekly downloads
-
License
BSD 2
Repository
github
Last release
4 months 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

4 months ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago