What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

is there a way to render a translation from within an Yves module?

UKGT7RC7P
UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

is there a way to render a translation from within an Yves module?

Comments

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    I've tried using the GlossaryClient but that doesn't seem to be correct

  • GlossaryStorageClient should help you there πŸ™‚

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes - tried that but it doesn't seem to do what I expect it to do

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    the translations retrived from storage with |trans in Twig have different keys

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    or is there difference between GlossaryClient and GlossaryStorageClient ? πŸ€”

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    possibly

  • For sure. The data source for the GlossaryStorageClient is redis.

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    and GlossaryClient Zed?

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    I think it's also Redis

  • And you can check that Twig use the Storage one here \SprykerShop\Yves\ShopTranslator\Model\TwigTranslator::trans

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    that's the one πŸ‘

  • Yes, it is

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    wonders what GlossaryClient is for

  • rshopin
    rshopin Sprykee Posts: 32 πŸ§‘πŸ»β€πŸš€ - Cadet

    For BC πŸ™‚

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited April 2020

    hmm, doesn't seem to have a @deprecated tag tho