@nocobase/flow-engine
Version:
A standalone flow engine for NocoBase, managing workflows, models, and actions.
142 lines (141 loc) • 6.04 kB
TypeScript
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export declare const locales: {
'en-US': {
"Invalid model provided": string;
"Flow with key {{flowKey}} not found": string;
"Step with key {{stepKey}} not found": string;
Configuration: string;
"Step configuration": string;
"This step has no configurable parameters": string;
"Failed to import Formily components": string;
"Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider": string;
"Configuration saved": string;
"Error saving configuration": string;
"Error saving configuration, please check console": string;
"Failed to import FormDialog": string;
OK: string;
Cancel: string;
"Step parameter configuration": string;
"Error submitting form": string;
"Complete configuration": string;
"Previous step": string;
"Form validation failed": string;
"Next step": string;
"Failed to import FormDialog or FormStep": string;
"UID copied to clipboard": string;
"Copy failed": string;
"Copy failed, please copy [{{uid}}] manually.": string;
"Confirm delete": string;
"Are you sure you want to delete this item? This action cannot be undone.": string;
"Delete operation failed": string;
"Delete failed": string;
"Delete operation failed, please check the console for details.": string;
"Configuration popup cancelled or error": string;
"Failed to get action {{action}}": string;
"Failed to get configurable flows for model {{model}}": string;
"Copy UID": string;
Delete: string;
"This is likely a NocoBase internals bug. Please open an issue at": string;
here: string;
"Render failed": string;
Feedback: string;
"Download logs": string;
"Copy error info": string;
"Try again": string;
"Data blocks": string;
"Filter blocks": string;
"Other blocks": string;
"Invalid input parameters": string;
"Invalid subModelKey format": string;
"Submodel not found": string;
"Expected array for subModel": string;
"Array index out of bounds": string;
"Expected object for subModel": string;
"No createModelOptions found for item": string;
"createModelOptions must specify use property": string;
"Failed to add sub model": string;
"Failed to destroy model after creation error": string;
Add: string;
Name: string;
"Model with ID {{uid}} not found": string;
"Common actions": string;
"This variable is not available": string;
};
'zh-CN': {
"Invalid model provided": string;
"Flow with key {{flowKey}} not found": string;
"Step with key {{stepKey}} not found": string;
Configuration: string;
"Step configuration": string;
"This step has no configurable parameters": string;
"Failed to import Formily components": string;
"Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider": string;
"Configuration saved": string;
"Error saving configuration": string;
"Error saving configuration, please check console": string;
"Failed to import FormDialog": string;
OK: string;
Cancel: string;
"Step parameter configuration": string;
"Error submitting form": string;
"Complete configuration": string;
"Previous step": string;
"Form validation failed": string;
"Next step": string;
"Failed to import FormDialog or FormStep": string;
"UID copied to clipboard": string;
"Copy failed": string;
"Copy failed, please copy [{{uid}}] manually.": string;
"Confirm delete": string;
"Are you sure you want to delete this item? This action cannot be undone.": string;
"Delete operation failed": string;
"Delete failed": string;
"Delete operation failed, please check the console for details.": string;
"Configuration popup cancelled or error": string;
"Failed to get action {{action}}": string;
"Failed to get configurable flows for model {{model}}": string;
"Copy UID": string;
Delete: string;
"This is likely a NocoBase internals bug. Please open an issue at": string;
here: string;
"Render failed": string;
Feedback: string;
"Download logs": string;
"Copy error info": string;
"Try again": string;
"Data blocks": string;
"Filter blocks": string;
"Other blocks": string;
"Invalid input parameters": string;
"Invalid subModelKey format": string;
"Submodel not found": string;
"Expected array for subModel": string;
"Array index out of bounds": string;
"Expected object for subModel": string;
"No createModelOptions found for item": string;
"createModelOptions must specify use property": string;
"Failed to add sub model": string;
"Failed to destroy model after creation error": string;
Add: string;
Name: string;
"Model with ID {{uid}} not found": string;
"Common actions": string;
"This variable is not available": string;
};
};
/**
* Get translation for a key with fallback
*/
export declare function getFlowEngineTranslation(key: string, locale?: string): string;
/**
* Initialize flow-engine locale resources
* This should be called when the flow-engine is initialized
*/
export declare function initFlowEngineLocale(i18nInstance?: any): void;