0

how we can convert all the content in the Magento 2 site in to different language like Hindi.

1

If there is no language pack on the internet, you need to create store with you language and in theme or module create i18n folder with For example: English uk_US.csv file and make translate like "word" : "translation". For make sentence or word translatable: in .phtml

<?php echo __('sample text') ?>

in html

<div data-bind="i18n: 'text'">

in cms blocks

{{trans "text"}}

By the way you can you inline-translate in configuration->advanced->developer

  • i need to convert entire site and content in to Hindi, not a single word and single sentence. – suresh-vagvala Nov 9 '18 at 15:57
  • 1
    @suresh-vagvala You can't click one button and translate entire site :) If you want to translate a content you should make it translatable. magento 2 doesn't work like google translate, every text should be translated by yourself and i showed you how does it works. Easiest way is inline translation in admin panel. By the way language pack triggered for default text that comes up from magento, so for entire translate you need to be a part of it – Kharidas Chebotaryov Nov 10 '18 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.