-
-
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.
feat: Vue i18next example app TG-458
- Loading branch information
Showing
25 changed files
with
28,471 additions
and
7 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
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,31 @@ | ||
import { exampleAppTest } from '../../common/exampleAppTest'; | ||
import { translationMethodsTest } from '../../common/translationMethodsTest'; | ||
import { exampleAppDevTest } from '../../common/exampleAppDevTest'; | ||
|
||
context('React i18next app in dev mode', () => { | ||
const url = 'http://localhost:8120'; | ||
exampleAppTest(url); | ||
translationMethodsTest(url, { | ||
en: [ | ||
{ text: 'This is default', count: 1 }, | ||
{ | ||
text: 'This is a key', | ||
count: 1, | ||
}, | ||
{ text: ' This is key with params value value2 ', count: 1 }, | ||
], | ||
de: [ | ||
{ text: 'This is default', count: 1 }, | ||
{ | ||
text: 'Dies ist ein Schlüssel', | ||
count: 1, | ||
}, | ||
{ | ||
text: ' Dies ist ein Schlüssel mit den Parametern value value2 ', | ||
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,28 @@ | ||
import { exampleAppTest } from '../../common/exampleAppTest'; | ||
import { translationMethodsTest } from '../../common/translationMethodsTest'; | ||
|
||
context('React i18next app in prod mode', () => { | ||
const url = 'http://localhost:8119'; | ||
exampleAppTest(url); | ||
translationMethodsTest(url, { | ||
en: [ | ||
{ text: 'This is default', count: 1 }, | ||
{ | ||
text: 'This is a key', | ||
count: 1, | ||
}, | ||
{ text: ' This is key with params value value2 ', count: 1 }, | ||
], | ||
de: [ | ||
{ text: 'This is default', count: 1 }, | ||
{ | ||
text: 'Dies ist ein Schlüssel', | ||
count: 1, | ||
}, | ||
{ | ||
text: ' Dies ist ein Schlüssel mit den Parametern value value2 ', | ||
count: 1, | ||
}, | ||
], | ||
}); | ||
}); |
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,2 @@ | ||
VUE_APP_TOLGEE_API_URL=https://app.tolgee.io | ||
VUE_APP_TOLGEE_API_KEY= |
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,24 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
/dist-dev | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,24 @@ | ||
# vue-i18next | ||
|
||
## Project setup | ||
``` | ||
yarn install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
yarn serve | ||
``` | ||
|
||
### Compiles and minifies for production | ||
``` | ||
yarn build | ||
``` | ||
|
||
### Lints and fixes files | ||
``` | ||
yarn lint | ||
``` | ||
|
||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). |
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,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"add-item-add-button" : "Přidat", | ||
"add-item-input-placeholder" : "Nová položka seznamu", | ||
"delete-item-button" : "Smazat", | ||
"menu-item-translation-methods" : "Metody překládání", | ||
"on-the-road-subtitle" : "Co si sbalit na výlet", | ||
"on-the-road-title" : "Na cestu", | ||
"send-via-email" : "Odeslat e-mailem", | ||
"share-button" : "Sdílet", | ||
"this_is_a_key" : "Toto je klíč", | ||
"this_is_a_key_with_params" : "Toto je klíč s parametry {key} {key2}" | ||
} |
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,12 @@ | ||
{ | ||
"add-item-add-button" : "Einfügen", | ||
"add-item-input-placeholder" : "Neuer Eintrag", | ||
"delete-item-button" : "Löschen", | ||
"menu-item-translation-methods" : "Übersetzungsmethoden", | ||
"on-the-road-subtitle" : "Was zum Ausflug einzupacken", | ||
"on-the-road-title" : "Auf dem Weg", | ||
"send-via-email" : "Per Email abschicken", | ||
"share-button" : "Teilen", | ||
"this_is_a_key" : "Dies ist ein Schlüssel", | ||
"this_is_a_key_with_params" : "Dies ist ein Schlüssel mit den Parametern {key} {key2}" | ||
} |
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,12 @@ | ||
{ | ||
"add-item-add-button" : "Add", | ||
"add-item-input-placeholder" : "New list item", | ||
"delete-item-button" : "Delete", | ||
"menu-item-translation-methods" : "Translation methods", | ||
"on-the-road-subtitle" : "What to pack for the trip", | ||
"on-the-road-title" : "On the road", | ||
"send-via-email" : "Send via e-mail", | ||
"share-button" : "Share", | ||
"this_is_a_key" : "This is a key", | ||
"this_is_a_key_with_params" : "This is key with params {key} {key2}" | ||
} |
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,12 @@ | ||
{ | ||
"add-item-add-button" : "Ajouter", | ||
"add-item-input-placeholder" : "Nouveau élément de la liste", | ||
"delete-item-button" : "Supprimer", | ||
"menu-item-translation-methods" : "Méthodes de la traduction", | ||
"on-the-road-subtitle" : "Comment faire sa valise pour la randonnée", | ||
"on-the-road-title" : "Sur la route", | ||
"send-via-email" : "Envoyer par e-mail", | ||
"share-button" : "Partager", | ||
"this_is_a_key" : "C'est un clé", | ||
"this_is_a_key_with_params" : "C'est la clé avec paramètres {key} {key2}" | ||
} |
Oops, something went wrong.