Skip to content

Commit

Permalink
Merge pull request #62 from heliomar-pena/dev
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
heliomar-pena authored Sep 27, 2024
2 parents ccb9045 + d708a52 commit 23e3ba9
Show file tree
Hide file tree
Showing 48 changed files with 4,688 additions and 2,087 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20

- run: npm ci
- run: npm test
- run: npm ci
- run: npm test

publish-gpr:
needs: build
Expand All @@ -28,10 +28,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"
always-auth: true
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [14, 16, 18, 20, 21]
node-version: [16, 18, 20, 21]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm test
npx lint-staged
npm run prettier
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.js": ["prettier --write", "eslint --fix", "eslint"],
"*.{json,md}": ["prettier --write"]
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
example
168 changes: 144 additions & 24 deletions ALL-LANGUAGES-CODES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"libreTranslate": "sq"
},
"am": { "name": "Amharic", "google": "am", "bing": "am" },
"ar": { "name": "Arabic", "google": "ar", "bing": "ar", "libreTranslate": "ar" },
"ar": {
"name": "Arabic",
"google": "ar",
"bing": "ar",
"libreTranslate": "ar"
},
"an": { "name": "Aragonese" },
"hy": { "name": "Armenian", "google": "hy", "bing": "hy" },
"as": { "name": "Assamese", "bing": "as" },
Expand Down Expand Up @@ -59,12 +64,32 @@
"co": { "name": "Corsican", "google": "co" },
"cr": { "name": "Cree" },
"hr": { "name": "Croatian", "google": "hr", "bing": "hr" },
"cs": { "name": "Czech", "google": "cs", "bing": "cs", "libreTranslate": "cs" },
"da": { "name": "Danish", "google": "da", "bing": "da", "libreTranslate": "da" },
"cs": {
"name": "Czech",
"google": "cs",
"bing": "cs",
"libreTranslate": "cs"
},
"da": {
"name": "Danish",
"google": "da",
"bing": "da",
"libreTranslate": "da"
},
"dv": { "name": "Divehi, Dhivehi, Maldivian", "bing": "dv" },
"nl": { "name": "Dutch, Flemish", "google": "nl", "bing": "nl", "libreTranslate": "nl" },
"nl": {
"name": "Dutch, Flemish",
"google": "nl",
"bing": "nl",
"libreTranslate": "nl"
},
"dz": { "name": "Dzongkha" },
"en": { "name": "English", "google": "en", "bing": "en", "libreTranslate": "en" },
"en": {
"name": "English",
"google": "en",
"bing": "en",
"libreTranslate": "en"
},
"eo": { "name": "Esperanto", "google": "eo", "libreTranslate": "eo" },
"et": {
"name": "Estonian",
Expand All @@ -75,22 +100,47 @@
"ee": { "name": "Ewe" },
"fo": { "name": "Faroese", "bing": "fo" },
"fj": { "name": "Fijian", "bing": "fj" },
"fi": { "name": "Finnish", "google": "fi", "bing": "fi", "libreTranslate": "fi" },
"fr": { "name": "French", "google": "fr", "bing": "fr", "libreTranslate": "fr" },
"fi": {
"name": "Finnish",
"google": "fi",
"bing": "fi",
"libreTranslate": "fi"
},
"fr": {
"name": "French",
"google": "fr",
"bing": "fr",
"libreTranslate": "fr"
},
"fy": { "name": "Western Frisian", "google": "fy" },
"ff": { "name": "Fulah" },
"gd": { "name": "Gaelic, Scottish Gaelic", "google": "gd" },
"gl": { "name": "Galician", "google": "gl", "bing": "gl" },
"lg": { "name": "Ganda", "bing": "lug" },
"ka": { "name": "Georgian", "google": "ka", "bing": "ka" },
"de": { "name": "German", "google": "de", "bing": "de", "libreTranslate": "de"},
"el": { "name": "Greek, Modern (1453–)", "google": "el", "bing": "el", "libreTranslate": "el" },
"de": {
"name": "German",
"google": "de",
"bing": "de",
"libreTranslate": "de"
},
"el": {
"name": "Greek, Modern (1453–)",
"google": "el",
"bing": "el",
"libreTranslate": "el"
},
"kl": { "name": "Kalaallisut, Greenlandic" },
"gn": { "name": "Guarani" },
"gu": { "name": "Gujarati", "google": "gu", "bing": "gu" },
"ht": { "name": "Haitian, Haitian Creole", "google": "ht", "bing": "ht" },
"ha": { "name": "Hausa", "google": "ha", "bing": "ha" },
"he": { "name": "Hebrew", "google": "iw", "bing": "he", "libreTranslate": "he" },
"he": {
"name": "Hebrew",
"google": "iw",
"bing": "he",
"libreTranslate": "he"
},
"hz": { "name": "Herero" },
"hi": {
"name": "Hindi",
Expand All @@ -99,25 +149,45 @@
"libreTranslate": "hi"
},
"ho": { "name": "Hiri Motu" },
"hu": { "name": "Hungarian", "google": "hu", "bing": "hu", "libreTranslate": "hu" },
"hu": {
"name": "Hungarian",
"google": "hu",
"bing": "hu",
"libreTranslate": "hu"
},
"is": { "name": "Icelandic", "google": "is", "bing": "is" },
"io": { "name": "Ido" },
"ig": { "name": "Igbo", "google": "ig", "bing": "ig" },
"id": { "name": "Indonesian", "google": "id", "bing": "id", "libreTranslate": "id" },
"id": {
"name": "Indonesian",
"google": "id",
"bing": "id",
"libreTranslate": "id"
},
"ia": {
"name": "Interlingua (International Auxiliary Language Association)"
},
"ie": { "name": "Interlingue, Occidental" },
"iu": { "name": "Inuktitut", "bing": "iu" },
"ik": { "name": "Inupiaq" },
"ga": { "name": "Irish", "google": "ga", "bing": "ga", "libreTranslate": "ga" },
"ga": {
"name": "Irish",
"google": "ga",
"bing": "ga",
"libreTranslate": "ga"
},
"it": {
"name": "Italian",
"google": "it",
"bing": "it",
"libreTranslate": "it"
},
"ja": { "name": "Japanese", "google": "ja", "bing": "ja", "libreTranslate": "ja" },
"ja": {
"name": "Japanese",
"google": "ja",
"bing": "ja",
"libreTranslate": "ja"
},
"jv": { "name": "Javanese", "google": "jw" },
"kn": { "name": "Kannada", "google": "kn", "bing": "kn" },
"kr": { "name": "Kanuri" },
Expand All @@ -129,7 +199,12 @@
"ky": { "name": "Kirghiz, Kyrgyz", "google": "ky", "bing": "ky" },
"kv": { "name": "Komi" },
"kg": { "name": "Kongo" },
"ko": { "name": "Korean", "google": "ko", "bing": "ko", "libreTranslate": "ko" },
"ko": {
"name": "Korean",
"google": "ko",
"bing": "ko",
"libreTranslate": "ko"
},
"kj": { "name": "Kuanyama, Kwanyama" },
"ku": { "name": "Kurdish", "google": "ku", "bing": "ku" },
"lo": { "name": "Lao", "google": "lo", "bing": "lo" },
Expand Down Expand Up @@ -192,9 +267,24 @@
"os": { "name": "Ossetian, Ossetic" },
"pi": { "name": "Pali" },
"ps": { "name": "Pashto, Pushto", "google": "ps", "bing": "ps" },
"fa": { "name": "Persian", "google": "fa", "bing": "fa", "libreTranslate": "fa" },
"pl": { "name": "Polish", "google": "pl", "bing": "pl", "libreTranslate": "pl" },
"pt": { "name": "Portuguese", "google": "pt", "bing": "pt", "libreTranslate": "pt" },
"fa": {
"name": "Persian",
"google": "fa",
"bing": "fa",
"libreTranslate": "fa"
},
"pl": {
"name": "Polish",
"google": "pl",
"bing": "pl",
"libreTranslate": "pl"
},
"pt": {
"name": "Portuguese",
"google": "pt",
"bing": "pt",
"libreTranslate": "pt"
},
"pa": { "name": "Punjabi, Panjabi", "google": "pa", "bing": "pa" },
"qu": { "name": "Quechua" },
"ro": {
Expand All @@ -205,7 +295,12 @@
},
"rm": { "name": "Romansh" },
"rn": { "name": "Rundi", "bing": "run" },
"ru": { "name": "Russian", "google": "ru", "bing": "ru", "libreTranslate": "ru" },
"ru": {
"name": "Russian",
"google": "ru",
"bing": "ru",
"libreTranslate": "ru"
},
"se": { "name": "Northern Sami" },
"sm": { "name": "Samoan", "google": "sm", "bing": "sm" },
"sg": { "name": "Sango" },
Expand All @@ -220,7 +315,12 @@
"sn": { "name": "Shona", "google": "sn", "bing": "sn" },
"sd": { "name": "Sindhi", "google": "sd", "bing": "sd" },
"si": { "name": "Sinhala, Sinhalese", "google": "si", "bing": "si" },
"sk": { "name": "Slovak", "google": "sk", "bing": "sk", "libreTranslate": "sk" },
"sk": {
"name": "Slovak",
"google": "sk",
"bing": "sk",
"libreTranslate": "sk"
},
"sl": {
"name": "Slovenian",
"google": "sl",
Expand All @@ -229,11 +329,21 @@
},
"so": { "name": "Somali", "google": "so", "bing": "so" },
"st": { "name": "Southern Sotho" },
"es": { "name": "Spanish, Castilian", "google": "es", "bing": "es", "libreTranslate": "es" },
"es": {
"name": "Spanish, Castilian",
"google": "es",
"bing": "es",
"libreTranslate": "es"
},
"su": { "name": "Sundanese", "google": "su" },
"sw": { "name": "Swahili", "google": "sw", "bing": "sw" },
"ss": { "name": "Swati" },
"sv": { "name": "Swedish", "google": "sv", "bing": "sv", "libreTranslate": "sv" },
"sv": {
"name": "Swedish",
"google": "sv",
"bing": "sv",
"libreTranslate": "sv"
},
"tl": { "name": "Tagalog", "google": "tl", "libreTranslate": "tl" },
"ty": { "name": "Tahitian", "bing": "ty" },
"tg": { "name": "Tajik", "google": "tg" },
Expand All @@ -251,7 +361,12 @@
"to": { "name": "Tonga (Tonga Islands)" },
"ts": { "name": "Tsonga" },
"tn": { "name": "Tswana" },
"tr": { "name": "Turkish", "google": "tr", "bing": "tr", "libreTranslate": "tr" },
"tr": {
"name": "Turkish",
"google": "tr",
"bing": "tr",
"libreTranslate": "tr"
},
"tk": { "name": "Turkmen", "bing": "tk" },
"tw": { "name": "Twi" },
"ug": { "name": "Uighur, Uyghur", "bing": "ug" },
Expand All @@ -269,7 +384,12 @@
},
"uz": { "name": "Uzbek", "google": "uz", "bing": "uz" },
"ve": { "name": "Venda" },
"vi": { "name": "Vietnamese", "google": "vi", "bing": "vi", "libreTranslate": "vi" },
"vi": {
"name": "Vietnamese",
"google": "vi",
"bing": "vi",
"libreTranslate": "vi"
},
"vo": { "name": "Volapük" },
"wa": { "name": "Walloon" },
"cy": { "name": "Welsh", "google": "cy", "bing": "cy" },
Expand Down
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
Loading

0 comments on commit 23e3ba9

Please sign in to comment.