public function get_primaries_langs(){
    $uid_languages =  self::get_appui_option_id('languages');
    $languages = options::get_instance()->full_tree($uid_languages);
    $primaries = array_values(array_filter($languages['items'], function($v) {
      return !empty($v['primary']);
    }));
    return $primaries;
  }