translations added

This commit is contained in:
Benjamin Takats
2022-12-17 20:28:14 +01:00
parent dfaf83199a
commit 1d7927607f
612 changed files with 539 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
"guzzlehttp/guzzle": "^7.2",
"itsmejoshua/novaspatiepermissions": "^1.0",
"jackiedo/timezonelist": "^5.1",
"joedixon/laravel-translation": "^2.1",
"laravel/framework": "^9.19",
"laravel/jetstream": "^2.12",
"laravel/nova": "~4.0",

113
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "03556c131e9d7187b04ef3b18162f5b7",
"content-hash": "233c21d81dfd51b9929f8cf795c2435c",
"packages": [
{
"name": "akuechler/laravel-geoly",
@@ -2522,6 +2522,61 @@
],
"time": "2020-06-13T08:05:20+00:00"
},
{
"name": "joedixon/laravel-translation",
"version": "v2.1.2",
"source": {
"type": "git",
"url": "https://github.com/joedixon/laravel-translation.git",
"reference": "e10786b0bcde76b684ad18dd21abe3dda9887c75"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/joedixon/laravel-translation/zipball/e10786b0bcde76b684ad18dd21abe3dda9887c75",
"reference": "e10786b0bcde76b684ad18dd21abe3dda9887c75",
"shasum": ""
},
"require": {
"illuminate/support": "^8.0||^9.0",
"laravel/legacy-factories": "^1.3",
"php": "^8.0"
},
"require-dev": {
"mockery/mockery": "^1.0.0",
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"JoeDixon\\Translation\\TranslationServiceProvider",
"JoeDixon\\Translation\\TranslationBindingsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"JoeDixon\\Translation\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Joe Dixon",
"email": "hello@joedixon.co.uk"
}
],
"description": "A tool for managing all of your Laravel translations",
"support": {
"issues": "https://github.com/joedixon/laravel-translation/issues",
"source": "https://github.com/joedixon/laravel-translation/tree/v2.1.2"
},
"time": "2022-08-30T09:03:02+00:00"
},
{
"name": "laravel/fortify",
"version": "v1.14.1",
@@ -2841,6 +2896,62 @@
},
"time": "2022-12-15T14:58:38+00:00"
},
{
"name": "laravel/legacy-factories",
"version": "v1.3.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/legacy-factories.git",
"reference": "5edc7e7eb76e7b4b29221f32139bcbf806c8870f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/legacy-factories/zipball/5edc7e7eb76e7b4b29221f32139bcbf806c8870f",
"reference": "5edc7e7eb76e7b4b29221f32139bcbf806c8870f",
"shasum": ""
},
"require": {
"illuminate/macroable": "^8.0|^9.0",
"php": "^7.3|^8.0",
"symfony/finder": "^3.4|^4.0|^5.0|^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"laravel": {
"providers": [
"Illuminate\\Database\\Eloquent\\LegacyFactoryServiceProvider"
]
}
},
"autoload": {
"files": [
"helpers.php"
],
"psr-4": {
"Illuminate\\Database\\Eloquent\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylor@laravel.com"
}
],
"description": "The legacy version of the Laravel Eloquent factories.",
"homepage": "http://laravel.com",
"support": {
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2022-01-13T08:45:08+00:00"
},
{
"name": "laravel/nova",
"version": "4.19.5",

77
config/translation.php Normal file
View File

@@ -0,0 +1,77 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Package driver
|--------------------------------------------------------------------------
|
| The package supports different drivers for translation management.
|
| Supported: "file", "database"
|
*/
'driver' => 'database',
/*
|--------------------------------------------------------------------------
| Route group configuration
|--------------------------------------------------------------------------
|
| The package ships with routes to handle language management. Update the
| configuration here to configure the routes with your preferred group options.
|
*/
'route_group_config' => [
'middleware' => 'auth',
],
/*
|--------------------------------------------------------------------------
| Translation methods
|--------------------------------------------------------------------------
|
| Update this array to tell the package which methods it should look for
| when finding missing translations.
|
*/
'translation_methods' => ['trans', '__'],
/*
|--------------------------------------------------------------------------
| Scan paths
|--------------------------------------------------------------------------
|
| Update this array to tell the package which directories to scan when
| looking for missing translations.
|
*/
'scan_paths' => [app_path(), resource_path()],
/*
|--------------------------------------------------------------------------
| UI URL
|--------------------------------------------------------------------------
|
| Define the URL used to access the language management too.
|
*/
'ui_url' => 'languages',
/*
|--------------------------------------------------------------------------
| Database settings
|--------------------------------------------------------------------------
|
| Define the settings for the database driver here.
|
*/
'database' => [
'connection' => '',
'languages_table' => 'languages',
'translations_table' => 'translations',
],
];

File diff suppressed because one or more lines are too long

1
public/vendor/translation/js/app.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"/js/app.js": "/js/app.js",
"/css/main.css": "/css/main.css"
}

Some files were not shown because too many files have changed in this diff Show More