30 lines
1.3 KiB
TypeScript
30 lines
1.3 KiB
TypeScript
// Module ID: 8214
|
|
// Function ID: 8215
|
|
// Name: getApplicationSubscriptionSystemMessageASTContent
|
|
// Dependencies: [1236, 2]
|
|
// Exports: getApplicationSubscriptionSystemMessageASTContent
|
|
|
|
// Module 8214 (getApplicationSubscriptionSystemMessageASTContent)
|
|
const result = require("set").fileFinishedImporting("modules/premium_apps/ApplicationSubscriptionSystemMessageUtils.tsx");
|
|
|
|
export const getApplicationSubscriptionSystemMessageASTContent = function getApplicationSubscriptionSystemMessageASTContent(arg0) {
|
|
let application;
|
|
let username;
|
|
let usernameOnClick;
|
|
({ application, username, usernameOnClick } = arg0);
|
|
if (null != application) {
|
|
const intl2 = require(1236) /* getSystemLocale */.intl;
|
|
let obj = { username: null, applicationName: null, usernameOnClick: null };
|
|
obj[0] = username;
|
|
obj[1] = application.name;
|
|
obj[2] = usernameOnClick;
|
|
let formatToPartsResult = intl2.formatToParts(require(1236) /* getSystemLocale */.t.Tes5Ou, obj);
|
|
} else {
|
|
const intl = require(1236) /* getSystemLocale */.intl;
|
|
obj = { username: null, usernameOnClick: null };
|
|
obj[0] = username;
|
|
obj[1] = usernameOnClick;
|
|
formatToPartsResult = intl.formatToParts(require(1236) /* getSystemLocale */.t.PUJtgi, obj);
|
|
}
|
|
return formatToPartsResult;
|
|
};
|