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 = ;
lang_id
()
console;/* =># Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we ascontributors and maintainers pledge to making participation in our project andour community a harassment-free experience for everyone, regardless of age, bodysize, disability, ethnicity, gender identity and expression, level of experience,nationality, personal appearance, race, religion, or sexual identity andorientation. ## Our Standards Examples of behavior that contributes to creating a positive environmentinclude: * 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;/* =># কনট্রিবিউটরদের আচরনবিধি ## আমাদের অঙ্গীকার গোষ্ঠীর অবাধ এবং স্বাগতপূর্ণ ভাবমূর্তি বজায় রাখার আগ্রহে, আমরা কনট্রিবিউটর এবং মেনটেইনার হিসেবে অঙ্গীকার করছি যে, এই প্রজেক্ট ও গোষ্ঠীতে যোগদান বয়স, শরীর, অক্ষমতা, জাতি, লিঙ্গ পরিচয় ও অভিব্যক্তি, অভিজ্ঞতা, জাতীয়তা, চেহারা, বর্ণ, ধর্ম, যৌন পরিচয় ও অভিব্যক্তি নির্বিশেষে সবার জন্য একটি হয়রানি-মুক্ত অভিজ্ঞতা করব। ## আমাদের মানদন্ড ইতিবাচক পরিবেশ তৈরী করতে ব্যবহারের কিছু উদাহরন: * স্বাগতপূর্ণ ভাষা ব্যবহার* বিভিন্ন দৃষ্টিভঙ্গি এবং অভিজ্ঞতার প্রতি সম্মান* মার্জিত ভাবে গঠনমূলক সমালোচনা গ্রহণ* গোষ্ঠীর উন্নতিকে প্রাধান্য দেওয়া* গোষ্ঠীর বাকি সদস্যদের প্রতি সহমর্মিতা দেখানো গ্রহণযোগ্য নয়, অংশগ্রহণকারীদের এমন আচরণের উদাহরণ:...... */
get_code(lang_name)
console;// => en
supported_lang()
console;/* => [ '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;//=> Korean
all_langs()
console;/*=>{ 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
Object
all_langs ⇒ A module that returns a list of all languages
Returns: Object
- - Object of all language in { id : name } format
Array.<string>
supported_langs ⇒ 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
string
get_code ⇒ 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 |
string
get_lang ⇒ 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 |
string
get_coc ⇒ 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