Code Monkey home page Code Monkey logo

laravel-langscanner's People

Contributors

druc avatar mucenica-bogdan avatar rodrigopedra 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

Watchers

 avatar  avatar  avatar

laravel-langscanner's Issues

Not compatibel with laravel 9

Only one of these can be installed: illuminate/contracts[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.2, v9.0.0, ..., v9.2.0], laravel/framework[v9.1.0, v9.2.0]. laravel/framework replaces illuminate/contracts and thus cannot coexist with it.

v-for trans(array) missing feature

Hi, today recognised that langscanner wont add translation keys to files if they in array maybe some idea to add this feature too ??

  <div v-for="key in keys" :key="key">
      {{ trans(key.name) }}
   </div>

Support for laravel 11

Add composer.json:

"illuminate/contracts": "^9.0|^10.0"|^11.0,

Support for laravel 11

Laravel 10 / Jetstream / Inertia support

$ composer require druc/laravel-langscanner
./composer.json has been updated
Running composer update druc/laravel-langscanner
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - druc/laravel-langscanner[0.0.0, ..., 0.3.0, 1.0.0] require illuminate/contracts ^8.0 -> found illuminate/contracts[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - druc/laravel-langscanner 1.1.0 requires illuminate/contracts ^8.0|^9.0 -> found illuminate/contracts[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
    - druc/laravel-langscanner[v2.0.0, ..., v2.0.1] require illuminate/contracts ^9.0 -> found illuminate/contracts[v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires druc/laravel-langscanner * -> satisfiable by druc/laravel-langscanner[0.0.0, 0.1.0, 0.2.0, 0.3.0, 1.0.0, 1.1.0, v2.0.0, v2.0.1].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require druc/laravel-langscanner:*" to figure out if any version is installable, or "composer require druc/laravel-langscanner:^2.1" if you know which you need.

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

Thanks in advance!

Generate translation file

In order for the langscanner to do its job, you need to have a language.json file with {} as content in your lang directory.

It would be nice to be able to specify the language in the command and have the langscanner create the language.json file automatically.

For example:

php artisan langscanner nl

This would create nl.json

Package not generating traslations files but instead outputs the missing translations on the console

The package doesn't generate translation files, it only outputs the missing translations in the console. I am using Laravel 9 Inertia Vue js
php artisan langscanner es
Output:
ES missing translations: +---------------------------+---------------+ | Key | Path | +---------------------------+---------------+ | Sports | Desktop.vue | | Live Bet | Desktop.vue | | Casino | Desktop.vue | | My Bets | Desktop.vue | | My Account | Desktop.vue | | Messages | Desktop.vue | | History | Desktop.vue | | Games | Desktop.vue | | Logout | Desktop.vue | | Account | Desktop.vue | | Preferences | Desktop.vue |

But no es translations are written in the es.json file.

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.