diff --git a/dispatcher/backend/src/common/schemas/offliners/zimit.py b/dispatcher/backend/src/common/schemas/offliners/zimit.py index c18579c4..edcd56b7 100644 --- a/dispatcher/backend/src/common/schemas/offliners/zimit.py +++ b/dispatcher/backend/src/common/schemas/offliners/zimit.py @@ -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/ @@ -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`", } )