yiisoft / yii2-bootstrap5

Yii 2 Bootstrap 5 Extension
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
59 stars 37 forks source link

Translation re-factoring #55

Closed WinterSilence closed 1 year ago

WinterSilence commented 1 year ago

Need

  1. Extract code from TranslationBootstrap::bootstrap() into BootstrapAsset::init() - no need add it bootstrap and load every time
  2. Move up messages directory - src must contain only class files
simialbi commented 1 year ago
  1. If you put it in BootstrapAsset::init you lose the posibility to not use translations. With the bootstrap method you can choose.
  2. I followed common usage (e.g. https://github.com/kartik-v/yii2-grid/tree/master/src)