mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 05:12:02 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -66,7 +66,10 @@ def format_list(
|
|||
# Some styles could be unavailable for the chosen locale
|
||||
if style not in locale.list_patterns:
|
||||
style = "standard"
|
||||
return lists.format_list([str(el) for el in lst], style, locale)
|
||||
try:
|
||||
return lists.format_list([str(el) for el in lst], style, locale)
|
||||
except KeyError:
|
||||
return lists.format_list([str(el) for el in lst], 'standard', locale)
|
||||
|
||||
|
||||
def py_to_js_locale(locale: str) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue