Use localized store titles in vehicle pack receipts
Include the catalogue titles in the entitlement price data and select the matching language in the client receipt formatter. Checked TypeScript, the GUI pack rebuild, and the patched Quirrel script.
This commit is contained in:
1 parent
2d9ac527fb
commit
b15cece581
2 files changed
+31
No files matched your search
@@ -70,6 +70,8 @@ function buildEntitlementsPriceBlk(products: readonly StoreProduct[]): BlkBlock
|
||||
setParam(block, 'ttl', { type: 'int', value: product.premiumDays! });
|
||||
} else if (product.kind === 'vehicle-pack' && product.vehicles) {
|
||||
setParam(block, 'onlinePurchase', { type: 'bool', value: true });
|
||||
setParam(block, 'wtoTitleEn', { type: 'string', value: product.title.en });
|
||||
setParam(block, 'wtoTitleZh', { type: 'string', value: product.title.zh });
|
||||
for (const vehicle of product.vehicles) {
|
||||
appendParam(block, 'aircraftGift', { type: 'string', value: vehicle.name });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user