From 35ff72eb86ceb5d900136d0b97e06a552ee4455f Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 27 Jul 2021 15:00:35 -0400 Subject: [PATCH] Add badge description util --- src/utils/LocalizeBadgeDescription.ts | 6 ++++++ src/utils/index.ts | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 src/utils/LocalizeBadgeDescription.ts create mode 100644 src/utils/index.ts diff --git a/src/utils/LocalizeBadgeDescription.ts b/src/utils/LocalizeBadgeDescription.ts new file mode 100644 index 00000000..e5a046e0 --- /dev/null +++ b/src/utils/LocalizeBadgeDescription.ts @@ -0,0 +1,6 @@ +import { GetNitroInstance } from '../api'; + +export function LocalizeBadgeDescription(key: string): string +{ + return GetNitroInstance().localization.getBadgeDesc(key); +} diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 00000000..eb8e19e2 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,5 @@ +export * from './ColorUtils'; +export * from './LocalizeBadgeDescription'; +export * from './LocalizeBageName'; +export * from './LocalizeShortNumber'; +export * from './LocalizeText';