Skip to content

Commit

Permalink
added npm install and how to import the project
Browse files Browse the repository at this point in the history
without this details using this amaizing package is impossible to developers who are trying to intergrate  into their website
  • Loading branch information
DarknessMonarch authored Dec 4, 2023
1 parent f2cc4b4 commit c960243
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ trigger="click"
::: code-group

```vue{2-8,14-16} [vue2]
npm install @google-translate-select/vue2
import GoogleTranslateSelect from '@google-translate-select/vue2';
<template>
<GoogleTranslateSelect
default-language-code="en"
Expand All @@ -57,6 +63,11 @@ export default Vue.extend({
```

```vue{2-8,11-13} [vue3]
npm install @google-translate-select/vue3
import GoogleTranslateSelect from '@google-translate-select/vue3';
<template>
<GoogleTranslateSelect
default-language-code="en"
Expand All @@ -74,6 +85,10 @@ const handleGoogleTranslateSelect = (language: any) => {
```

```tsx{2-5,7-13} [react]
npm install @google-translate-select/vue3
import GoogleTranslateSelect from '@google-translate-select/vue3';
function App() {
const handleGoogleTranslateSelect = (language: any) => {
console.log('select', language)
Expand Down

0 comments on commit c960243

Please sign in to comment.