Code Monkey home page Code Monkey logo

Comments (4)

chlab avatar chlab commented on August 31, 2024 1

Awesome :)

I'll have a shot at it when copying translation keys back and forth annoy me too much :)
No promise on when though. I'll close this issue for now.

Thanks for your work!

from laravel-js-localization.

andywer avatar andywer commented on August 31, 2024

Ahhh, I didn't know philo/laravel-translate before. Seems to make sense, but yes, the additional depedency is not so nice.

Hmm... What do you think of my suggestion of watching the localization files when in development mode (#26 (comment))?

I think you should be able to use laravel-translate out-of-the-box then. It changes the localization files and laravel-js-localization will refresh the cache automatically.

from laravel-js-localization.

chlab avatar chlab commented on August 31, 2024

Well it could be an optional dependency. If the required command is not found, print a notice that laravel-translate is required for that. Or, only register the command if laravel-translate is found. Since the package does exactly what we need it to do, the dependency is justifiable.

I'm not a fan of watching the localization files as it doesn't eliminate step 2. Also when working in JS you probably already have a watch command running and maybe don't want to run another in parallel.

It's your call :)

from laravel-js-localization.

andywer avatar andywer commented on August 31, 2024

True. Step 2 is not solved then...

Yeah, sure, I am convinced ;) It's probably the best solution to make it an optional dependency and add a command to laravel-js-localization. I just don't really have time for it right now. But if you want to write it, no problem.

PS: Nice title 🙌

from laravel-js-localization.

Related Issues (20)

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.