Closed DanielRuf closed 3 years ago
@DanielRuf I like to keep it in this way. index.js
is a common name and it does not disclose the purpose of the file explicitly. But __.js
does it.
export __ from './__';
This change needs little timing of cleaning as we are currently importing the translation function like
import { __ } from 'i18n';
This reference would change to
import __ from 'i18n'
So we need to do this in a lot of places. So better we avoid it. We have many other important task to be completed :)
https://github.com/hyva-themes/magento2-hyva-checkout/blob/main/src/reactapp/src/i18n/index.js#L1
Either rename
__.js
toindex.js
(saves one extra file) or change the import toexport __ from './__';