Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Jul 9, 2024
1 parent 8557fd2 commit c2bd424
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/extractor/parse/translations/_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ class TranslationLink(ResolvableLink):

lang: str
"""Raw language code."""
language: Language
"""Parsed and normalized language. Populated automatically post-init."""

def __post_init__(self) -> None:
"""Parse string lang into normalised language."""
self.language = Language.get(self.lang, normalize=True)
@property
def language(self) -> Language:
"""Parsed and normalized language. Populated automatically post-init."""
return Language.get(self.lang, normalize=True)

0 comments on commit c2bd424

Please sign in to comment.