Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    marketplace-mod

    How to to use Translation in akeneo

    Localization in Akeneo:

    Translation and localization are both main features of Akeneo or any PIM (Product Information management) system.
    While adding features in Akeneo or creating a module for Akeneo. the user will need to add messages and their translations.

    So, let’s use some messages and add their translations.
    This could be done in 3 simple steps:

    Step 1:

    First, specify messages to translate.

    In javascript

    Suppose user want to add the translation in akeneo for some messages.
    then the user can use already present oro/translator requireJs module in  his/her module. for that user need to register module in requirejs.yml


    Then, use  oro/translator module in js module

    In HTML template

    The user can also translate messages into HTML template using underscore.js.
    For translation, underscore.js must be available in the template.
    then, the user can translate messages like

     

    Step 2: Adding Translations in files

    Now, the user will finally need to add the translated messages in config files.
    In any enabled bundle Go to Resources/translations/jsmessages.{locale}.yml (like jsmessages.fr.yml), and add the translation in the key-value pair like:


     

    Step 3: Clear Cache

    Then, dump translation by running this command from the terminal:


    After clearing the cache of Akeneo and browser, you can see these changes in the webpage of Akeneo.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close