Skip to content

Commit

Permalink
fix: Beet plugin ignored dialect configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeUtan committed Apr 7, 2021
1 parent 3dd01e0 commit 1958900
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions babelbox/integration/beet.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ def beet_default(ctx: Context):
prefix_identifiers = config.get("prefix_identifiers")
dialect = config.get("dialect")

ctx.require(create_babelbox_plugin(load, csv_dialect_overwrites, prefix_identifiers))
ctx.require(
create_babelbox_plugin(load, dialect, csv_dialect_overwrites, prefix_identifiers)
)


def create_babelbox_plugin(
load: Iterable[str] = (),
dialect: Optional[str] = None,
csv_dialect_overwrites: Optional[dict] = None,
prefix_identifiers: bool = False,
) -> Plugin:
Expand All @@ -33,7 +36,7 @@ def plugin(ctx: Context):
languages = babelbox.load_languages(
path,
prefix_identifiers,
dialect=None,
dialect,
csv_dialect_overwrites=csv_dialect_overwrites,
)

Expand Down

0 comments on commit 1958900

Please sign in to comment.