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 ecb9bd8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions dispatcher/backend/src/common/schemas/offliners/zimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,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 ecb9bd8

Please sign in to comment.