You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,11 @@
3
3
This Kirby plugin allows you to automatically translate pages using the DeepL API. All field types are supported.
4
4
5
5
**If you are using machine translation, you should inform your users of this fact.**\
6
-
For example, you could display a message like this (Text available via `t('tobiaswolf.machine-translation.info')`)\
7
-
*This page has been machine translated. Despite the high quality of machine translation, the translation may contain errors.*
6
+
For example, you could display a message like this (Text available via `t('tobiaswolf.machine-translation.info')`)
7
+
8
+
```
9
+
This page has been machine translated. Despite the high quality of machine translation, the translation may contain errors.
10
+
```
8
11
9
12
## Installation
10
13
@@ -71,6 +74,8 @@ sections:
71
74
type: machine-translate
72
75
```
73
76
77
+
<imgwidth="542"alt="Bildschirmfoto 2023-07-27 um 13 09 57"src="https://github.com/tobiasfabian/machine-translation/assets/1524319/58897afa-af3a-4359-82ec-c8df12a37ad1">
78
+
74
79
After the page is translated an object field `machineTranslated` with `date` and `showInfo` is saved to the translated page content. This can be used to detect machine translated pages and display a notice/warning on the frontend that the text is machine translated. You can add this object field to any fields section (optional).
75
80
76
81
```yaml
@@ -162,7 +167,7 @@ You can disable the cache via config.
0 commit comments