fix: translate error

This commit is contained in:
hufeixiong
2021-12-14 16:31:09 +08:00
parent b647c89dd6
commit cf7abd43ce
2 changed files with 44 additions and 43 deletions

View File

@@ -7,60 +7,60 @@ nav:
--- ---
## 0.11.0 ## 0.11.0
Modify the timeline style and add cansee attribute to hide it during editing. Modify the timeline style and add cansee attribute to hide it during editing.
## 0.10. four ## 0.10.4
Config adds a new custommap transfer to store temporary data that is not brought into JSON. Config adds a new custommap transfer to store temporary data that is not brought into JSON.
The remote component configuration is changed from URL to object to store more configurations. The remote component configuration is changed from URL to object to store more configurations.
## 0.10. three ## 0.10.3
Fix the left tab color difference problem. Fix the left tab color difference problem.
## 0.10. two ## 0.10.2
Modify the timeline, select the background color, and add the item class name to facilitate modification. Modify the timeline, select the background color, and add the item class name to facilitate modification.
## 0.10. one ## 0.10.1
Modify the timeline class name to facilitate style modification. Modify the timeline class name to facilitate style modification.
## 0.10.0 ## 0.10.0
The function name proposes name as a separate configuration item, the first parameter as ID and the last parameter as function name, so that the display name of the function can support conversion. The function name proposes name as a separate configuration item, the first parameter as ID and the last parameter as function name, so that the display name of the function can support conversion.
Pop up event if the pop-up name is not passed, no pop-up will appear. Pop up event if the pop-up name is not passed, no pop-up will appear.
## 0.9. five ## 0.9.5
Scripts loading of preview component changes from concurrency to linearity. Scripts loading of preview component changes from concurrency to linearity.
Using remote components in edit mode will save the current canvas state. Using remote components in edit mode will save the current canvas state.
## 0.9. four ## 0.9.4
Fix the bug that the preview component cannot release loading Fix the bug that the preview component cannot release loading
## 0.9. three ## 0.9.3
Add double click to place the canvas. Add double click to place the canvas.
Change the initial focus state of the element. Change the initial focus state of the element.
If there is an element width and height, it is positioned at the center of the element when placed. If there is an element width and height, it is positioned at the center of the element when placed.
## 0.9. two ## 0.9.2
Add remote component to call the whole process, and Add URL attribute in component to facilitate script loading. Add remote component to call the whole process, and Add URL attribute in component to facilitate script loading.
## 0.9. one ## 0.9.1
Add config I18N configuration. If internationalization is not used, the context of Intl does not need to be imported. Add config I18N configuration. If internationalization is not used, the context of Intl does not need to be imported.
The first button of the control component is changed to drag and drop, and the functions are merged into the timeline The first button of the control component is changed to drag and drop, and the functions are merged into the timeline
## 0.9.0 ## 0.9.0
Add react Intl and modify some styles. Add react Intl and modify some styles.
## 0.8. four ## 0.8.4
Add the preview attribute to control external loading. Add the preview attribute to control external loading.
## 0.8. three ## 0.8.3
Add timeline drag bar and select. Add timeline drag bar and select.
Fix the error reported by the antd menu attribute. Fix the error reported by the antd menu attribute.
## 0.8. two ## 0.8.2
Add left panel configuration. Add left panel configuration.
Fix timeline flicker. Fix timeline flicker.
## 0.8. one ## 0.8.1
Add animation component timeline. You can preview all animations better. Add animation component timeline. You can preview all animations better.
## 0.8.0 ## 0.8.0
The animation part is reconstructed, which can support the simultaneous configuration of multiple animations. The animation part is reconstructed, which can support the simultaneous configuration of multiple animations.
The minimum value of canvas drag is changed to 0. The minimum value of canvas drag is changed to 0.
## 0.7. seven ## 0.7.7
Optimize the canvas drag logic to move more smoothly. Optimize the canvas drag logic to move more smoothly.
## 0.7. six ## 0.7.6
The custom rightglobalcustom type on the right is changed to the function passed in config The custom rightglobalcustom type on the right is changed to the function passed in config
## 0.7. five ## 0.7.5
Change the roller direction. Change the roller direction.
## 0.7. four ## 0.7.4
Fix box move bug. Fix box move bug.
## 0.7. three ## 0.7.3
Fix pop-up location and selection issues. Fix pop-up location and selection issues.
## 0.7. two ## 0.7.2
Fix the impact of locking components. You can't drag, zoom or rotate during locking. Fix the impact of locking components. You can't drag, zoom or rotate during locking.
## 0.7. one ## 0.7.1
The repair lock component cannot be unlocked. The repair lock component cannot be unlocked.
## 0.7.0 ## 0.7.0
Component rotation is supported! Component rotation is supported!
@@ -68,20 +68,20 @@ Fix optimization logic such as dragging guides.
## 0.6.0 ## 0.6.0
The use of iframe in edit mode is supported! The use of iframe in edit mode is supported!
Repair the selected condition. Repair the selected condition.
## 0.5. one ## 0.5.1
Fix the problem on the right that cannot be unchecked. Fix the problem on the right that cannot be unchecked.
## 0.5.0 ## 0.5.0
Fix the problem that the control component is not wide enough. Fix the problem that the control component is not wide enough.
Remove the antd custom icon, and the icon at the bottom of the container can be configured. Remove the antd custom icon, and the icon at the bottom of the container can be configured.
## 0.4. two ## 0.4.2
Fix animation error initial value. Fix animation error initial value.
Modify the markline style. Modify the markline style.
Global settings increase container height. Global settings increase container height.
## 0.4. one ## 0.4.1
Remove the Lib auto import style. Remove the Lib auto import style.
## 0.4.0 ## 0.4.0
Remove the runtime export and get all properties from config. Remove the runtime export and get all properties from config.
## 0.3. one ## 0.3.1
1. Replace UUID with nanoid. 1. Replace UUID with nanoid.
2. Control component adds ruler control. 2. Control component adds ruler control.
## 0.3.0 ## 0.3.0
@@ -90,17 +90,17 @@ Remove the runtime export and get all properties from config.
3. Innercontainerdragup needs to pass config. 3. Innercontainerdragup needs to pass config.
## 0.2.0 ## 0.2.0
Modify the transfer of the commander to obtain the config. The commander is no longer exported from the index. When it needs to be used, it is obtained from the config. Add the class name on the left to facilitate customization. Modify the transfer of the commander to obtain the config. The commander is no longer exported from the index. When it needs to be used, it is obtained from the config. Add the class name on the left to facilitate customization.
## 0.1. ten ## 0.1.10
Modify eslint dependency recommendation Modify eslint dependency recommendation
## 0.1. nine ## 0.1.9
Add global body settings Add global body settings
## 0.1. eight ## 0.1.8
Add pop-up settings and remove modalcontainer Add pop-up settings and remove modalcontainer
## 0.1. seven ## 0.1.7
Modify the preview special condition display and delete the console Modify the preview special condition display and delete the console
## 0.1. six ## 0.1.6
Adjust the initial zoom, the initial scale of the canvas, and add the function of righting the canvas. Adjust the initial zoom, the initial scale of the canvas, and add the function of righting the canvas.
## 0.1. five ## 0.1.5
Delete the button not made and add the fixed configuration Delete the button not made and add the fixed configuration
## 0.1. four ## 0.1.4
Basic functions Basic functions

View File

@@ -52,10 +52,11 @@ const concatResult = (result) => {
if (v.src.startsWith('title:') && v.dst.startsWith('Title:')) { if (v.src.startsWith('title:') && v.dst.startsWith('Title:')) {
v.dst = v.dst.replace('Title:', 'title:'); v.dst = v.dst.replace('Title:', 'title:');
} }
const fi = v.src.startsWith('##') ? v.src : v.dst;
if (i > navstart && i < line) { if (i > navstart && i < line) {
finalResult = finalResult + `\r\n ` + v.dst; finalResult = finalResult + `\r\n ` + fi;
} else { } else {
finalResult = finalResult + '\r\n' + v.dst; finalResult = finalResult + '\r\n' + fi;
} }
} }
}); });