Skip to content

Commit

Permalink
Added log message to see skipped languages.
Browse files Browse the repository at this point in the history
Description typos fixed
  • Loading branch information
pavel-karatsiuba committed Mar 5, 2023
1 parent e2db58d commit 25ee244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ npm i && npm start
The above will eventually output a ZIM file to ```dist/```

## Command line arguments
`--withoutLanguageVariants` uses to exclude languages with County variant. For example `en_ca` will not be present in zim with this argument.
`--withoutLanguageVariants` uses to exclude languages with Country variant. For example `en_CA` will not be present in zim with this argument.

Available only on GET step:
```bash
Expand Down
1 change: 1 addition & 0 deletions steps/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const fetchLanguages = async (): Promise<void> => {
const url = $(item).find('td.list-highlight-background:first-child a').attr('href')
const slug = /locale=(.*)$/.exec(url)?.pop()
if (argv.withoutLanguageVariants && slug.includes('_')) {
log.info(`Skipping ${slug} language`)
return
}
const name = $(item).find('td.list-highlight-background:first-child a span').text()
Expand Down

0 comments on commit 25ee244

Please sign in to comment.