translation_file_changed
Clear the internal translations cache if a .mo file is modified.
def translation_file_changed(
sender: object,
file_path: pathlib.Path,
**kwargs: dict
) - > boolean
Clear the internal translations cache if a .mo file is modified.
Parameters
| Name | Type | Description |
|---|---|---|
| sender | object | The object that sent the file change signal. |
| file_path | pathlib.Path | The path object representing the file that was modified. |
| **kwargs | dict | Additional keyword arguments passed by the signal dispatcher. |
Returns
| Type | Description |
|---|---|
boolean | Returns True if the cache was cleared because a .mo file was modified, otherwise returns None. |