mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
fixed badge description
This commit is contained in:
parent
ff46a89e79
commit
efa419ae37
@ -2,7 +2,7 @@ import { GetNitroInstance } from '..';
|
|||||||
|
|
||||||
export const LocalizeBadgeDescription = (key: string) =>
|
export const LocalizeBadgeDescription = (key: string) =>
|
||||||
{
|
{
|
||||||
let badgeDesc = GetNitroInstance().localization.getBadgeName(key);
|
let badgeDesc = GetNitroInstance().localization.getBadgeDesc(key);
|
||||||
|
|
||||||
if(!badgeDesc || !badgeDesc.length) badgeDesc = `badge_desc_${ key }`;
|
if(!badgeDesc || !badgeDesc.length) badgeDesc = `badge_desc_${ key }`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user