vibe.locale_utils

Locale-related utility functions.

This module provides low-level locale utilities that can be used across the codebase without creating circular dependencies.

get_effective_locale

get_effective_locale(templateconfig: Mapping[str, Any]) -> str

Get the effective locale for a template configuration.

Parameters:
  • templateconfig (Mapping[str, Any]) –

    Dictionary containing template configuration including locale

Returns:
  • str

    The effective locale string, either from template config or current locale