Comments (6)
I have the same error.
In my lang file was line like this:
return [
'user' => []
];
from laravel-vue-i18n.
I found a problem and it is than in one of our lang files the translation value was set to null? Maybe you could add check in the package for that?
Also I am really interested how does this package work with php file. I could not understand it from the code. But i see files like php_sk.json getting generated but the deleted and it still somehow works. Could you please explain or set me on proper track ?
from laravel-vue-i18n.
Hey @rudolfbruder thanks for reporting.
was there a translation set to null
or an entire object example:
$t('message')
return ['message' => null'];
or is it like this?
$t('parent.message')
return ['parent' => null];
Thanks for the help.
from laravel-vue-i18n.
Solved and released on v2.7.5
.
Thanks.
from laravel-vue-i18n.
@xiCO2k I didn't know where to ask, but I would like to know if I can use this package to export the translations to javascript and be able to use them within an app just built in Vue and your backend is a Laravel API (separated projects) and how to do that?. This package works prefect when the project is integrated in one with inertia vue (breeze or jestream), but if backend and frontend are in separated projects?
from laravel-vue-i18n.
Hey @luisprmat, an export translation feature is something I'm considering adding to this package.
If you would like to contribute adding this. Go ahead
Thanks for the suggestion
from laravel-vue-i18n.
Related Issues (20)
- 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
- 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
- Object Translation HOT 2
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.