Skip to content

Added Laravel Lang Translator #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
YANDEX_API_KEY=
YANDEX_API_FOLDER_ID=
TRANSLATION_GOOGLE_ENABLED=true
TRANSLATION_GOOGLE_PRIORITY=3

TRANSLATION_DEEPL_ENABLED=false
TRANSLATION_DEEPL_PRIORITY=1
TRANSLATION_DEEPL_KEY=

TRANSLATION_YANDEX_ENABLED=false
TRANSLATION_YANDEX_PRIORITY=2
TRANSLATION_YANDEX_KEY=
TRANSLATION_FOLDER_ID=

GIT_REPOSITORY=origin
GIT_SOURCE_BRANCH=master
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
"ext-json": "*",
"ext-zip": "*",
"archtechx/enums": "^1.0",
"deeplcom/deepl-php": "^1.5",
"dragon-code/pretty-array": "^4.0",
"dragon-code/simple-dto": "^2.3",
"dragon-code/support": "^6.11",
"guzzlehttp/guzzle": "^7.4",
"illuminate/console": "^10.0 || ^11.0",
"illuminate/container": "^10.0 || ^11.0",
"illuminate/support": "^10.0 || ^11.0",
"laravel-lang/locale-list": "^1.2",
"laravel-lang/translator": "^1.0-ALPHA5",
"phpunit/phpunit": "^10.0",
"stichoza/google-translate-php": "^5.1",
"symfony/console": "^6.0 || ^7.0",
"symfony/finder": "^6.0 || ^7.0"
},
Expand Down
10 changes: 10 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@
<directory>./src</directory>
</include>
</source>
<php>
<env name="TRANSLATION_GOOGLE_ENABLED" value="true" />

<env name="TRANSLATION_DEEPL_ENABLED" value="true" />
<env name="TRANSLATION_DEEPL_KEY" value="foo" />

<env name="TRANSLATION_YANDEX_ENABLED" value="true" />
<env name="TRANSLATION_YANDEX_KEY" value="foo" />
<env name="TRANSLATION_FOLDER_ID" value="123" />
</php>
</phpunit>
105 changes: 0 additions & 105 deletions src/Helpers/Translators/DeeplTranslate.php

This file was deleted.

147 changes: 0 additions & 147 deletions src/Helpers/Translators/GoogleTranslate.php

This file was deleted.

56 changes: 0 additions & 56 deletions src/Helpers/Translators/TranslateManager.php

This file was deleted.

Loading
Loading