def __virtual__():
    if salt.utils.is_windows():
        return (False, 'Cannot load locale module: windows platforms are unsupported')

    return __virtualname__
Only work on POSIX-like systems
dataset/ETHPy150Open saltstack/salt/salt/modules/localemod.py/__virtual__