@@ -189,7 +189,7 @@ def __init__(
189
189
* args : Any ,
190
190
config_file_path : str | None = None ,
191
191
paths : list [str ] | None = None ,
192
- locale : str = "en" ,
192
+ language : str = "en" ,
193
193
load_external_modules : bool = False ,
194
194
** kwargs : Any ,
195
195
) -> None :
@@ -199,7 +199,7 @@ def __init__(
199
199
*args: Handler name, theme and custom templates.
200
200
config_file_path: The MkDocs configuration file path.
201
201
paths: A list of paths to use as Griffe search paths.
202
- locale : The locale to use when rendering content.
202
+ language : The language to use when rendering content.
203
203
load_external_modules: Load external modules when resolving aliases.
204
204
**kwargs: Same thing, but with keyword arguments.
205
205
"""
@@ -222,7 +222,7 @@ def __init__(
222
222
self ._paths = search_paths
223
223
self ._modules_collection : ModulesCollection = ModulesCollection ()
224
224
self ._lines_collection : LinesCollection = LinesCollection ()
225
- self ._locale = locale
225
+ self ._language = language
226
226
227
227
@classmethod
228
228
def load_inventory (
@@ -357,8 +357,8 @@ def render(self, data: CollectorItem, config: Mapping[str, Any]) -> str: # noqa
357
357
"config" : final_config ,
358
358
data .kind .value : data ,
359
359
"heading_level" : heading_level ,
360
+ "language" : self ._language ,
360
361
"root" : True ,
361
- "locale" : self ._locale ,
362
362
},
363
363
)
364
364
@@ -431,7 +431,7 @@ def get_handler(
431
431
custom_templates : str | None = None ,
432
432
config_file_path : str | None = None ,
433
433
paths : list [str ] | None = None ,
434
- locale : str = "en" ,
434
+ language : str = "en" ,
435
435
load_external_modules : bool = False ,
436
436
** config : Any , # noqa: ARG001
437
437
) -> PythonHandler :
@@ -442,7 +442,7 @@ def get_handler(
442
442
custom_templates: Directory containing custom templates.
443
443
config_file_path: The MkDocs configuration file path.
444
444
paths: A list of paths to use as Griffe search paths.
445
- locale : The locale to use when rendering content.
445
+ language : The language to use when rendering content.
446
446
load_external_modules: Load external modules when resolving aliases.
447
447
**config: Configuration passed to the handler.
448
448
@@ -455,6 +455,6 @@ def get_handler(
455
455
custom_templates = custom_templates ,
456
456
config_file_path = config_file_path ,
457
457
paths = paths ,
458
- locale = locale ,
458
+ language = language ,
459
459
load_external_modules = load_external_modules ,
460
460
)
0 commit comments