[formatter] add 'L' conversion

to map ISO 639-1 language codes to their full names
This commit is contained in:
Mike Fährmann
2025-06-22 13:43:03 +02:00
parent 5e0cdac337
commit 71461ceaba
3 changed files with 13 additions and 2 deletions

View File

@@ -485,6 +485,7 @@ _CONVERSIONS = {
"j": util.json_dumps,
"t": str.strip,
"n": len,
"L": util.code_to_language,
"T": util.datetime_to_timestamp_string,
"d": text.parse_timestamp,
"D": util.to_datetime,