Skip to content

Commit

Permalink
Fix zimit lang vs zim-lang confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jun 11, 2024
1 parent cc69f29 commit 0cffc66
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions dispatcher/backend/src/common/schemas/offliners/zimit.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from marshmallow import fields, validate

from common.schemas import SerializableSchema, String, StringEnum
from common.schemas.fields import (
validate_output,
validate_zim_description,
validate_zim_filename,
)
from marshmallow import fields, validate

# https://github.com/puppeteer/puppeteer/blob/main/src/common/DeviceDescriptors.ts
# https://github.com/puppeteer/puppeteer/blob/
Expand Down Expand Up @@ -156,9 +155,17 @@ class Meta:

lang = String(
metadata={
"label": "Language",
"description": "ISO-639-3 (3 chars) language code of content. "
"If unspecified, will attempt to detect from main page, or use 'eng'",
"label": "Browser Language",
"description": "If set, sets the language used by the browser, should be"
"ISO 639 language[-country] code, e.g. `en` or `en-GB`",
}
)

zim_lang = String(
metadata={
"label": "ZIM Language",
"description": "Language metadata of ZIM (warc2zim --lang param). "
"ISO-639-3 code. Retrieved from homepage if found, fallback to `eng`",
}
)

Expand Down

0 comments on commit 0cffc66

Please sign in to comment.