feat(remittance): add enable_remittance plugin setting to catalog and seeds
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user