def list_avail():
 cmd = 'locale -a'
 out = __salt__['cmd.run'](cmd).split('\n')
 return out

def list_avail ( ) : cmd = 'locale -a' out = __salt__ [ 'cmd.run' ] ( cmd ) . split ( '\n' ) return out
lists available locales cli example: .