Comments (3)
Hey @MeesPos, if you have something like that on a .json file on Laravel it will work? If so we can add that as new feature.
Thanks.
from laravel-vue-i18n.
Yes, here is an example:
This is what you get when you init Laravel in your project.
Now you can get a translation with the following code: __('auth.test')
.
from laravel-vue-i18n.
Yes with the php files, that is a feature needed to implement, to add a loader to transform the .php lang files to .json to be readable from the frontend.
But for the .json lang files I'm not sure if the multi level is supported (never tried).
from laravel-vue-i18n.
Related Issues (20)
- TypeError: laravel_vue_i18n__WEBPACK_IMPORTED_MODULE_22__.I18n is undefined HOT 8
- Vue integration: Unable to translate inside the script tag HOT 4
- Wont work with inerta/vue SSR HOT 3
- Could you please add the example with lang/en/auth.php structure?
- lang and fallbackLang not working HOT 1
- Should not generate extra file while Laravel using json locale file HOT 3
- Error: Unknown variable dynamic import: ../lang/en.json HOT 5
- Translation return key and not value after refreshing page HOT 4
- How can I pass a default value for the case of a non-existent or empty-string translation? HOT 2
- [REQ] React version HOT 1
- Library should work for nested keys in translation files. HOT 1
- Problem with php langs generation HOT 6
- Console error after vue 3.4 update HOT 2
- Language switches from english to the selected language HOT 2
- Update supported vue version to 3.4 HOT 1
- path.key not working at all HOT 1
- [REQ]: React support HOT 1
- Explain difference between trans, wTrans and $t? HOT 1
- Errors when building with TypeScript - `No overload matches this call` HOT 1
- TypeError: Cannot read properties of undefined (reading 'kind') when adding i18n() to plugins in vite.config.js HOT 3
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-vue-i18n.