Skip to main content
added 791 characters in body
Source Link

For this you need to follow the multiLingual feature for magento 2. 
To showStep 1: Inside Magento 2 admin go to Stores –> Configuration –> All store and create new store view for the textlanguage(eg:French).

Step 2: Next go to Stores –> Configuration, and now please pay attention on store “scopes”, store view needs to match to language which you want to edit.

Step 3: Now change to desired Country in multi languagesGeneral -> General -> Desired Country(eg: French, Belgium).

Step 4: Next important thing is Locale, General-> General -> Locale Option you need to add theselect which language packages of those languages in yourstore will speak, based on that we will install language pack.

Step 5: Now Install a Language Pack.
Step 6: After you have downloaded language pack, copy it inside Magento app directory, create a new folder i18n, Create Folder named upon vendor, and lastly create folder using store language codes. For eg: magento_install_dir/app/i18n/vendor_name/fr_FR/.. folder.

Step 7: In this language package, you have to add the text(eg: Hello World) in the csv file which that language package already contains. Also make sure that you in that you print your text in the following format.

<?php echo __('Hello World'); ?> 

For this you need to follow the multiLingual feature for magento 2. To show the text in multi languages you need to add the language packages of those languages in your app/i18n folder. In this language package, you have to add the text(eg: Hello World) in the csv file which that language package already contains. Also make sure that you in that you print your text in the following format.

<?php echo __('Hello World'); ?> 

For this you need to follow the multiLingual feature for magento 2. 
Step 1: Inside Magento 2 admin go to Stores –> Configuration –> All store and create new store view for the language(eg:French).

Step 2: Next go to Stores –> Configuration, and now please pay attention on store “scopes”, store view needs to match to language which you want to edit.

Step 3: Now change to desired Country in General -> General -> Desired Country(eg: French, Belgium).

Step 4: Next important thing is Locale, General-> General -> Locale Option you need to select which language store will speak, based on that we will install language pack.

Step 5: Now Install a Language Pack.
Step 6: After you have downloaded language pack, copy it inside Magento app directory, create a new folder i18n, Create Folder named upon vendor, and lastly create folder using store language codes. For eg: magento_install_dir/app/i18n/vendor_name/fr_FR/..

Step 7: In this language package, you have to add the text(eg: Hello World) in the csv file which that language package already contains. Also make sure that you in that you print your text in the following format.

<?php echo __('Hello World'); ?> 
Source Link

For this you need to follow the multiLingual feature for magento 2. To show the text in multi languages you need to add the language packages of those languages in your app/i18n folder. In this language package, you have to add the text(eg: Hello World) in the csv file which that language package already contains. Also make sure that you in that you print your text in the following format.

<?php echo __('Hello World'); ?>