xmpp.chapril.org-conversejs/src/plugins/profile/utils.js

18 lines
443 B
JavaScript
Raw Normal View History

import { __ } from 'i18n';
export function getPrettyStatus (stat) {
if (stat === 'chat') {
return __('online');
} else if (stat === 'dnd') {
return __('busy');
} else if (stat === 'xa') {
return __('away for long');
} else if (stat === 'away') {
return __('away');
} else if (stat === 'offline') {
return __('offline');
} else {
return __(stat) || __('online');
}
}