generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
ed583aa
commit 0de942e
Showing
30 changed files
with
561 additions
and
552 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 |
---|---|---|
@@ -1 +1 @@ | ||
github: :vendor_name | ||
github: Mahmoud217TR |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a | ||
url: https://github.com/Mahmoud217TR/auto-files-localizer/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Request a feature | ||
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas | ||
url: https://github.com/Mahmoud217TR/auto-files-localizer/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Report a security issue | ||
url: https://github.com/:vendor_name/:package_name/security/policy | ||
url: https://github.com/Mahmoud217TR/auto-files-localizer/security/policy | ||
about: Learn how to notify us for sensitive bugs |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Changelog | ||
|
||
All notable changes to `:package_name` will be documented in this file. | ||
All notable changes to `auto-files-localizer` will be documented in this file. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,24 +1,31 @@ | ||
{ | ||
"name": ":vendor_slug/:package_slug", | ||
"description": ":package_description", | ||
"name": "mahmoud217tr/auto-files-localizer", | ||
"description": "Laravel Localization package that auto generate json locale files", | ||
"keywords": [ | ||
":vendor_name", | ||
"Mahmoud217TR", | ||
"laravel", | ||
":package_slug" | ||
"auto-files-localizer" | ||
], | ||
"homepage": "https://github.com/:vendor_slug/:package_slug", | ||
"homepage": "https://github.com/mahmoud217tr/auto-files-localizer", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": ":author_name", | ||
"email": "[email protected]", | ||
"name": "Mahmoud Mahmoud", | ||
"email": "[email protected]", | ||
"homepage": "https://github.com/Mahmoud217TR", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.2", | ||
"php": "^8.0", | ||
"spatie/laravel-package-tools": "^1.16", | ||
"illuminate/contracts": "^10.0||^11.0" | ||
"illuminate/contracts": "^10.0||^11.0", | ||
"illuminate/config": "^9.0|^10.0|^11.0", | ||
"illuminate/console": "^9.0|^10.0|^11.0", | ||
"illuminate/support": "^9.0|^10.0|^11.0", | ||
"illuminate/filesystem": "^9.0|^10.0|^11.0", | ||
"illuminate/translation": "^9.0|^10.0|^11.0", | ||
"symfony/finder": "^5.1|^6.0|^7.0" | ||
}, | ||
"require-dev": { | ||
"laravel/pint": "^1.14", | ||
|
@@ -30,24 +37,26 @@ | |
"pestphp/pest-plugin-laravel": "^2.3", | ||
"phpstan/extension-installer": "^1.3", | ||
"phpstan/phpstan-deprecation-rules": "^1.1", | ||
"phpstan/phpstan-phpunit": "^1.3", | ||
"spatie/laravel-ray": "^1.35" | ||
"phpstan/phpstan-phpunit": "^1.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"VendorName\\Skeleton\\": "src/", | ||
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/" | ||
"Mahmoud217TR\\AutoFilesLocalizer\\": "src/" | ||
} | ||
, | ||
"files": [ | ||
"src/helpers.php" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"VendorName\\Skeleton\\Tests\\": "tests/", | ||
"Mahmoud217TR\\AutoFilesLocalizer\\Tests\\": "tests/", | ||
"Workbench\\App\\": "workbench/app/" | ||
} | ||
}, | ||
"scripts": { | ||
"post-autoload-dump": "@composer run prepare", | ||
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi", | ||
"clear": "@php vendor/bin/testbench package:purge-auto-files-localizer --ansi", | ||
"prepare": "@php vendor/bin/testbench package:discover --ansi", | ||
"build": [ | ||
"@composer run prepare", | ||
|
@@ -73,11 +82,8 @@ | |
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"VendorName\\Skeleton\\SkeletonServiceProvider" | ||
], | ||
"aliases": { | ||
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton" | ||
} | ||
"Mahmoud217TR\\AutoFilesLocalizer\\AutoFilesLocalizerServiceProvider" | ||
] | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
|
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,64 @@ | ||
<?php | ||
|
||
return [ | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Translation Path | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option defines the directory where the translated files will be saved. | ||
| By default, it uses the 'resources/lang' directory of your Laravel app. | ||
| | ||
*/ | ||
'path' => default_languages_path(), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Extraction mode options | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 1- directories: | ||
| This option determines what directories the translation scanner should scan. | ||
| | ||
| 2- patterns: | ||
| This option determines what pattern of files the translation scanner should scan. | ||
| | ||
| 3- functions: | ||
| This option determines functions or blade directives that the strings will be extracted from. | ||
| You should add any custom defined functions or directives used for translation here. | ||
| | ||
*/ | ||
'extraction' => [ | ||
'directories' => [ | ||
'resources/views', | ||
], | ||
'patterns' => [ | ||
'*.php' | ||
], | ||
'functions' => [ | ||
'__', | ||
'trans', | ||
'@lang', | ||
], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Dynamic mode options | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 1- enabled (Auto Localizer Enabled): | ||
| This option determines whether the auto localizer functionality is enabled. | ||
| When set to true, the package will save translations automatically. | ||
| | ||
| 2- production (Production Mode): | ||
| This option controls whether the auto localizer functionality is active in | ||
| the production environment. If set to true, the functionality will work | ||
| in all environments, including production. | ||
| | ||
*/ | ||
'dynamic' => [ | ||
'enabled' => (bool) env('AUTO_LOCALIZER_ENABLED', false), | ||
'production' => false, | ||
], | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.