get_language_from_path
No overview available.
def get_language_from_path(
path: string
) - > string
Extracts the language code from a given file path or URL to determine the appropriate localization context.
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The file system path or URI string containing language-specific directory or naming conventions. |
Returns
| Type | Description |
|---|---|
string | The identified language code (e.g., 'en', 'fr') extracted from the path components. |