Coder Social home page Coder Social logo

nova-translation's People

Contributors

joedixon avatar norbybaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nova-translation's Issues

Filter button not visible

In Nova 2.12.0 the filter button is not visible, but still inserted into the DOM and functional if replaced. Comparing the markup with the filter button on nova resources i guess the markup has been changed and you need to replace it.

Fails on install

>>> composer require joedixon/nova-translation
Using version ^1.0 for joedixon/nova-translation
./composer.json has been updated
Running composer update joedixon/nova-translation
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
  - Locking joedixon/laravel-translation (v1.1.2)
  - Locking joedixon/nova-translation (v1.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Downloading joedixon/laravel-translation (v1.1.2)
  - Downloading joedixon/nova-translation (v1.0.0)
  - Installing joedixon/laravel-translation (v1.1.2): Extracting archive
  - Installing joedixon/nova-translation (v1.0.0): Extracting archive
Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Error 

  Unsupported operand types

  at vendor/joedixon/laravel-translation/routes/web.php:3
      1▕ <?php
      2▕ 
  ➜   3▕ Route::group(config('translation.route_group_config') + ['namespace' => 'JoeDixon\\Translation\\Http\\Controllers'], function ($router) {
      4▕     $router->get(config('translation.ui_url'), 'LanguageController@index')
      5▕         ->name('languages.index');
      6▕ 
      7▕     $router->get(config('translation.ui_url').'/create', 'LanguageController@create')
      8▕         ->name('languages.create');
      9▕ 

      +10 vendor frames 
  11  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(JoeDixon\Translation\TranslationServiceProvider))

      +5 vendor frames 
  17  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Target is not instantiable while building

Since upgrading to Laravel 6, I receive the following error when I try to access the Translations within the Laravel Nova Backend.

image

Current installed versions:

  • "joedixon/nova-translation": "^1.0",
  • "laravel/framework": "^6.2",
  • "laravel/nova": "^2.9",

Is the packaging allowing the translation of blog posts?

Hi,
thank you for this great package.

From the documentation, it's not clear to me if the package allows the translation also of built-in field types.
For instance, if I have blog posts, can I translate them into another language trough this package?

Same route names in package and dependency package

This package contains the same route names as in the dependency package, which is laravel-translation. In order to keep this package compatible with the Laravel 7+ and to be able to cache routes with route:cache command, Laravel expects unique route names which is currently not the case. This could lead to a performance issue on huge sites and is a drawback as there is no framework version constraint mentioned in the documentation.
Could this, please, be considered and tackled?

Thank you in advance.

Filter missing after update

The filter suddenly disappeared after update, any ideas?

Laravel: 5.8.35
Nova: 2.6.1
Nova-translation: 0.3.0

Screenshot 2019-11-18 at 21 33 21

error 500 when translation value is saved

when I try to add an translation value, an error 500 is obtained and cant save it

error_translation

In laravel.log I obtain:

[2020-04-08 18:49:53] local.ERROR: file_put_contents(/home/vagrant/code/resources/lang/vendor/Finished/es.json): failed to open stream:...

Why when I try to add Finished value it try to open a folder with this value?

Thanks

Exclude Translations

Hey great package!

is there a way to exclude translations? For example: Default Nova Translations should not be handled by my application users.

Cheers,
Stan

(SUGGESTION) Rich text editing

@joedixon --

So, first of all, I love this package. Most of the other packages to handle translation-related stuff are storing long blocks of crap as JSON in database columns and i hate that.

However, I'm running into a limitation: Some of my translation strings are rich text, and some of them are long. Editing with the little inline editor is pretty tricky, and definitely not useful for my client. Basically, what I'd like is to be able to toggle a rich text editor for some strings. (Nova already provides Trix.)

Here are some possible ways I've thought of to do this:

  • It happens that in my application, all my rich text translation keys are in the same group. So if there were a configuration setting that let me say, for instance, "everything in the specified groups should show Trix instead of a textarea", that would solve it
  • You could just allow a manual selection of plain/rich text by having two action buttons (one for "edit" and one for "rich edit")

Also, especially with the rich text editor, in-column string editing is a little squished. Perhaps consider popping up a modal for the editor instead?

Translation issue to display default value if in language file not found

Hi , i'm using this package it's very useful for me.

I have one issue there.

I have two language file en.json and de.json

In en.json file has below parameter.
{
"name":"My name",
"Address":"Address line",
"Country":"US"
}

In de.json file has below parameter.
{
"name":"My name",
"Country":"US"
}

When i set language as de , Address will display from en.json file because en is my default language and this parameter not found in de.json

But in my project it is nor working, If you have any solution please let me know

Thank You

Version Update

Hi, thanks for your effort.
I wonder if you find time to update the version requirement of this package to match your latest release for "laravel-translation".
Cause now during the installation, we are having some issues related to conflicts with the minimum-stability as it requires joedixon/laravel-translation[v0.2.0, v0.2.1]
Again thanks for your work!

Failed to cache route due to name conflict

When you invoke php artisan route:cache it will generate error:

Unable to prepare route [nova-vendor/nova-translation/languages] for serialization. Another route has already been assigned name [languages.index].

maybe need unique name slug like nova_translation_languages.index?

Notification on save

Thanks for this package. Works very well 👍

Maybe can yo add a toast notification when a translation is saved. Thanks!

Laravel Nova 4 support

Class Joedixon\NovaTranslation\NovaTranslation contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu)

unable to access the nova resource

Hi
I have installed the package and i am unable to navigate to the resource. Wwhen i am clicking in the menu link i have a redirect to the dashboard.
I also have installed the main package for the translation. I have removed all the middleware in the config/translation.php
Any suggestion how to fix this ?
Thank you

Error in database driver

In Nova, the Language index page shows an error. There is no value showing in the locale field. If we clicked the view button an error is coming.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.