decord/source/modules/premium/powerups/utils/getGuildPowerupsBoostInfoText.tsx

32 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 12558
// Function ID: 12559
2026-07-20 16:05:17 +00:00
// Name: getGuildPowerupsBoostInfoText
// Dependencies: [4450, 1114, 2428, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGuildPowerupsBoostInfoText
// Module 12558 (getGuildPowerupsBoostInfoText)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import messagesProxyDefault from "messagesProxy" /* 2428 */;
import BoostedGuildTiers from "BoostedGuildTiers" /* 4450 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const BoostInfoType = BoostedGuildTiers.BoostInfoType;
const result = set.fileFinishedImporting("modules/premium/powerups/utils/getGuildPowerupsBoostInfoText.tsx");
2026-07-20 16:05:17 +00:00
export const getGuildPowerupsBoostInfoText = function getGuildPowerupsBoostInfoText(count, type) {
if (BoostInfoType.AVAILABLE === type) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { boostCount: null };
obj[0] = count;
2026-08-24 06:08:38 +00:00
return intl3.formatToPlainString(messagesProxyDefault.BdRXZA, obj);
2026-07-29 08:29:29 +00:00
} else if (tmp.SPENT === type) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { boostCount: null };
obj[0] = count;
2026-08-24 06:08:38 +00:00
return intl2.formatToPlainString(messagesProxyDefault.xvgIVG, obj);
2026-07-29 08:29:29 +00:00
} else if (tmp.TOTAL === type) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(messagesProxyDefault["/F7Z2y"]);
2026-07-20 16:05:17 +00:00
}
};