mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36:27 +01:00
Add badge description util
This commit is contained in:
parent
88233000bc
commit
35ff72eb86
6
src/utils/LocalizeBadgeDescription.ts
Normal file
6
src/utils/LocalizeBadgeDescription.ts
Normal 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
5
src/utils/index.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export * from './ColorUtils';
|
||||
export * from './LocalizeBadgeDescription';
|
||||
export * from './LocalizeBageName';
|
||||
export * from './LocalizeShortNumber';
|
||||
export * from './LocalizeText';
|
Loading…
Reference in New Issue
Block a user