diff --git a/packages/amis-editor-core/eidtor-core-i18n-en-US-1663318244212.xlsx b/packages/amis-editor-core/eidtor-core-i18n-en-US-1663318244212.xlsx deleted file mode 100644 index 5608c2c8e..000000000 Binary files a/packages/amis-editor-core/eidtor-core-i18n-en-US-1663318244212.xlsx and /dev/null differ diff --git a/packages/amis-editor-core/package.json b/packages/amis-editor-core/package.json index a9b95098e..3e1c4d7e4 100644 --- a/packages/amis-editor-core/package.json +++ b/packages/amis-editor-core/package.json @@ -1,6 +1,6 @@ { "name": "amis-editor-core", - "version": "5.2.0-beta.74", + "version": "5.2.0-i18n.1", "description": "amis 可视化编辑器", "main": "lib/index.min.js", "types": "lib/index.d.ts", @@ -9,7 +9,8 @@ "build": "npm run clean-dist && webpack", "clean-dist": "rimraf lib/* esm/*", "i18n:update": "npx i18n update --config=./i18nConfig.js", - "i18n:translate": "npx i18n translate --config=./i18nConfig.js --l=en-US" + "i18n:translate": "npx i18n translate --config=./i18nConfig.js --l=en-US", + "i18n:merge": "npx i18n merge --config=./i18nConfig.js --l=en-US" }, "keywords": [ "amis", @@ -30,7 +31,7 @@ }, "dependencies": { "deep-diff": "1.0.2", - "i18n-runtime": "0.0.6", + "i18n-runtime": "0.0.10", "json-ast-comments": "^1.1.0", "lodash": "^4.17.15", "mobx": "^4.5.0", diff --git a/packages/amis-editor-core/src/locale/en-US.ts b/packages/amis-editor-core/src/locale/en-US.ts index 69cf572f6..14a03dc6c 100644 --- a/packages/amis-editor-core/src/locale/en-US.ts +++ b/packages/amis-editor-core/src/locale/en-US.ts @@ -1,239 +1,257 @@ import {extendLocale} from 'i18n-runtime'; extendLocale('en-US', { - '4e7f76261f8c4c6d78998f85fc1f4c6e': 'Margin ', - '16a20243f9b741c08216dc9548de2968': 'whole', - '23ecf42cada8bf2715792d718544d107': 'minimum', + '4e7f76261f8c4c6d78998f85fc1f4c6e': 'Margin', + '16a20243f9b741c08216dc9548de2968': 'Overall', + '23ecf42cada8bf2715792d718544d107': 'Extremely small', '391b8fa9c747a1799353ab856e666ad5': 'Small', - 'fd6e80f1e0199d6ecc3ee81ae04aa9ef': 'normal', - 'aed1dfbc31703955e64806b799b67645': 'in', - 'ab18e30c0dc4093ceeda8961fac3d1f4': 'large', - '461d364c67ec6a45e011ed13f2f7154f': 'top margin', + 'fd6e80f1e0199d6ecc3ee81ae04aa9ef': 'Normal', + 'aed1dfbc31703955e64806b799b67645': 'Medium', + 'ab18e30c0dc4093ceeda8961fac3d1f4': 'Big', + '461d364c67ec6a45e011ed13f2f7154f': 'Top margin', '31e3752986d64c8b36897c8641c8628d': 'Right margin', - 'eabe91d9426b6446f707cea3e7ab2418': 'margin-bottom ', - '2e46d251ee6188bb1b3ff20656276572': 'left ', - '3dc4038d0f0a2d2b3c2b2e29a5ec6dde': 'Set none', - 'a8b0c20416853bda54120bf19477ad11': 'whole', - 'af767b7e4ae069d54f9ea839858d4c6d': 'upper', - '4d9c32c23df5d234e629c922c58d8e12': 'right', - '3850a186c3235bc646d4c2f79cebac36': 'lower', + 'eabe91d9426b6446f707cea3e7ab2418': 'Bottom margin', + '2e46d251ee6188bb1b3ff20656276572': 'Left margin', + '3dc4038d0f0a2d2b3c2b2e29a5ec6dde': 'None(原文什么意思?)', + 'a8b0c20416853bda54120bf19477ad11': 'All', + 'af767b7e4ae069d54f9ea839858d4c6d': 'Top', + '4d9c32c23df5d234e629c922c58d8e12': 'Right', + '3850a186c3235bc646d4c2f79cebac36': 'Bottom', 'd2aff1417831aa621c16cd5b95306b4b': 'Left', - '841d77223f0ec8cd0b530ed8e0775b20': 'padding ', - '961534b4ea37e4e88aada736b299d063': 'frame', - 'd4d2a66820d30e07b44c850eb3f116c0': 'position', - '58f966670529f4753fb3c5a0647606be': 'size', - '6b36c6f7ec834692ec6c8e3816349fdd': 'colour', - 'fbae87bcc352f6933541fb77a07418ed': 'Main color', - 'd8c7e04c8e2be23dd3b81a31db6e04f1': 'information', - '900c70fa5f7dbc014e6f762d5e0e885c': 'warning', - '540f84ddc0883866b229f71c2844199a': 'danger', - '330363dfc524cff2488f2ebde0500896': 'success', - '2fc96b2704b05d6a9f299c442573ee77': 'white', - 'adb7e5312abdb9a44297e48d63815fa3': 'dark colors', - '48d0a09bdd5fe7e89f0a445b0ffdf14f': 'light colour', - '0d98c74797e49d00bcc4c17c9d557a2b': 'other', - '0103eb2d3dca70270d1a74e9ec987ac9': 'fillet', - '8456bc40d48da5af833f1c63385e9879': 'typeface', - 'b3b2682579133673d3fe08c156d565dc': 'fine', - '56dce5d1cbb97439d291c458e50107e0': 'crude', + '841d77223f0ec8cd0b530ed8e0775b20': 'Padding', + '961534b4ea37e4e88aada736b299d063': 'Border', + 'd4d2a66820d30e07b44c850eb3f116c0': 'Position', + '58f966670529f4753fb3c5a0647606be': 'Size', + '6b36c6f7ec834692ec6c8e3816349fdd': 'Color', + 'fbae87bcc352f6933541fb77a07418ed': 'Primary color', + 'd8c7e04c8e2be23dd3b81a31db6e04f1': 'Information', + '900c70fa5f7dbc014e6f762d5e0e885c': 'Warning', + '540f84ddc0883866b229f71c2844199a': 'Danger', + '330363dfc524cff2488f2ebde0500896': 'Success', + '2fc96b2704b05d6a9f299c442573ee77': 'White', + 'adb7e5312abdb9a44297e48d63815fa3': 'Dark color', + '48d0a09bdd5fe7e89f0a445b0ffdf14f': 'Light color', + '0d98c74797e49d00bcc4c17c9d557a2b': 'Others', + '0103eb2d3dca70270d1a74e9ec987ac9': 'Rounded corner', + '8456bc40d48da5af833f1c63385e9879': 'Font', + 'b3b2682579133673d3fe08c156d565dc': 'Normal', + '56dce5d1cbb97439d291c458e50107e0': 'Bold', '49a79f4047b81186c069ed1c9c151c66': 'Light color', - '8e1b944f4389bdaab6f11d5bc83190c8': 'background', - 'c28479019e24e0e4745f4948e9e97ee7': 'width', - 'f72ce9ad683cc82e0eab557ffc9c67a0': 'Extremely small', - 'b95c462d7697958c25861193fc89ae07': 'enlarge', - '3386da5f56fac758ed0f18e024ecb943': 'Extraordinarily large', - 'ffaa96ef7232cb6d8ee4d7e673dbf4ac': 'completely fill', - '47eac1ac32a8aa9081dffbdc4d374318': 'Please enter the CSS class name', + '8e1b944f4389bdaab6f11d5bc83190c8': 'Background', + 'c28479019e24e0e4745f4948e9e97ee7': 'Width', + 'f72ce9ad683cc82e0eab557ffc9c67a0': 'Make it exceptionally small', + 'b95c462d7697958c25861193fc89ae07': 'Make it big', + '3386da5f56fac758ed0f18e024ecb943': 'Make it exceptionally big ', + 'ffaa96ef7232cb6d8ee4d7e673dbf4ac': 'Fill', + '47eac1ac32a8aa9081dffbdc4d374318': 'Enter the css class name', '939d5345ad4345dbaabe14798f6ac0f1': 'Submit', '55c56d01a7747ffe0346d42145b62d97': - '[Amis editor] respond to the event of dynamically adding a plug-in:', - 'd6f73c6f3b92be5a64f7ea0163501284': 'Area nodes are not allowed to be cut.', - '4fda4f585214d469c04466e2fc98b796': 'The root node does not allow cutting.', + 'The [Amis-editor] responds to the dynamic plugin addition event:', + 'd6f73c6f3b92be5a64f7ea0163501284': 'Cutting the region node is not allowed.', + '4fda4f585214d469c04466e2fc98b796': 'Cutting the root node is not allowed.', '657bbe06d3922b23552817df7fa8268e': - 'The current element is not allowed to be cut.', - '416445a316595bdeb44b661c7de875a8': 'The current element cannot be moved up', + 'Cutting the current element is not allowed.', + '416445a316595bdeb44b661c7de875a8': + 'You cannot move the current element upward.', '6ac88d87b2fd118ba7beab8c17880470': - 'The current element cannot be moved down', - 'fdb3cba60407b2f1aea0230cca644573': 'Area nodes cannot be deleted directly.', - '8a4b4e2e3b0382007e0c69ed1fe6fe71': 'Root node cannot be deleted.', - '22f031f3de2e55c430a818d8c588f7a1': 'The current element cannot be deleted.', - '3b6d5995e9f2ecd3df059b3f1bea201e': 'Call error or cross domain.', - '09f33be5ec04eb48b3102e4e31af5b38': 'Call error', - '283c2a52955ad87574fd6c0cc932c443': 'Can only be called in iframe', + 'You cannot move the current element downward.', + 'fdb3cba60407b2f1aea0230cca644573': + 'You cannot delete the region node directly.', + '8a4b4e2e3b0382007e0c69ed1fe6fe71': 'Deleting the root node is not allowed..', + '22f031f3de2e55c430a818d8c588f7a1': + 'Deleting the current element is not allowed.', + '3b6d5995e9f2ecd3df059b3f1bea201e': + 'A call error occurs or domain crossing occurs.', + '09f33be5ec04eb48b3102e4e31af5b38': 'A call error occurs.', + '283c2a52955ad87574fd6c0cc932c443': + 'You can call the node only in the Iframe.', 'a71002967924a83e32b38a80705290fb': 'System error', '058ebdf2884474ebff2977ba2f0e275e': 'System message', - '88f000a0fdc38ce3808cef072b00893c': 'Rendering', - '279321f97f11da7bc90facca156b3444': 'Code error, the error is \\ n {{@1}}', + '88f000a0fdc38ce3808cef072b00893c': 'The rendering is in progress...', + '279321f97f11da7bc90facca156b3444': + 'A code error exists, which takes place at \\n {{@1}}.', '7e4b38ba0ab9cbfcabd9dd859e36b601': - 'Some of the changed data has not been saved due to incorrect format. Are you sure you want to discard these changes?', - 'af86ad9dd8a221f931dcdc5a63382b6f': 'View changes', - '43d586cd6cf1a512c0bcb85ed9efde51': 'Please confirm', - 'bb79667f37035e9562ec6bcffd6cf8ef': 'assembly', - '5cb297585d4c81bb8fdbd31210a30d6f': 'System components', - '6fce1c9aa3654ae2f0eedcc068a7e189': 'Custom component', - '06e004ef21414c06d3e4ff2cefaf6a04': 'code', + 'Currently, some data in the code are modified. Because the data is incorrect in its format and not saved, are you sure to abandon the modification?', + 'af86ad9dd8a221f931dcdc5a63382b6f': 'Check the modification.', + '43d586cd6cf1a512c0bcb85ed9efde51': 'Confirm', + 'bb79667f37035e9562ec6bcffd6cf8ef': 'Component', + '5cb297585d4c81bb8fdbd31210a30d6f': 'System component', + '6fce1c9aa3654ae2f0eedcc068a7e189': 'Customize the component.', + '06e004ef21414c06d3e4ff2cefaf6a04': 'Code', '7f7c624a843b0d539a4ea59a696702f9': 'Batch operation', - 'b80ed82d124c6fd9242dcacdda2a2f8b': 'Change component type', - '41150516bf0d90646edc5239593366e9': 'Select component to insert into', - 'd87481b371771b4f150da76e311bbbef': 'Enter keywords to filter components', - 'becdc848350872592201e31bab03892a': 'Cannot Preview', - 'f26225bde6a250894a04db4c53ea03d0': 'details', + 'b80ed82d124c6fd9242dcacdda2a2f8b': 'Change the component type.', + '41150516bf0d90646edc5239593366e9': + 'Select the component and plug it into?(插入到哪里??)', + 'd87481b371771b4f150da76e311bbbef': + 'The component can be filtered by entering the keywords.', + 'becdc848350872592201e31bab03892a': 'It is impossible to preview it.', + 'f26225bde6a250894a04db4c53ea03d0': 'Details', '751dfe6f476903c21381c9acf88332e2': - 'There are no available components. Maybe you should try switching containers.', - 'e22c9a05b424b761efce11f17726fdd7': 'replace', - '9bdb07e72d3a9a6084201a7398523f5a': 'insert', - '625fb26b4b3340f7872b411f401e754c': 'cancel', - '95509c09bdef4bb7842a9b957ab1f971': 'Turn off levitation mode', - '426480bb614633c8c3ba8faa0338b72f': 'Turn on levitation mode', - 'fbf7967f9baf6a22bd6ca7f4e6390bf9': '{{@1}} - [public configuration]', - '93383ef1ab4a433df97a56a73e571b9f': 'outline', - '962d43ff8d39c381d8e2c73838412111': 'Query page elements', + 'No component is available. Perhaps you should change the container.', + 'e22c9a05b424b761efce11f17726fdd7': 'Replace', + '9bdb07e72d3a9a6084201a7398523f5a': 'Insert', + '625fb26b4b3340f7872b411f401e754c': 'Cancel', + '95509c09bdef4bb7842a9b957ab1f971': 'Disable the floating mode.', + '426480bb614633c8c3ba8faa0338b72f': 'Enable the floating mode.', + 'fbf7967f9baf6a22bd6ca7f4e6390bf9': '{{@ 1}}-[Public configuration]', + '93383ef1ab4a433df97a56a73e571b9f': 'Outline', + '962d43ff8d39c381d8e2c73838412111': 'Query the page element.', '0c95d1856ffdeeade7cebe0ef928f361': - 'Drag the target into the node in the navigation to switch containers', - 'c482df2a3ac8e014febd8a5fc9cadaea': 'Loading, please wait', - 'c44c6c179c44e794b103053886847dc4': 'No preview', - 'e4cefe7df36e92da1d7e875b92655507': 'Click expand', - '7ae451de83aa6f5f140e941904377391': 'Click fold', - '84c8f0087acfc9b9862371d0bd59b830': 'Click to add "{{@1}}"', - 'f3430f4fdd8b9643daa74f4a5716dd15': ' Details & nbsp;', + 'You can change the container by dragging the target into the navigating node.', + 'c482df2a3ac8e014febd8a5fc9cadaea': + 'The loading is in progress, so you need to wait for a while...', + 'c44c6c179c44e794b103053886847dc4': 'No preview image is available.', + 'e4cefe7df36e92da1d7e875b92655507': 'Click to unfold.', + '7ae451de83aa6f5f140e941904377391': 'Click to fold.', + '84c8f0087acfc9b9862371d0bd59b830': 'Click to add 「{{@1}}」.', + 'f3430f4fdd8b9643daa74f4a5716dd15': ' details ', 'b797a8992ef41320919e45a069f2b459': - 'No available components were found. You can change the keyword to continue searching.', + 'No available component is found. You can continue to search for the component by changing the keyword.', '0bd36c8db19e3a93506f39ebc8ff0ab9': - 'When components such as forms and lists have names, they will appear here for easy selection', - 'bb28ec819520ced0ffb4c3da01f112e2': 'Click to clear the current area', - 'e83a256e4f5bb4ff8b3d804b5473217a': 'confirm', - '22c799040acdb2601b437ed5449de076': 'container', - 'bd9fcf46b4e5993f97fe04ee9ebcd7ed': 'revoke', - 'c3c873d33f1c6482c79b0ffd862786cd': 'redo', - 'e9509c688a0df6b088503d21569b6e8f': 'Wrong type, unable to render', - '2168c5735883bd040eaf09909d0911b8': 'Input keyword query component', + 'When the form, list, and other components have a name, they appear here for your selection.', + 'bb28ec819520ced0ffb4c3da01f112e2': 'Click to clear the current area.', + 'e83a256e4f5bb4ff8b3d804b5473217a': 'Confirm', + '22c799040acdb2601b437ed5449de076': 'Container', + 'bd9fcf46b4e5993f97fe04ee9ebcd7ed': 'Undo', + 'c3c873d33f1c6482c79b0ffd862786cd': 'Redo', + 'e9509c688a0df6b088503d21569b6e8f': + 'A type error exists so that no rendering is possible.', + '2168c5735883bd040eaf09909d0911b8': + 'Query the component by entering the keyword.', 'e9c38f88375807704270aa3572454976': 'Search history', - '288f0c404c4e546aa3683ff5054e85e2': 'empty', - '4b9bc9abf2a2beb3772d903a3d01d1de': 'Click to delete this search record', + '288f0c404c4e546aa3683ff5054e85e2': 'Clear', + '4b9bc9abf2a2beb3772d903a3d01d1de': 'Click to delete this search record.', '9d3128a1675de32cdd290b31140a7290': - 'The search result is empty. You can change a keyword to continue searching.', + 'The query result is empty. You can continue search by changing the keyword.', 'accb901a02b1415b40d95cdd31b8da1d': 'Component classification', - '79d3abe929f67f0644a78bf32adb3a89': 'copy', - 'b7d817611230d382f6ef92b41848a342': 'Copy the currently selected element', - 'eafbece1016a6af76cce466e55ad9f00': 'paste', + '79d3abe929f67f0644a78bf32adb3a89': 'Copy', + 'b7d817611230d382f6ef92b41848a342': 'Copy the currently selected element.', + 'eafbece1016a6af76cce466e55ad9f00': 'Paste', 'e0b9bb8e41eccd3ce6b282664643d7f8': - 'Inserts the copied element into the currently selected node', - '43fc77886b7fbcd658f0ccdba36bd5a0': 'shear', - 'a6be4ad12e9612811963c44466af3218': 'Cut the currently selected element', - '58887132871b71b015c3a391e7755815': 'Restore the last undone operation', - 'be5fbbe34ce9979bfb6576d9eddc5612': 'preservation', - '1f81fd4598e9151538f29c41b8aa0020': 'Save all current operations', - '645dbc5504e722a30896486085a06b32': 'preview', - '5bc425ac8b75c571093a63eb6073c354': 'Turn on preview mode', - '2f4aaddde33c9b93c36fd2503f3d122b': 'delete', - '426cd14ebd62a4922186527d07ba37f3': 'Delete current node', - '499e58e764420aeed2d1476a56d8fa34': 'Move up', - 'd040485f0e3887f0b297f8f772db03e4': 'Move the current node up', - '08ad565f066d30572d1f8e2ee17cbe12': 'Move down', - '6348dc0e83d6ab391a8816f67d0e5ceb': 'Move the current node down', + 'Paste the copied element to the currently selected node.', + '43fc77886b7fbcd658f0ccdba36bd5a0': 'Cut', + 'a6be4ad12e9612811963c44466af3218': 'Cut the currently selected element.', + '58887132871b71b015c3a391e7755815': 'Restore the previous operation undone.', + 'be5fbbe34ce9979bfb6576d9eddc5612': 'Save', + '1f81fd4598e9151538f29c41b8aa0020': 'Save all current operations.', + '645dbc5504e722a30896486085a06b32': 'Preview', + '5bc425ac8b75c571093a63eb6073c354': 'Enable the preview mode.', + '2f4aaddde33c9b93c36fd2503f3d122b': 'Delete', + '426cd14ebd62a4922186527d07ba37f3': 'Delete the current node.', + '499e58e764420aeed2d1476a56d8fa34': 'Move upward', + 'd040485f0e3887f0b297f8f772db03e4': 'Move upward the current node.', + '08ad565f066d30572d1f8e2ee17cbe12': 'Move downward', + '6348dc0e83d6ab391a8816f67d0e5ceb': 'Move downward the current node.', 'fbec96e028142496df88ed2c63b44512': - 'Click to view the currently available shortcut keys', - '9c3f1278ffa822835bb3a677f02bca27': 'Currently available shortcuts', - '4e98a5dcd3defffb23629fce3add04f6': 'No shortcut key', + 'Click to check the current shortcut key available.', + '9c3f1278ffa822835bb3a677f02bca27': 'Current shortcut key available', + '4e98a5dcd3defffb23629fce3add04f6': + 'No shortcut key is available temporarily.', '186733ed7ec817040b8f9cbc610ba49a': 'Program error', 'e777eb796f8a02e97a891fde43d10ce4': '{{@1}} variable', - '5d665bc55779aafdefcc4050e3a8429e': '{{@1}} ({{@2}}) rendering error:', + '5d665bc55779aafdefcc4050e3a8429e': + 'A {{@1}}({{@2}}) rendering error occurs:', 'a30dd4945df5b44b264fa3be6ee9682e': 'Current renderer information:', '63f94190d2d4ea22263e6e9f07c96558': 'Error object:', - 'f66335b5bff0e26fdff2a3303e0f9bb0': 'Error message:', + 'f66335b5bff0e26fdff2a3303e0f9bb0': 'Error information:', '966e23b5c1efe8e18fc4f0c326d47314': - ')An error occurred in rendering. Please check the console output for detailed error information.', + ')A rendering error occurs. For details about the error, check the console output.', '44e049d9ecbe2c474100a3424021570e': - '< div class = wrapper SM (B-A, B-light, m-b-sm >) drag into the occupied position < / div >', + '