Comments (4)
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.
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.
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.
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)
- share Method Removed
- Empty Messages HOT 2
- Country config values HOT 6
- Find Missing Translations HOT 1
- Replacement parameters are case sensitive HOT 4
- The artisan commands does not work with Laravel 5.5 HOT 4
- Long translations keys (translation strings as keys) support? HOT 8
- Quick-fix new generateMessageFiles() HOT 2
- Need to run artisan js-localization:refresh on every new translation? HOT 1
- Use toString() in localization.js? HOT 2
- Static generation getting started HOT 8
- [feature] default language keys when missing in a split_export_files HOT 4
- Lang.get("") returns whole object of translations
- Laravel 5.8, Composer - No matching package found HOT 4
- Unable to get translation to work (question on how this supposed to work) HOT 1
- wrong behaviour when using replacements with same starting name HOT 3
- Laravel 7 support HOT 3
- Tag version
- Support for Laravel 8 HOT 1
- Support for Laravel 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-js-localization.