04.07.2019 Views

frontend-developer-1

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Implement Internationalization of Frontend Pages<br />

Inside the language package, include the CSV generated above named as the<br />

contents of the node with a .csv suffix.<br />

HELPFUL LINKS:<br />

• https://devdocs.magento.com/guides/v2.2/config-guide/cli/<br />

config-cli-subcommands-i18n.html#config-cli-subcommandsxlate-pack<br />

• https://github.com/splendidinternet/Magento2_German_<br />

LocalePack_de_DE<br />

• https://github.com/magento/magento2/tree/2.2/app/i18n/<br />

Magento/fr_FR<br />

Database translations<br />

Database translations are the easiest to implement, but the most difficult to transfer<br />

from installation to installation. They are found in the translation table.<br />

To create a new translation, the easiest is to turn on Inline Translation (Store ><br />

Configuration > Developer > Translate Inline). You could also insert new rows in the<br />

the translation table manually with the limitation being the need to determine<br />

the module to associate the translation to.<br />

While translating with Inline Translation, disable the Translations, Block HTML<br />

and Full Page caches.<br />

Copyright © 2018, SwiftOtter, Inc.<br />

145

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!