Skip to content

Commit ff0af90

Browse files
author
Sebi Nemeth
committed
add readme
1 parent 9482b6d commit ff0af90

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Live Translator Plugin for Vue 2
2+
3+
## Install
4+
```bash
5+
npm i -s https://github.com/apicore-engineering/vue-i18n-live-translator-plugin
6+
```
7+
8+
## Use
9+
```typescript
10+
import LiveTranslatorPlugin, { TranslationMeta } from 'vue-i18n-live-translator-plugin'
11+
12+
Vue.use(LiveTranslatorPlugin, {
13+
i18n,
14+
translationLink (meta: TranslationMeta) {
15+
return '' // your platform-specific link to the translation software
16+
},
17+
persist: true,
18+
})
19+
```
20+
21+
## Weblate example
22+
```typescript
23+
translationLink (meta: TranslationMeta) {
24+
return `<weblate_url>/translate/<project>/<component>/${meta.locale}/?q=context:=${meta.path}`
25+
}
26+
```

0 commit comments

Comments
 (0)