Skip to content

Commit

Permalink
Include "en" in default list of supported language codes
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Oct 16, 2023
1 parent 2841f63 commit c3e3f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/PreferenceParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(self, file: Path, is_docker: bool = False) -> None:
self.validate_fonts = True
self.season_folder_format = self.DEFAULT_SEASON_FOLDER_FORMAT
self.sync_specials = True
self.supported_language_codes = []
self.supported_language_codes = ['en']

self.archive_directory = None
self.create_archive = False
Expand Down Expand Up @@ -484,6 +484,7 @@ def __parse_yaml_options(self) -> None:
self.sync_specials = value

if (value := self.get('options', 'language_codes', type_=list)) is not None:
value = set(value) | set(('en'))
if all(code in SUPPORTED_LANGUAGE_CODES for code in value):
self.supported_language_codes = value
else:
Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.14.4-develop23
v1.14.4-develop24

0 comments on commit c3e3f0c

Please sign in to comment.