feat(remittance): add enable_remittance plugin setting to catalog and seeds

This commit is contained in:
2026-10-27 18:07:10 +03:30
parent f0989e03e3
commit a98fdb8d9e
4 changed files with 98 additions and 29 deletions
+6
View File
@@ -93,6 +93,11 @@ export const PLUGIN_CATALOG_SEED: Array<{
titleFa: 'نمودارها',
description: 'نمایش و فعال‌سازی نمودارها در اپلیکیشن.',
},
{
settingKey: 'enable_remittance',
titleFa: 'حواله',
description: 'روشن: امکان انتقال وجه یا محصول از کیف پول به سایر شماره‌ها توسط کاربران فعال است. خاموش: این امکان غیرفعال است.',
},
];
export function daysToPlanMonths(days: number): 0 | 1 | 3 | 6 | 12 {
@@ -133,6 +138,7 @@ export function inferSettingKeyFromName(name: string): string | null {
[/لندینگ/, 'has_landing'],
[/مجوز/, 'permision__enabled'],
[/نمودار/, 'has_charts'],
[/حواله/, 'enable_remittance'],
];
for (const [re, key] of rules) {
if (re.test(n)) return key;