Add badge description util

This commit is contained in:
Bill 2021-07-27 15:00:35 -04:00
parent 88233000bc
commit 35ff72eb86
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import { GetNitroInstance } from '../api';
export function LocalizeBadgeDescription(key: string): string
{
return GetNitroInstance().localization.getBadgeDesc(key);
}

5
src/utils/index.ts Normal file
View File

@ -0,0 +1,5 @@
export * from './ColorUtils';
export * from './LocalizeBadgeDescription';
export * from './LocalizeBageName';
export * from './LocalizeShortNumber';
export * from './LocalizeText';