
Exports Code-Of-conduct In 28 Different Languages :)


Supported Languages
- Bengali
- Bosnian
- German
- Greek
- English
- Spanish
- Farsi (Iran)
- French
- Hindi
- Indonesian
- Icelandic
- Hebrew
- Japanese
- Kannada
- Korean
- FYRO Macedonian
- Dutch
- Polish
- Portuguese (Brazil)
- Portuguese
- Romanian
- Russian
- Slovenian
- Swedish
- Turkish
- Ukrainian
- Chinese (China)
- Chinese (Taiwan)
Install
Run npm install code-conduct
Or yarn add code-conduct
:zap:
Usage
For complete Documentation see : code-conduct
const coc = require('code-conduct');
lang_id
()
console.log(coc.en());
get_coc(lang_id)
console.log(coc.get_coc("bn"));
get_code(lang_name)
console.log(coc.get_code("English"));
supported_lang()
console.log(coc.supported_langs());
get_lang(language_id)
console.log(coc.get_lang("ko"));
all_langs()
console.log(coc.all_langs());
API
Modules
- all_langs ⇒
Object
A module that returns a list of all languages
- supported_langs ⇒
Array.<string>
A module that exports an array of all languages id supported by code-conduct till now
- get_code ⇒
string
A module to get language Id of a language
- get_lang ⇒
string
A module to get language name from a language ID
- get_coc ⇒
string
A module to export code-of-conduct text for a language ID
all_langs ⇒ Object
A module that returns a list of all languages
Returns: Object
- - Object of all language in { id : name } format
supported_langs ⇒ Array.<string>
A module that exports an array of all languages id supported by code-conduct till now
Returns: Array.<string>
- - Array of supported language IDs
Author: Dipankar Pal dipankarpal5050@gmail.com
get_code ⇒ string
A module to get language Id of a language
Returns: string
- - Language ID for the given language name
Author: Dipankar Pal dipankarpal5050@gmail.com
Param | Type | Description |
---|
lang_name | string | An exact language name |
get_lang ⇒ string
A module to get language name from a language ID
Returns: string
- - Language name for the language_id
Author: Dipankar Pal dipankarpal5050@gmail.com
Param | Type | Description |
---|
lang_id | string | Language ID of a language |
get_coc ⇒ string
A module to export code-of-conduct text for a language ID
Returns: string
- - Code-of-conduct for the language
Author: Dipankar Pal dipankarpal5050@gmail.com
Param | Type | Description |
---|
lang_id | string | Language ID of the intended Language |
License
MIT (C) 2020 Dipankar Pal
Related
autobadge . qikstart . qikQR
Thanks