Skip to content

Commit

Permalink
first commit 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Sep 5, 2022
1 parent d4da406 commit 5160b0f
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 68 deletions.
Empty file removed Http/Controllers/.gitkeep
Empty file.
Empty file removed Http/Middleware/.gitkeep
Empty file.
18 changes: 0 additions & 18 deletions Http/Middleware/Language.php

This file was deleted.

30 changes: 0 additions & 30 deletions Http/Middleware/LanguageMiddleware.php

This file was deleted.

Empty file removed Http/Requests/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright 2022 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# VILT Translations Module

Database Base Translations Keys with Google Translations API Integration.

## Install

```bash
composer require queents/translations-module
```
Add Module to `modules_statuses.json` if not exists

```json
{
"Translations": true
}
```

```bash
php artisan translations:install
```

Make a migration

```bash
php artisan migrate
```

Publish Assets

```bash
npm i & npm run build
```

OR

```bash
yarn & yarn build
```


## Support

you can join our discord server to get support [VILT Admin](https://discord.gg/HUNYbgKDdx)

## Docs

look to the new docs of v4.00 on my website [Docs](https://vilt.3x1.io/docs/)

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Credits

- [Queen Tech Solutions](https://github.com/queents)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

4 changes: 0 additions & 4 deletions Routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/translations', function (Request $request) {
return $request->user();
});
12 changes: 0 additions & 12 deletions Routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,4 @@
|
*/

// Route::middleware(['web', 'auth:sanctum', 'verified'])->prefix('translations')->name('translations.')->group(function () {
// Route::get('/', [TranslationsController::class, 'index'])->name('index');
// Route::post('/', [TranslationsController::class, 'store'])->name('store');
// Route::post('{id}/update', [TranslationsController::class, 'update'])->name('update');
// Route::delete('{id}/delete', [TranslationsController::class, 'destroy'])->name('destory');
// Route::post('bulk', [TranslationsController::class, 'bulk'])->name('bulk');
// Route::get('scan', [TranslationsController::class, 'scan'])->name('scan');
// Route::get('export', [TranslationsController::class, 'export'])->name('export');
// Route::post('import', [TranslationsController::class, 'import'])->name('import');
// Route::post('auto', [TranslationsController::class, 'auto'])->name('auto');
// });

Route::post('translations/switch', [TranslationsResource::class, 'change'])->name('translations.switch');
33 changes: 29 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
{
"name": "nwidart/translations",
"description": "",
"name": "queents/translations-module",
"description": "Database Base Translations Keys with Google Translations API Integration",
"type": "laravel-module",
"license": "MIT",
"keywords": [
"laravel",
"VILT",
"base",
"resource",
"page",
"translation",
"translation GUI",
"translation database",
"google translations",
"admin panel",
"admin one",
"vuejs",
"ineriajs",
"tailwind.css"
],
"homepage": "https://www.queentechsolutions.net",
"authors": [
{
"name": "Nicolas Widart",
"email": "[email protected]"
"name": "Fady Mondy",
"email": "[email protected]",
"role": "Senior Fullstack Developer"
}
],
"require": {
"queents/vilt": "^1.0",
"spatie/laravel-translatable": "^6.0",
"spatie/laravel-translation-loader": "^2.7"
},
"extra": {
"laravel": {
"providers": [],
Expand Down

0 comments on commit 5160b0f

Please sign in to comment.