Reading list Switch to dark mode

    How to add translation for Akeneo Webkul Modules Interface

    Updated 24 August 2022

    akeneo-content-translator

    Introduction:

    Localization in Akeneo Webkul Modules: Translation is an inherent part of the localization process. In order for product information to be localized, it needs to be in the native language of the market. While adding features or creating in Akeneo Webkul Module. With the help of this add-on, the users will be able to translate the completed language into their native language. And that will make their experience easy. The user will need to add messages and their translations.

    These are following  three steps:

    Localization in Akeneo Webkul Modules:

    1. First, specify messages to translate. In javascript.
    2. Step 2: Adding Translations in files.
    3. Step 3: Clear Cache.

    Step 1:

    For Javascript:

    If user want to add the translation in akeneo webkul module for some messages.

    Then the user can use oro/translator requireJs module in  his/her module. for that user need to register module in requirejs.yml

    Start your headless eCommerce
    now.
    Find out More
    # config/requirejs.yml
    config:
        paths:
            pimenrich/custom/mymodule: pimenrich/js/custom/mymodule
    

    Then, use  oro/translator module in js module

    // in defination of module pimenrich/js/custom/mymodule
    "use strict";
    define(
    [
    'oro/translator',
    ],
    function(
    __,
     
    ) {
      var msg = __('message to be translated message'); 
    }
    );

    For HTML Template:

    The user can also translate messages into HTML template using underscore.js.

    For translation, underscore.js must be available in the template ,like

    <p>
      <%- _.__('message to be translated') %>
    </p>

    Step 2: Adding Translations in files

    Now, the user can add the translated messages in config files, like

    message to translated: message à Couronné de succès
    
    

    Step 3: Clear Cache

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

    php bin/console oro:translation:dump

    After clearing the cache of Akeneo Webkul Module and browser, you can see these changes in the web page of Akeneo Webkul Module.

    If you will face any issues related to How to add translation for Akeneo Webkul Modules Interface raise a ticket over [email protected].

    Thank You !

    Please explore our Akeneo Development Services and Quality Akeneo Extensions.

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home