framework icon indicating copy to clipboard operation
framework copied to clipboard

优化多语言分组获取层级

Open hogus2037 opened this issue 5 years ago • 0 comments

  • 分组定义
return [
    'user'    =>    [
        'welcome'  => '欢迎回来',
        ......
        'login' => [
            ccount' => '登陆账号'
        ]
    ]
];
  • 获取变量
lang('user.login.account');

hogus2037 avatar Oct 29 '20 04:10 hogus2037