Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
devmsh committed Sep 1, 2018
2 parents ba03425 + 0d47116 commit d521160
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
],
"license": "MIT",
"require": {
"php": ">=7.1.0"
"php": ">=7.1.0",
"spatie/laravel-translatable": "^2.2"
},
"autoload": {
"psr-4": {
Expand Down
39 changes: 39 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Multilingual Nova (using default nova fields)

This field allow you to support multilingual index/forms/deatils CRUD using [Laravel Nova](https://nova.laravel.com) and [Spatie Translatable](https://github.com/spatie/laravel-translatable).

### Screenshots

TBD

### Install

Run this command into your nova project:
`composer require digitalcloud/multilingual-nova`

### Add it to your Nova Resource:

```php
use Digitalcloud\MultilingualNova\Multilingual;

Multilingual::make('translations'),
```

Note that "Translations" is not a database column like Most of Nova Fields, it's just a Label.

### Features

* Display supported locales in the index view
* Allow you to edit any resource in any supported locale
* NO ADDITIONAL FIELDS, just use the default laravel form fields
* Quick switch between languages in the details view
* Support Relations fields and sub tables
* Autofill form fields with default/fallback language content

### Roadmap

* [ ] Display translated/untranslated status for each locale
* [ ] List the supported locale using Config file
* [ ] Manage the supported locale using Database resource
* [ ] Autodetect translatable Models
* [ ] Better support for untranslatable fields

0 comments on commit d521160

Please sign in to comment.