en-US-base.ts 8.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';;
import commonLogic from '@/locale/logic/common/common-logic';


function getAppLocale() {
    const data: any = {
        app: {
            commonWords: {
                error: "Error",
                success: "Success",
                ok: "OK",
                cancel: "Cancel",
                save: "Save",
                codeNotExist: 'Code list does not exist',
                reqException: "Request exception",
                sysException: "System abnormality",
                warning: "Warning",
                wrong: "Error",
                rulesException: "Abnormal value check rule",
                saveSuccess: "Saved successfully",
                saveFailed: "Save failed",
                deleteSuccess: "Successfully deleted!",
                deleteError: "Failed to delete",
                delDataFail: "Failed to delete data",
                noData: "No data",
                startsuccess: "Start successful",
                submitsuccess: "Submit successful",
                loadmore: "Load more",
                nomore: "No more",
                other: "other",
                filter: 'filter',
                recentSearch: 'Recent search',
                chooseOne: 'Choose One',
                noAction: 'NO Action',
                noAssign: "No application function specified",
                serverException: 'Server exception',
                yes: "Yes",
                no: "No"
            },
            local: {
                new: "New",
                add: "Add",
            },
            gridpage: {
                choicecolumns: 'Choice columns',
                refresh: 'refresh',
                show: 'Show',
                records: 'records',
                totle: 'totle',
            },
            tabpage: {
                sureclosetip: {
                    title: 'Close warning',
                    content: 'Form data Changed, are sure close?',
                },
                closeall: 'Close all',
                closeother: 'Close other',
            },
            fileUpload: {
                caption: 'Upload',
            },
            searchForm: {
                title: 'Conditional search',
                searchButton: {
                    search: 'Search',
                    reset: 'Reset'
                }
            },
            form: {
                rules: {
                    'required': 'cannot be empty',
                    'string': 'must be a string',
                    'number': 'must be a number'
                }
            },
            portlet: {
                noextensions: "No Extensions",
            },
            formpage: {
                error: "Error",
                desc1: "Operation failed, failed to find current form item",
                desc2: "Can't continue",
                notconfig: {
                    loadaction: "View form loadAction parameter is not configured",
                    loaddraftaction: "View form loaddraftAction parameter is not configured",
                    actionname: "View form actionName parameter is not configured",
                    removeaction: "View form removeAction parameter is not configured",
                },
                saveerror: "Error saving data",
                savecontent: "The data is inconsistent. The background data may have been modified. Do you want to reload the data?",
                valuecheckex: "Value rule check exception",
                savesuccess: "Saved successfully!",
                deletesuccess: "Successfully deleted!",
                workflow: {
                    starterror: "Workflow started successfully",
                    startsuccess: "Workflow failed to start",
                    submiterror: "Workflow submission failed",
                    submitsuccess: "Workflow submitted successfully",
                },
                updateerror: "Form item update failed",
            },
            viewName: {
                meditView: 'Multi form editing view'
            },
            components: {
                app_icon_menu: {
                    statusValue_open: 'open',
                    statusValue_close: 'close',
                },
                app_search_history: {
                    remind: 'remind',
                    clear: 'Do you want to clear the search history?'
                }
            },
            button: {
                cancel: 'Cancel',
                confirm: 'Confirm',
                back: 'Back',
                loadmore: 'Load more',
                previousStep: 'Previous step',
                nextStep: 'Next step',
                finish: 'finish',
            },
            loadding: 'Loadding',
            fastsearch: 'Quick search',
            pulling_text: 'Pull down to refresh',
            ctrl: {
                form: "Form",
                multieditviewpanel: "multieditviewpanel",
                searchform: "searchform",
            },
            view: "View",
            notConfig: " Parameter not configured",
            message: {
                success: "successfully",
                fail: "failed",
                savedSuccess: "Saved successfully",
                deleteSccess: "successfully deleted",
                warning: " Warning ",
                confirmToDelete: "Confirm to delete",
                unrecoverable: " Will the delete operation be unrecoverable ",
                totle: " A total of ",
                data: " data"
            },
            statusMessage: {
                200: 'The server successfully returned the requested data',
                201: 'New or modified data is successful.',
                202: 'The request has been queued in the background (asynchronous task).',
                204: 'The data was deleted successfully.',
                400: 'There was an error in the request issued, and the server did not create or modify data.',
                401: 'The user does not have permission (token, user name, wrong password).',
                403: 'The user is authorized, but access is prohibited.',
                404: 'The request issued was for a non-existent record, and the server did not operate.',
                405: 'Method not allowed',
                406: 'The requested format is not available.',
                410: 'The requested resource is permanently deleted and will no longer be available.',
                422: 'When creating an object, a validation error occurred.',
                500: 'An error occurred on the server, please check the server.',
                502: 'Gateway error.',
                503: 'The service is unavailable, the server is temporarily overloaded or maintained.',
                504: 'Gateway timeout.',
            },
            errorMessage: {
                100: 'unknown',
                101: 'Request error',
                5001: 'Data does not exist',
                5002: 'Data already exists and cannot be recreated',
                5003: 'New creation failed',
                5004: 'The data does not exist and cannot be saved',
                5005: 'Data deletion failed'
            },
            title: {
                choose: 'Choose',
                customDashboard: 'Custom dashboard',
                styleSetting: 'Style setting'
            },
            pickupviewpanel: {
                havechosen: 'Chosen:'
            },
            error: {
                batchError: 'Batch operation failed',
                systemError: 'Error, system exception',
                systemErrorRetry: 'The system is abnormal, please try again!',
                dataError: 'data is abnormal',
                loadPanelError: 'Loading panel model is abnormal',
                unopendata: "There is no opendata",
                unnewdata: "There is no newdata",
                unremove: "Don't remove",
                unrefresh: "There is no refresh",
            },
            warn: {
                notSupportThisMode: 'Does not support this mode to open',
                editLogicNotExist: 'Edit application interface logic does not exist',
                newLogicNotExist: 'New application interface logic does not exist',
                addNNInBatches: 'Add N:N relationship when adding in batches',
                unbatchadd: 'Only supports batch addition but not implemented',
                dynaViewNotFound: 'Process function operation view not found',
                markAsFailRead: 'Failed to mark to-do task as read',
                getDataWarn: 'Get data abnormal'
            },
            log: {
                redirection: 'Redirection...'
            },
            success: {
                submitSuccess: 'Submit data successfully'
            }
        },
        userCustom: userCustom_en_US,
    }
    return data;
}
export default getAppLocale;