MCPcopy Index your code
hub / github.com/MALSync/MALSync / getStatusText

Function getStatusText

src/utils/general.ts:466–487  ·  view source on GitHub ↗
(type: 'anime' | 'manga', state)

Source from the content-addressed store, hash-verified

464}
465
466export function getStatusText(type: 'anime' | 'manga', state) {
467 switch (state) {
468 case 1:
469 return api.storage.lang(`UI_Status_watching_${type}`);
470 case 2:
471 return api.storage.lang('UI_Status_Completed');
472 case 3:
473 return api.storage.lang('UI_Status_OnHold');
474 case 4:
475 return api.storage.lang('UI_Status_Dropped');
476 case 6:
477 return api.storage.lang(`UI_Status_planTo_${type}`);
478 case 7:
479 return api.storage.lang('UI_Status_All');
480 case 23:
481 return api.storage.lang(`UI_Status_Rewatching_${type}`);
482 case 24:
483 return api.storage.lang('UI_Status_Considering');
484 default:
485 return '';
486 }
487}
488
489// eslint-disable-next-line consistent-return
490export function notifications(url: string, title: string, message: string, iconUrl = '') {

Callers

nothing calls this directly

Calls 1

langMethod · 0.80

Tested by

no test coverage detected