1.引用symfony/translation多語言組件。 2.插件結(jié)構(gòu):
src/ exception facade resource/ └── translations ├── en │ └── messages.php └── zh_CN └── messages.php helper.php composer.json
插件需要使用到多語言,如果加載插件語言包? 希望支持一下。
參考手冊 http://www.wtbis.cn/doc/webman/components/translation.html
謝謝,之前已閱讀參考了指定語言文件,沒有動態(tài)指定文件路徑的方法,就拷貝到resource/translations/下