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

32 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12112
// Function ID: 12113
2026-07-20 16:05:17 +00:00
// Name: getGuildPowerupsBoostInfoText
2026-08-25 06:04:03 +00:00
// Dependencies: [4267, 1236, 2369, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGuildPowerupsBoostInfoText
2026-08-25 06:04:03 +00:00
// Module 12112 (getGuildPowerupsBoostInfoText)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import messagesProxyDefault from "messagesProxy" /* 2369 */;
import BoostedGuildTiers from "BoostedGuildTiers" /* 4267 */;
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
}
};