Skip to content

Conversation

mzuenni
Copy link
Collaborator

@mzuenni mzuenni commented Oct 20, 2025

Reworked parsing of languages.yaml

Copy link
Owner

@RagnarGrootKoerkamp RagnarGrootKoerkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't run locally and didn't check super closely, but seems fine

assert isinstance(key, str)
warn(f"found unknown languages.yaml key: '{key}' for '{lang_id}'")

def __lt__(self, other: "Language") -> bool:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why/where do we need < on languages?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do a sort on all candidates in line 295

@mzuenni mzuenni merged commit f5c1c8c into main Oct 20, 2025
6 checks passed
@mzuenni mzuenni deleted the languages branch October 20, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants