初始字段

$fields = [
    'op_name'      => 'common',//语言包KEY
    'op_valte'     => 'common',//语言包VALUE
    'op_module'    => 'index',
    'op_controll'  => 'config',
    'op_action'    => 'zh-cn',//(zh-cn|zh-tw|en-cs)
    'op_order'     => 0,
    'op_status'    => 'normal',
    'op_autoload'  => 'yes',
];

卸载插件时删除动态语言包

model('common/Lang','loglic')->uninstall('demo'); 

安装插件时批量插入动态语言包

model('common/Lang','loglic')->install([
    'index/admin/index'        => '首页设置',
    'index_widget_pc'          => '首页小组件(默认)',
    'index_widget_wap'         => '首页小组件(移动)',
    'index_widget_placeholder' => '首页需要加载的组件,一行一个完整模板路径',
],'index','zh-cn');