Function getCurrentLocale

  • Retrieves the current locale of the user's environment.

    Returns string

    A string representing the current locale. If the locale cannot be determined, the function returns an empty string.