added translation manager

This commit is contained in:
AVMG20 2021-12-14 19:17:44 +01:00
parent 64d8283799
commit 505bf7b6fa
8 changed files with 1231 additions and 2 deletions

View file

@ -29,6 +29,7 @@
}, },
"require-dev": { "require-dev": {
"barryvdh/laravel-debugbar": "^3.6", "barryvdh/laravel-debugbar": "^3.6",
"barryvdh/laravel-translation-manager": "^0.5.10",
"facade/ignition": "^2.5", "facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1", "laravel/sail": "^1.0.1",

795
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "500346cc4a4a83b162e07bb0071d1602", "content-hash": "c3168498b058b38657de646f5cddb531",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
@ -6287,6 +6287,65 @@
], ],
"time": "2021-10-21T10:57:31+00:00" "time": "2021-10-21T10:57:31+00:00"
}, },
{
"name": "barryvdh/laravel-translation-manager",
"version": "v0.5.10",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-translation-manager.git",
"reference": "18ed550eb74f9e61d2fc72d06dfa576296d0d5cb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-translation-manager/zipball/18ed550eb74f9e61d2fc72d06dfa576296d0d5cb",
"reference": "18ed550eb74f9e61d2fc72d06dfa576296d0d5cb",
"shasum": ""
},
"require": {
"illuminate/support": "^5.5|^6|^7|^8",
"illuminate/translation": "^5.5|^6|^7|^8",
"php": ">=7",
"symfony/finder": "^3|^4|^5",
"tanmuhittin/laravel-google-translate": "^2.0.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.5-dev"
},
"laravel": {
"providers": [
"Barryvdh\\TranslationManager\\ManagerServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Barryvdh\\TranslationManager\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "Manage Laravel Translations",
"keywords": [
"laravel",
"translations",
"translator"
],
"support": {
"issues": "https://github.com/barryvdh/laravel-translation-manager/issues",
"source": "https://github.com/barryvdh/laravel-translation-manager/tree/v0.5.10"
},
"time": "2021-01-25T20:11:29+00:00"
},
{ {
"name": "doctrine/instantiator", "name": "doctrine/instantiator",
"version": "1.4.0", "version": "1.4.0",
@ -6687,6 +6746,466 @@
], ],
"time": "2021-06-04T12:00:00+00:00" "time": "2021-06-04T12:00:00+00:00"
}, },
{
"name": "firebase/php-jwt",
"version": "v5.5.1",
"source": {
"type": "git",
"url": "https://github.com/firebase/php-jwt.git",
"reference": "83b609028194aa042ea33b5af2d41a7427de80e6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/83b609028194aa042ea33b5af2d41a7427de80e6",
"reference": "83b609028194aa042ea33b5af2d41a7427de80e6",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": ">=4.8 <=9"
},
"suggest": {
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
},
"type": "library",
"autoload": {
"psr-4": {
"Firebase\\JWT\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Neuman Vong",
"email": "neuman+pear@twilio.com",
"role": "Developer"
},
{
"name": "Anant Narayanan",
"email": "anant@php.net",
"role": "Developer"
}
],
"description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
"homepage": "https://github.com/firebase/php-jwt",
"keywords": [
"jwt",
"php"
],
"support": {
"issues": "https://github.com/firebase/php-jwt/issues",
"source": "https://github.com/firebase/php-jwt/tree/v5.5.1"
},
"time": "2021-11-08T20:18:51+00:00"
},
{
"name": "google/auth",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/googleapis/google-auth-library-php.git",
"reference": "21dd478e77b0634ed9e3a68613f74ed250ca9347"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/21dd478e77b0634ed9e3a68613f74ed250ca9347",
"reference": "21dd478e77b0634ed9e3a68613f74ed250ca9347",
"shasum": ""
},
"require": {
"firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0",
"guzzlehttp/guzzle": "^5.3.1|^6.2.1|^7.0",
"guzzlehttp/psr7": "^1.7|^2.0",
"php": ">=5.4",
"psr/cache": "^1.0|^2.0",
"psr/http-message": "^1.0"
},
"require-dev": {
"guzzlehttp/promises": "0.1.1|^1.3",
"kelvinmo/simplejwt": "^0.2.5|^0.5.1",
"phpseclib/phpseclib": "^2.0.31",
"phpunit/phpunit": "^4.8.36|^5.7",
"sebastian/comparator": ">=1.2.3"
},
"suggest": {
"phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings or for token management. Please require version ^2."
},
"type": "library",
"autoload": {
"psr-4": {
"Google\\Auth\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "Google Auth Library for PHP",
"homepage": "http://github.com/google/google-auth-library-php",
"keywords": [
"Authentication",
"google",
"oauth2"
],
"support": {
"docs": "https://googleapis.github.io/google-auth-library-php/master/",
"issues": "https://github.com/googleapis/google-auth-library-php/issues",
"source": "https://github.com/googleapis/google-auth-library-php/tree/v1.18.0"
},
"time": "2021-08-24T18:03:18+00:00"
},
{
"name": "google/cloud-core",
"version": "v1.43.1",
"source": {
"type": "git",
"url": "https://github.com/googleapis/google-cloud-php-core.git",
"reference": "60b47793e0c83f0e02a8197ef11ab1f599c348da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/60b47793e0c83f0e02a8197ef11ab1f599c348da",
"reference": "60b47793e0c83f0e02a8197ef11ab1f599c348da",
"shasum": ""
},
"require": {
"google/auth": "^1.18",
"guzzlehttp/guzzle": "^5.3|^6.0|^7.0",
"guzzlehttp/promises": "^1.3",
"guzzlehttp/psr7": "^1.7|^2.0",
"monolog/monolog": "^1.1|^2.0",
"php": ">=5.5",
"psr/http-message": "1.0.*",
"rize/uri-template": "~0.3"
},
"require-dev": {
"erusev/parsedown": "^1.6",
"google/common-protos": "^1.0",
"google/gax": "^1.9",
"opis/closure": "^3",
"phpdocumentor/reflection": "^3.0",
"phpunit/phpunit": "^4.8|^5.0",
"squizlabs/php_codesniffer": "2.*"
},
"suggest": {
"opis/closure": "May be used to serialize closures to process jobs in the batch daemon. Please require version ^3.",
"symfony/lock": "Required for the Spanner cached based session pool. Please require the following commit: 3.3.x-dev#1ba6ac9"
},
"bin": [
"bin/google-cloud-batch"
],
"type": "library",
"extra": {
"component": {
"id": "cloud-core",
"target": "googleapis/google-cloud-php-core.git",
"path": "Core",
"entry": "src/ServiceBuilder.php"
}
},
"autoload": {
"psr-4": {
"Google\\Cloud\\Core\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "Google Cloud PHP shared dependency, providing functionality useful to all components.",
"support": {
"source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.43.1"
},
"time": "2021-10-20T17:52:15+00:00"
},
{
"name": "google/cloud-translate",
"version": "v1.12.2",
"source": {
"type": "git",
"url": "https://github.com/googleapis/google-cloud-php-translate.git",
"reference": "58b3d2b0abc586035c9272eb8d45dfee0a39562a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/google-cloud-php-translate/zipball/58b3d2b0abc586035c9272eb8d45dfee0a39562a",
"reference": "58b3d2b0abc586035c9272eb8d45dfee0a39562a",
"shasum": ""
},
"require": {
"google/cloud-core": "^1.39",
"google/gax": "^1.1"
},
"require-dev": {
"erusev/parsedown": "^1.6",
"phpdocumentor/reflection": "^3.0",
"phpunit/phpunit": "^4.8|^5.0",
"squizlabs/php_codesniffer": "2.*"
},
"suggest": {
"ext-grpc": "The gRPC extension enables use of the performant gRPC transport",
"ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions."
},
"type": "library",
"extra": {
"component": {
"id": "cloud-translate",
"target": "googleapis/google-cloud-php-translate.git",
"path": "Translate",
"entry": "src/TranslateClient.php"
}
},
"autoload": {
"psr-4": {
"Google\\Cloud\\Translate\\": "src",
"GPBMetadata\\Google\\Cloud\\Translate\\": "metadata"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "Cloud Translation Client for PHP",
"support": {
"source": "https://github.com/googleapis/google-cloud-php-translate/tree/v1.12.2"
},
"time": "2021-12-10T17:55:49+00:00"
},
{
"name": "google/common-protos",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/googleapis/common-protos-php.git",
"reference": "b1ee63636d94fe88f6cff600a0f23fae06b6fa2e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/common-protos-php/zipball/b1ee63636d94fe88f6cff600a0f23fae06b6fa2e",
"reference": "b1ee63636d94fe88f6cff600a0f23fae06b6fa2e",
"shasum": ""
},
"require": {
"google/protobuf": "^3.6.1"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36",
"sami/sami": "*"
},
"type": "library",
"autoload": {
"psr-4": {
"Google\\": "src",
"GPBMetadata\\Google\\": "metadata"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "Google API Common Protos for PHP",
"homepage": "https://github.com/googleapis/common-protos-php",
"keywords": [
"google"
],
"support": {
"issues": "https://github.com/googleapis/common-protos-php/issues",
"source": "https://github.com/googleapis/common-protos-php/tree/1.4.0"
},
"time": "2021-11-18T21:49:24+00:00"
},
{
"name": "google/gax",
"version": "v1.10.0",
"source": {
"type": "git",
"url": "https://github.com/googleapis/gax-php.git",
"reference": "5222f7712e73d266490c742dc9bc602602ae00a5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/gax-php/zipball/5222f7712e73d266490c742dc9bc602602ae00a5",
"reference": "5222f7712e73d266490c742dc9bc602602ae00a5",
"shasum": ""
},
"require": {
"google/auth": "^1.18.0",
"google/common-protos": "^1.0",
"google/grpc-gcp": "^0.2",
"google/protobuf": "^3.12.2",
"grpc/grpc": "^1.13",
"guzzlehttp/promises": "^1.3",
"guzzlehttp/psr7": "^1.7.0|^2",
"php": ">=5.5"
},
"conflict": {
"ext-protobuf": "<3.7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36",
"squizlabs/php_codesniffer": "3.*"
},
"type": "library",
"autoload": {
"psr-4": {
"Google\\ApiCore\\": "src",
"GPBMetadata\\ApiCore\\": "metadata/ApiCore"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "Google API Core for PHP",
"homepage": "https://github.com/googleapis/gax-php",
"keywords": [
"google"
],
"support": {
"issues": "https://github.com/googleapis/gax-php/issues",
"source": "https://github.com/googleapis/gax-php/tree/v1.10.0"
},
"time": "2021-10-27T17:33:04+00:00"
},
{
"name": "google/grpc-gcp",
"version": "v0.2.0",
"source": {
"type": "git",
"url": "https://github.com/GoogleCloudPlatform/grpc-gcp-php.git",
"reference": "2465c2273e11ada1e95155aa1e209f3b8f03c314"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/GoogleCloudPlatform/grpc-gcp-php/zipball/2465c2273e11ada1e95155aa1e209f3b8f03c314",
"reference": "2465c2273e11ada1e95155aa1e209f3b8f03c314",
"shasum": ""
},
"require": {
"google/auth": "^1.3",
"google/protobuf": "^v3.3.0",
"grpc/grpc": "^v1.13.0",
"php": ">=5.5.0",
"psr/cache": "^1.0.1||^2.0.0||^3.0.0"
},
"require-dev": {
"google/cloud-spanner": "^1.7",
"phpunit/phpunit": "4.8.36"
},
"type": "library",
"autoload": {
"psr-4": {
"Grpc\\Gcp\\": "src/"
},
"classmap": [
"src/generated/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "gRPC GCP library for channel management",
"support": {
"issues": "https://github.com/GoogleCloudPlatform/grpc-gcp-php/issues",
"source": "https://github.com/GoogleCloudPlatform/grpc-gcp-php/tree/v0.2.0"
},
"time": "2021-09-27T22:57:18+00:00"
},
{
"name": "google/protobuf",
"version": "v3.19.1",
"source": {
"type": "git",
"url": "https://github.com/protocolbuffers/protobuf-php.git",
"reference": "83fe8edf7469ffdd83cb4b4e62249c154f961b9b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/83fe8edf7469ffdd83cb4b4e62249c154f961b9b",
"reference": "83fe8edf7469ffdd83cb4b4e62249c154f961b9b",
"shasum": ""
},
"require": {
"php": ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit": ">=4.8.0"
},
"suggest": {
"ext-bcmath": "Need to support JSON deserialization"
},
"type": "library",
"autoload": {
"psr-4": {
"Google\\Protobuf\\": "src/Google/Protobuf",
"GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "proto library for PHP",
"homepage": "https://developers.google.com/protocol-buffers/",
"keywords": [
"proto"
],
"support": {
"issues": "https://github.com/protocolbuffers/protobuf-php/issues",
"source": "https://github.com/protocolbuffers/protobuf-php/tree/v3.19.1"
},
"time": "2021-10-29T00:36:13+00:00"
},
{
"name": "grpc/grpc",
"version": "1.42.0",
"source": {
"type": "git",
"url": "https://github.com/grpc/grpc-php.git",
"reference": "9fa44f104cb92e924d4da547323a97f3d8aca6d4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/grpc/grpc-php/zipball/9fa44f104cb92e924d4da547323a97f3d8aca6d4",
"reference": "9fa44f104cb92e924d4da547323a97f3d8aca6d4",
"shasum": ""
},
"require": {
"php": ">=7.0.0"
},
"require-dev": {
"google/auth": "^v1.3.0"
},
"suggest": {
"ext-protobuf": "For better performance, install the protobuf C extension.",
"google/protobuf": "To get started using grpc quickly, install the native protobuf library."
},
"type": "library",
"autoload": {
"psr-4": {
"Grpc\\": "src/lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "gRPC library for PHP",
"homepage": "https://grpc.io",
"keywords": [
"rpc"
],
"support": {
"source": "https://github.com/grpc/grpc-php/tree/v1.42.0"
},
"time": "2021-11-19T08:13:51+00:00"
},
{ {
"name": "hamcrest/hamcrest-php", "name": "hamcrest/hamcrest-php",
"version": "v2.0.1", "version": "v2.0.1",
@ -7838,6 +8357,113 @@
], ],
"time": "2021-06-05T04:49:07+00:00" "time": "2021-06-05T04:49:07+00:00"
}, },
{
"name": "psr/cache",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/cache.git",
"reference": "213f9dbc5b9bfbc4f8db86d2838dc968752ce13b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/cache/zipball/213f9dbc5b9bfbc4f8db86d2838dc968752ce13b",
"reference": "213f9dbc5b9bfbc4f8db86d2838dc968752ce13b",
"shasum": ""
},
"require": {
"php": ">=8.0.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Cache\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for caching libraries",
"keywords": [
"cache",
"psr",
"psr-6"
],
"support": {
"source": "https://github.com/php-fig/cache/tree/2.0.0"
},
"time": "2021-02-03T23:23:37+00:00"
},
{
"name": "rize/uri-template",
"version": "0.3.4",
"source": {
"type": "git",
"url": "https://github.com/rize/UriTemplate.git",
"reference": "2a874863c48d643b9e2e254ab288ec203060a0b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rize/UriTemplate/zipball/2a874863c48d643b9e2e254ab288ec203060a0b8",
"reference": "2a874863c48d643b9e2e254ab288ec203060a0b8",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8.36"
},
"type": "library",
"autoload": {
"psr-4": {
"Rize\\": "src/Rize"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Marut K",
"homepage": "http://twitter.com/rezigned"
}
],
"description": "PHP URI Template (RFC 6570) supports both expansion & extraction",
"keywords": [
"RFC 6570",
"template",
"uri"
],
"support": {
"issues": "https://github.com/rize/UriTemplate/issues",
"source": "https://github.com/rize/UriTemplate/tree/0.3.4"
},
"funding": [
{
"url": "https://www.paypal.me/rezigned",
"type": "custom"
},
{
"url": "https://opencollective.com/rize-uri-template",
"type": "open_collective"
}
],
"time": "2021-10-09T06:30:16+00:00"
},
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
"version": "1.0.1", "version": "1.0.1",
@ -8802,6 +9428,69 @@
], ],
"time": "2020-09-28T06:39:44+00:00" "time": "2020-09-28T06:39:44+00:00"
}, },
{
"name": "stichoza/google-translate-php",
"version": "v4.1.5",
"source": {
"type": "git",
"url": "https://github.com/Stichoza/google-translate-php.git",
"reference": "85039e0af473e58cc9f42d58e36d9d534a6a6431"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Stichoza/google-translate-php/zipball/85039e0af473e58cc9f42d58e36d9d534a6a6431",
"reference": "85039e0af473e58cc9f42d58e36d9d534a6a6431",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "~6.0|~7.0",
"php": "^7.1|^8"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Stichoza\\GoogleTranslate\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Levan Velijanashvili",
"email": "me@stichoza.com"
}
],
"description": "Free Google Translate API PHP Package",
"homepage": "http://github.com/Stichoza/google-translate-php",
"keywords": [
"google",
"php",
"translate",
"translator"
],
"support": {
"issues": "https://github.com/Stichoza/google-translate-php/issues",
"source": "https://github.com/Stichoza/google-translate-php/tree/v4.1.5"
},
"funding": [
{
"url": "https://www.paypal.me/stichoza",
"type": "custom"
},
{
"url": "https://www.patreon.com/stichoza",
"type": "patreon"
}
],
"time": "2021-08-05T11:03:52+00:00"
},
{ {
"name": "symfony/debug", "name": "symfony/debug",
"version": "v4.4.31", "version": "v4.4.31",
@ -8870,6 +9559,67 @@
], ],
"time": "2021-09-24T13:30:14+00:00" "time": "2021-09-24T13:30:14+00:00"
}, },
{
"name": "tanmuhittin/laravel-google-translate",
"version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/tanmuhittin/laravel-google-translate.git",
"reference": "2f2d97b7cf0a1296b92a1aeb8cb965bac683c118"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tanmuhittin/laravel-google-translate/zipball/2f2d97b7cf0a1296b92a1aeb8cb965bac683c118",
"reference": "2f2d97b7cf0a1296b92a1aeb8cb965bac683c118",
"shasum": ""
},
"require": {
"ext-json": "*",
"google/cloud-translate": "^1.7.4",
"illuminate/console": ">=5.1",
"illuminate/support": "^5.5|^6|^7|^8",
"illuminate/translation": "^5.5|^6|^7|^8",
"php": ">=7.0.0",
"stichoza/google-translate-php": "^4.0",
"yandex/translate-api": "^1.5.2"
},
"require-dev": {
"orchestra/testbench": "5.x-dev|6.x-dev",
"phpunit/phpunit": "^8.3"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Tanmuhittin\\LaravelGoogleTranslate\\LaravelGoogleTranslateServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Tanmuhittin\\LaravelGoogleTranslate\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"authors": [
{
"name": "Muhittin Tan",
"email": "tanmuhittin@gmail.com"
}
],
"description": "Translate translation files to other languages using google translate api",
"support": {
"issues": "https://github.com/tanmuhittin/laravel-google-translate/issues",
"source": "https://github.com/tanmuhittin/laravel-google-translate/tree/2.0.4"
},
"funding": [
{
"url": "https://www.patreon.com/tanmuhittin",
"type": "patreon"
}
],
"time": "2020-09-30T18:04:10+00:00"
},
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
"version": "1.2.0", "version": "1.2.0",
@ -8919,6 +9669,47 @@
} }
], ],
"time": "2020-07-12T23:59:07+00:00" "time": "2020-07-12T23:59:07+00:00"
},
{
"name": "yandex/translate-api",
"version": "1.5.2",
"source": {
"type": "git",
"url": "https://github.com/yandex-php/translate-api.git",
"reference": "c99e69cde3e688fc0f99c4d8a21585226a8e1938"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yandex-php/translate-api/zipball/c99e69cde3e688fc0f99c4d8a21585226a8e1938",
"reference": "c99e69cde3e688fc0f99c4d8a21585226a8e1938",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.3"
},
"type": "library",
"autoload": {
"psr-4": {
"Yandex\\Translate\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nikita Gusakov",
"email": "dev@nkt.me"
}
],
"description": "Client for Yandex.Translate API",
"support": {
"issues": "https://github.com/yandex-php/translate-api/issues",
"source": "https://github.com/yandex-php/translate-api/tree/1.5.2"
},
"time": "2015-07-27T15:00:45+00:00"
} }
], ],
"aliases": [], "aliases": [],
@ -8931,5 +9722,5 @@
"ext-intl": "*" "ext-intl": "*"
}, },
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.0.0" "plugin-api-version": "2.1.0"
} }

