Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

7.4 KB
Raw Blame
/**
 * Copyright 2023-present DreamNum Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import emojiLocale from './emoji-locale/en-US.generated';

const locale = {
    ui: {
        clearFormatting: 'Clear formatting',
        formatPainter: 'Format Painter',
        accessibility: {
            menu: 'Menu',
            zoom: 'Zoom',
            zoomIn: 'Zoom in',
            zoomOut: 'Zoom out',
            resetZoom: 'Reset zoom',
        },
        objectPermission: {
            operationDenied: 'This content is protected. This action is not allowed.',
            remove: 'Remove protection',
            roleOwner: 'File owner',
            roleEditor: 'File editor',
            selectedCount: 'Selected: {0}',
            searchPeople: 'Search people',
            noMatchingPeople: 'No matching people',
            loadMore: 'Load more',
            fileHint: 'File sharing controls membership. These settings restrict actions within that membership.',
            documentParent: 'Document editing restrictions also apply to this section.',
            paragraphParent: 'Document and containing section editing restrictions also apply to this paragraph.',
            documentObjectParent: 'Document and the sections and paragraphs containing or anchoring this object may also restrict editing.',
            slideParent: 'Presentation editing restrictions also apply.',
            slideObjectParent: 'Presentation and the containing page or master editing restrictions also apply.',
            baseParent: 'Base editing restrictions also apply.',
            baseObjectParent: 'Base and containing table editing restrictions also apply.',
            recordParent: 'Base and table restrictions still apply. Editing a value also requires permission for its field.',
            boardParent: 'Board editing restrictions also apply to this object.',
            ownerInherit: 'File owner, inherited access',
            peopleError: 'Could not load people. Please retry.',
            document: 'Document',
            section: 'Section',
            paragraph: 'Paragraph',
            entity: 'Object',
            presentation: 'Presentation',
            page: 'Slide',
            master: 'Master view',
            base: 'Base',
            table: 'Table',
            field: 'Field',
            record: 'Record',
            view: 'View',
            board: 'Board',
            objectName: '{0}: {1}',

            search: 'Search objects',
            empty: 'No matching objects',
            more: 'Showing the first 100 objects. Search to narrow the list.',
            title: 'Permissions',
            cancel: 'Cancel',
            save: 'Save',
            saving: 'Saving…',
            loading: 'Loading…',
            conflict: 'Permissions changed. Reload before saving.',
            error: 'Could not load or save permissions. Your changes have been kept.',
            reload: 'Reload',
            denied: 'You cannot manage permissions for this object.',
            edit: 'Who can edit',
            all: 'All file editors',
            owner: 'Object owner only',
            members: 'Selected members',
            copy: 'Allow editors to copy',
            print: 'Allow editors to print',
            export: 'Allow editors to export',
            comment: 'Allow editors to comment',
            parentHint: 'File and parent object restrictions still apply.',
        },
        featureSearch: {
            title: 'Search features',
            placeholder: 'Type a feature or menu name...',
            empty: 'No available features found',
            ribbon: 'Ribbon',
            contextMenu: 'Context menu',
        },
        emojiPicker: {
            search: 'Search',
            random: 'Random emoji',
            recents: 'Recents',
            emojis: 'Emojis',
            animals: 'Animals',
            food: 'Food',
            activities: 'Activities',
            places: 'Places',
            objects: 'Objects',
            symbols: 'Symbols',
            searchResults: 'Search results',
            noResults: 'No emoji found',
            ...emojiLocale,
        },
        symbolPicker: {
            mathematics: 'Mathematics',
            greek: 'Greek',
            common: 'Common',
        },
        toolbar: {
            heading: {
                normal: 'Normal',
                title: 'Title',
                subTitle: 'Sub Title',
                1: 'Heading 1',
                2: 'Heading 2',
                3: 'Heading 3',
                4: 'Heading 4',
                5: 'Heading 5',
            },
        },
        ribbon: {
            start: 'Start',
            startDesc: 'Initiate the worksheet and set basic parameters.',
            insert: 'Insert',
            insertDesc: 'Insert rows, columns, charts and various other elements.',
            formulas: 'Formulas',
            formulasDesc: 'Use functions and formulas for data calculations.',
            data: 'Data',
            dataDesc: 'Manage data, including import, sorting and filtering.',
            view: 'View',
            viewDesc: 'Switch view modes and adjust the display effect.',
            others: 'Others',
            othersDesc: 'Other functions and settings.',
            more: 'More',
            groups: {
                clipboard: 'Clipboard',
                font: 'Font',
                layout: 'Alignment and layout',
                number: 'Number format',
                tools: 'Tools',
                editing: 'Editing',
                media: 'Media',
                cells: 'Cells',
                formulas: 'Formulas',
                rules: 'Rules',
                organization: 'Data organization',
                display: 'Display',
                visibility: 'Visibility',
            },
        },
        fontFamily: {
            'not-supported': 'No such font found in the system, using default font.',
        },
        'shortcut-panel': {
            title: 'Shortcuts',
        },
        shortcut: {
            undo: 'Undo',
            redo: 'Redo',
            cut: 'Cut',
            copy: 'Copy',
            paste: 'Paste',
            'shortcut-panel': 'Toggle Shortcut Panel',
        },
        'common-edit': 'Common Editing Shortcuts',
        'toggle-shortcut-panel': 'Toggle Shortcut Panel',
        navigation: {
            back: 'Back',
            previous: 'Previous',
            next: 'Next',
        },
        sidebar: {
            panel: 'Sidebar panel',
            resize: 'Resize sidebar',
            close: 'Close sidebar',
        },
        beforeClose: {
            title: 'Some changes are not saved',
        },
        clipboard: {
            authentication: {
                title: 'Permission Denied',
                content: 'Please allow Univer to access your clipboard.',
            },
        },
        rangeSelector: {
            cancel: 'Cancel',
        },
        'global-shortcut': 'Global Shortcut',
        row: 'Row',
        column: 'Column',
    },
};

export default locale;