decord/source/modules/premium_apps/ApplicationSubscriptionSystemMessageUtils.tsx

31 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-28 06:19:39 +00:00
// Module ID: 7850
// Function ID: 7851
2026-07-20 16:05:17 +00:00
// Name: getApplicationSubscriptionSystemMessageASTContent
2026-07-29 08:29:29 +00:00
// Dependencies: [1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: getApplicationSubscriptionSystemMessageASTContent
2026-08-28 06:19:39 +00:00
// Module 7850 (getApplicationSubscriptionSystemMessageASTContent)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
const result = set.fileFinishedImporting("modules/premium_apps/ApplicationSubscriptionSystemMessageUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getApplicationSubscriptionSystemMessageASTContent = function getApplicationSubscriptionSystemMessageASTContent(arg0) {
({ application, username, usernameOnClick } = arg0);
if (null != application) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { username: null, applicationName: null, usernameOnClick: null };
obj[0] = username;
obj[1] = application.name;
obj[2] = usernameOnClick;
2026-08-24 06:08:38 +00:00
let formatToPartsResult = intl2.formatToParts(getSystemLocale.t.Tes5Ou, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null, usernameOnClick: null };
obj[0] = username;
obj[1] = usernameOnClick;
2026-08-24 06:08:38 +00:00
formatToPartsResult = intl.formatToParts(getSystemLocale.t.PUJtgi, obj);
2026-07-20 16:05:17 +00:00
}
return formatToPartsResult;
};