-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
214 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
'ngx', | ||
'react-i18next', | ||
'vue-i18next', | ||
'vue-ssr', | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ jobs: | |
'ngx', | ||
'react-i18next', | ||
'vue-i18next', | ||
'vue-ssr', | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { exampleAppTest } from '../../common/exampleAppTest'; | ||
import { translationMethodsTest } from '../../common/translationMethodsTest'; | ||
import { exampleAppDevTest } from '../../common/exampleAppDevTest'; | ||
import { namespacesTest } from '../../common/namespacesTest'; | ||
|
||
context('Vue app in dev mode', () => { | ||
const url = 'http://localhost:8123'; | ||
const translationMethods = url + '/translation-methods'; | ||
exampleAppTest(url); | ||
translationMethodsTest(translationMethods, { | ||
en: [ | ||
{ text: 'This is default', count: 2 }, | ||
{ | ||
text: 'This is a key', | ||
count: 5, | ||
}, | ||
{ text: 'This is key with params value value2', count: 3 }, | ||
], | ||
de: [ | ||
{ text: 'This is default', count: 2 }, | ||
{ | ||
text: 'Dies ist ein Schlüssel', | ||
count: 5, | ||
}, | ||
{ | ||
text: 'Dies ist ein Schlüssel mit den Parametern Wert value2', | ||
count: 3, | ||
}, | ||
], | ||
}); | ||
|
||
namespacesTest(translationMethods, { | ||
en: [ | ||
{ text: 'This is a key in namespace', count: 2 }, | ||
{ text: 'This is a key', count: 1 }, | ||
], | ||
cs: [ | ||
{ text: 'Toto je klíč v namespace', count: 2 }, | ||
{ text: 'Toto je klíč', count: 1 }, | ||
], | ||
}); | ||
|
||
exampleAppDevTest(url, { noLoading: true }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { exampleAppTest } from '../../common/exampleAppTest'; | ||
import { namespacesTest } from '../../common/namespacesTest'; | ||
import { translationMethodsTest } from '../../common/translationMethodsTest'; | ||
|
||
context('Vue app in prod mode', () => { | ||
const url = 'http://localhost:8124'; | ||
const translationMethods = url + '/translation-methods'; | ||
exampleAppTest(url); | ||
translationMethodsTest(translationMethods, { | ||
en: [ | ||
{ text: 'This is default', count: 2 }, | ||
{ | ||
text: 'This is a key', | ||
count: 5, | ||
}, | ||
{ text: 'This is key with params value value2', count: 3 }, | ||
], | ||
de: [ | ||
{ text: 'This is default', count: 2 }, | ||
{ | ||
text: 'Dies ist ein Schlüssel', | ||
count: 5, | ||
}, | ||
{ | ||
text: 'Dies ist ein Schlüssel mit den Parametern value value2', | ||
count: 3, | ||
}, | ||
], | ||
}); | ||
|
||
namespacesTest(translationMethods, { | ||
en: [ | ||
{ text: 'This is a key in namespace', count: 2 }, | ||
{ text: 'This is a key', count: 1 }, | ||
], | ||
cs: [ | ||
{ text: 'Toto je klíč v namespace', count: 2 }, | ||
{ text: 'Toto je klíč', count: 1 }, | ||
], | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Example application of using vike-vue with Tolgee | ||
|
||
[<img src="https://raw.githubusercontent.com/tolgee/documentation/main/tolgee_logo_text.svg" alt="Tolgee" width="100" />](https://tolgee.io) | ||
|
||
This application is using vike. To learn more about Tolgee, visit [https://tolgee.io](https://tolgee.io). | ||
|
||
## To run the app in dev mode | ||
|
||
To install dependencies, run: | ||
|
||
npm install | ||
|
||
To run the app in dev mode with in-context translating mode: | ||
|
||
1. Create a project on [Tolgee Cloud](https://app.tolgee.io) or use | ||
self-hosted [Tolgee Server](https://github.com/tolgee/server). | ||
2. Generate an API-KEY | ||
3. Copy file `.env` to `.env.development.local` | ||
4. Set `VITE_APP_TOLGEE_API_KEY` to API key obtained in previous step | ||
5. Run `npm run dev` | ||
6. Have fun | ||
|
||
## To run the app in production mode | ||
|
||
To run app in production mode: | ||
|
||
npm run start | ||
|
||
--- | ||
|
||
This repository is automatically re-published from [Tolgee JS monorepo](https://github.com/tolgee/tolgee-js). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.