Code Monkey home page Code Monkey logo

Comments (6)

conturov911 avatar conturov911 commented on July 3, 2024 1

I have the same error.
In my lang file was line like this:

return [
   'user' => []
];

from laravel-vue-i18n.

rudolfbruder avatar rudolfbruder commented on July 3, 2024

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.

xiCO2k avatar xiCO2k commented on July 3, 2024

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.

xiCO2k avatar xiCO2k commented on July 3, 2024

Solved and released on v2.7.5.

Thanks.

from laravel-vue-i18n.

luisprmat avatar luisprmat commented on July 3, 2024

@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.

xiCO2k avatar xiCO2k commented on July 3, 2024

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)

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.