Skip to content

Commit

Permalink
fix: Fix indonesian language support
Browse files Browse the repository at this point in the history
Refs #763
  • Loading branch information
last-partizan committed Oct 17, 2024
1 parent 785133b commit a1106d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modeltranslation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _build_localized_verbose_name(verbose_name: Any, lang: str) -> str:


def _join_css_class(bits: list[str], offset: int) -> str:
if "-".join(bits[-offset:]) in settings.AVAILABLE_LANGUAGES + ["en-us"]:
if "-".join(bits[-offset:]) in settings.AVAILABLE_LANGUAGES + ["en-us", "ind"]:
return "%s-%s" % ("_".join(bits[: len(bits) - offset]), "_".join(bits[-offset:]))
return ""

Expand Down

0 comments on commit a1106d1

Please sign in to comment.