Git Product home page Git Product logo

Comments (6)

jean-francine avatar jean-francine commented on July 24, 2024 1

Hi @paullla ! I just updated the bundle and it works like a charm !
Thank you so much !!

from apiplatformtranslationbundle.

jean-francine avatar jean-francine commented on July 24, 2024

I used ApiPlatformTranslationBundle with symfony 4.3

from apiplatformtranslationbundle.

paullla avatar paullla commented on July 24, 2024

Hi @jean-francine I think the problem is in ReferenceMateriel constructor. You didn't call parent constructor, so locale isn't set at all. Also, you don't need to initialise translations collection, since it is done in AbstractTranslatable class. This is what constructor should look like if you wish to use it in your class:

   public function __construct() {
        parent::__construct();
        //...
    }

Please let me know if this helps.

from apiplatformtranslationbundle.

jean-francine avatar jean-francine commented on July 24, 2024

Thanks you for the quick reply !
Unfortunately that does not solve the problem.
I have the following lines which are the defaults setting in the file config/packages/translation.yaml :

framework:
default_locale: en
translator:
default_path: '%kernel.project_dir%/translations'
fallbacks:
- en

is this the correct setting ?

from apiplatformtranslationbundle.

paullla avatar paullla commented on July 24, 2024

@jean-francine can you check if #19 fixed your problem by pulling the latest version of the bundle?

from apiplatformtranslationbundle.

paullla avatar paullla commented on July 24, 2024

Thank you for your feedback :) Closing the issue.

from apiplatformtranslationbundle.

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.