View file

@ -190,6 +190,7 @@ return [
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
Yajra\DataTables\DataTablesServiceProvider::class, Yajra\DataTables\DataTablesServiceProvider::class,
Barryvdh\TranslationManager\ManagerServiceProvider::class,
], ],

View file

@ -0,0 +1,72 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Routes group config
|--------------------------------------------------------------------------
|
| The default group settings for the elFinder routes.
|
*/
'route' => [
'prefix' => 'translations',
'middleware' => [
'web',
'auth',
],
],
/**
* Enable deletion of translations
*
* @type boolean
*/
'delete_enabled' => true,
/**
* Exclude specific groups from Laravel Translation Manager.
* This is useful if, for example, you want to avoid editing the official Laravel language files.
*
* @type array
*
* array(
* 'pagination',
* 'reminders',
* 'validation',
* )
*/
'exclude_groups' => [],
/**
* Exclude specific languages from Laravel Translation Manager.
*
* @type array
*
* array(
* 'fr',
* 'de',
* )
*/
'exclude_langs' => [],
/**
* Export translations with keys output alphabetically.
*/
'sort_keys' => false,
'trans_functions' => [
'trans',
'trans_choice',
'Lang::get',
'Lang::choice',
'Lang::trans',
'Lang::transChoice',
'@lang',
'@choice',
'__',
'$trans.get',
],
];

View file

View file

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTranslationsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ltm_translations', function(Blueprint $table)
{
$table->collation = 'utf8mb4_bin';
$table->bigIncrements('id');
$table->integer('status')->default(0);
$table->string('locale');
$table->string('group');
$table->text('key');
$table->text('value')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('ltm_translations');
}
}

View file

File diff suppressed because one or more lines are too long