commercetools / commercetools-sunrise-java

The next generation shop framework by commercetools
https://demo.commercetools.com
Apache License 2.0
46 stars 35 forks source link

Default i18n getOrKey or getOrEmpty? #687

Open lauraluiz opened 6 years ago

lauraluiz commented 6 years ago

In some places (e.g. HandlebarsI18nHelper) the default is getOrEmpty, so it returns empty when the message key is not found. But on other places it has been decided to use getOrKey to allow to write unlocalized messages or simply to display something even if it's a message key (sometimes that can be more useful than nothing).