mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import { GetNitroInstance } from '..';
|
|
|
|
export const LocalizeBadgeDescription = (key: string) =>
|
|
{
|
|
let badgeDesc = GetNitroInstance().localization.getBadgeDesc(key);
|
|
|
|
if(!badgeDesc || !badgeDesc.length) badgeDesc = `badge_desc_${ key }`;
|
|
|
|
return badgeDesc;
|
|
}
|