Skip to content

Commit

Permalink
Fix for language codes with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Sep 18, 2024
1 parent 1c29c01 commit 8e78ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/fluent/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


# loose definition of BCP47-like strings
BCP_47_LANGUAGE = u'^[a-z]{2,8}(-[0-9a-zA-Z]{1,8})*$'
BCP_47_LANGUAGE = u'^[a-z]{2,8}([-_][0-9a-zA-Z]{1,8})*$'

LANG_SUFFIX = '_translated'

Expand Down

0 comments on commit 8e78ae7

Please sign in to comment.