Package Exports
- code-conduct
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-conduct) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

CODE-CONDUCT
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 ⚡
Usage
For complete Documentation see : code-conduct
const coc = require('code-conduct');lang_id()
console.log(coc.en());
/* =>
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members .........
*/ get_coc(lang_id)
console.log(coc.get_coc("bn"));
/* =># কনট্রিবিউটরদের আচরনবিধি
## আমাদের অঙ্গীকার
গোষ্ঠীর অবাধ এবং স্বাগতপূর্ণ ভাবমূর্তি বজায় রাখার আগ্রহে,
আমরা কনট্রিবিউটর এবং মেনটেইনার হিসেবে অঙ্গীকার করছি যে,
এই প্রজেক্ট ও গোষ্ঠীতে যোগদান বয়স, শরীর, অক্ষমতা, জাতি,
লিঙ্গ পরিচয় ও অভিব্যক্তি, অভিজ্ঞতা, জাতীয়তা, চেহারা,
বর্ণ, ধর্ম, যৌন পরিচয় ও অভিব্যক্তি নির্বিশেষে সবার জন্য
একটি হয়রানি-মুক্ত অভিজ্ঞতা করব।
## আমাদের মানদন্ড
ইতিবাচক পরিবেশ তৈরী করতে ব্যবহারের কিছু উদাহরন:
* স্বাগতপূর্ণ ভাষা ব্যবহার
* বিভিন্ন দৃষ্টিভঙ্গি এবং অভিজ্ঞতার প্রতি সম্মান
* মার্জিত ভাবে গঠনমূলক সমালোচনা গ্রহণ
* গোষ্ঠীর উন্নতিকে প্রাধান্য দেওয়া
* গোষ্ঠীর বাকি সদস্যদের প্রতি সহমর্মিতা দেখানো
গ্রহণযোগ্য নয়, অংশগ্রহণকারীদের এমন আচরণের উদাহরণ:......
*/get_code(lang_name)
console.log(coc.get_code("English"));
// => ensupported_lang()
console.log(coc.supported_langs());
/* =>
[
'bn', 'bs', 'de', 'el',
'en', 'es', 'fa_ir', 'fr',
'hi', 'id', 'is', 'iw',
'ja', 'kn', 'ko', 'mk',
'nl', 'pl', 'pt_br', 'pt',
'ro', 'ru', 'sl', 'sv',
'tr', 'uk', 'zh_cn', 'zh_tw'
]
*/get_lang(language_id)
console.log(coc.get_lang("ko"));
//=> Koreanall_langs()
console.log(coc.all_langs());
/*=>
{
aa: 'Afar',
ab: 'Abkhazian',
af: 'Afrikaans',
am: 'Amharic',
ar: 'Arabic',
ar_ae: 'Arabic (U.A.E.)',
ar_bh: 'Arabic (Bahrain)',
ar_dz: 'Arabic (Algeria)',
ar_eg: 'Arabic (Egypt)',
ar_iq: 'Arabic (Iraq)',
ar_jo: 'Arabic (Jordan)',
ar_kw: 'Arabic (Kuwait)',
ar_lb: 'Arabic (Lebanon)',
ar_ly: 'Arabic (libya)',
ar_ma: 'Arabic (Morocco)',
ar_om: 'Arabic (Oman)',
ar_qa: 'Arabic (Qatar)',
ar_sa: 'Arabic (Saudi Arabia)',
ar_sy: 'Arabic (Syria)',
ar_tn: 'Arabic (Tunisia)',
ar_ye: 'Arabic (Yemen)',
as: 'Assamese',
ay: 'Aymara', ................
}
*/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