2

I have added the new field in Customer navigation section near the Sign In, For that new field I need to fr_FR translation where I need to add the translation text? Those translation files are working from which file please tell me.

3 Answers 3

3

have you used this syntax where you put your text?

Template file:

<?php /* @escapeNotVerified */ echo __('Your text') ?>

Knockout file:

data-bind="i18n: 'Your text'"
1

You can installed French Language pack
https://github.com/mageplaza/magento-2-french-language-pack

Or you can Create language file at below path and add translation text. app/design/frontend/Vendor/theme/i18n/fr_FR.csv

6
  • I have already installed all languages translated but my custom language text is not translated that's the problem Commented Feb 7, 2018 at 6:04
  • is rest of things are translated? Commented Feb 7, 2018 at 6:06
  • have u set language from admin configuration? Commented Feb 7, 2018 at 6:16
  • Yes rest of things translated Commented Feb 7, 2018 at 6:22
  • I have one added one custom text that one is not translated Commented Feb 7, 2018 at 6:23
1

Not tested: But You can try using fr_FR.csv under /vendor/magento/module-customer/i18n directory and check the translation.

Hope that may help you.

2
  • In that folder that folder I have added that text is exit but translation not working Commented Feb 7, 2018 at 6:29
  • If I edited that existing text means that one also not coming I don't know where this text is loading Commented Feb 7, 2018 at 6:30

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.