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
+11-19Lines changed: 11 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,4 @@
1
1
# Live Translator Plugin for Vue i18n
2
-
> [!WARNING]
3
-
> Plugin has been updated to Vue 3 only. To use with Vue 2 please use the legacy `vue2` branch.
4
-
5
2
> [!WARNING]
6
3
> This plugin makes significant changes to the DOM, possibly messing up your layout and appearance. We advise you **NOT TO USE IT IN PRODUCTION**, only in development and staging instances.
7
4
@@ -14,32 +11,27 @@ npm i -s https://github.com/apicore-engineering/vue-i18n-live-translator-plugin
14
11
```
15
12
16
13
## Use
17
-
Encode locale messages before passing them to `createI18n`:
return''// your platform-specific link to the translation software
25
+
// your platform-specific link to the translation software
26
+
return''
40
27
},
41
28
persist: true,
29
+
root: document.getElementById('app'), // root of your vue app, this is where the plugin looks for translated strings. defaults to document.documentElement
30
+
refreshRate: 100, // max refresh rate (ms)
31
+
checkVisibility: true, // hide elements that are covered
0 commit comments