0

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

1 Answer 1

2

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

2
  • i need to convert entire site and content in to Hindi, not a single word and single sentence. Commented Nov 9, 2018 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 Commented Nov 10, 2018 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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