1.1.1 • Published 4 years ago

code-conduct v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Supported Languages

  1. Bengali
  2. Bosnian
  3. German
  4. Greek
  5. English
  6. Spanish
  7. Farsi (Iran)
  8. French
  9. Hindi
  10. Indonesian
  11. Icelandic
  12. Hebrew
  13. Japanese
  14. Kannada
  15. Korean
  16. FYRO Macedonian
  17. Dutch
  18. Polish
  19. Portuguese (Brazil)
  20. Portuguese
  21. Romanian
  22. Russian
  23. Slovenian
  24. Swedish
  25. Turkish
  26. Ukrainian
  27. Chinese (China)
  28. 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());
/* =>
# 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"));
// => en

supported_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"));
//=> Korean

all_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

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

ParamTypeDescription
lang_namestringAn 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

ParamTypeDescription
lang_idstringLanguage 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

ParamTypeDescription
lang_idstringLanguage ID of the intended Language

License

MIT (C) 2020 Dipankar Pal

Related

autobadge . qikstart . qikQR

Thanks