Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
2567910 authored Sep 28, 2023
1 parent 929a1f4 commit 3532264
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Visit our website for more information: [Weploy.ai](https://www.weploy.ai) Websi

---

### Installation (Non React)
### Getting started

Any non react project can use this package by adding the following script tag before the closing body tag. Make sure to replace YOUR_WEPLOY_PROJECT_API_KEY with your API KEY.
1. Add the following script before the closing body tag. Make sure to replace YOUR_PROJECT_KEY with your API KEY.
```html
<script src="https://unpkg.com/weploy-translate/dist/weploy-translate.js" data-weploy-key="YOUR_WEPLOY_PROJECT_API_KEY"></script>
<script src="https://unpkg.com/weploy-translate/dist/weploy-translate.js" data-weploy-key="YOUR_PROJECT_KEY"></script>
```

Then add "weploy-select" to any element you want to use as a language selector. Make sure to add the value attribute to the option tags.
2. Add the language selector where you want to have it. This is how the user can select a language.
```html
<div id="weploy-select"></div>
```
Expand Down Expand Up @@ -295,4 +295,4 @@ yo Yoruba
za Zhuang; Chuang
zh Chinese
zu Zulu
```
```

0 comments on commit 3532264

Please sign in to comment.