代码拉取完成,页面将自动刷新
#Language Pack
####Installation
// Minimum requirement TP framework 6.1, PHP version 7.2.5
composer require mark/tp-lang
####Instructions
Publish language pack service registration through PHP think service: discover
Execute installation configuration in markg\lang\Service and replace the binding class of framework language pack management class lang
Language package loading path, unchanged for internal framework loading and system language package loading. Added the ability to create directory language packages by country under app/lang
The loading function of other language packs remains unchanged, and extended language pack files can be specified. The country and language need to be concatenated [country language]
// YourProjectPath/config/lang.php
$config = [
'extend_list'=>[
//'In en'=>__ DIR__. '/App/lang/in/en. php ',
'In en'=>__ DIR__. '/App/lang/in_en. php ',
]
];
// You can switch between different countries through
markg\lang\facade\Lang::switchCountry('country','language');
// Check if the key exists
markg\lang\facade\Lang::has('key', $range='');
// Get the value of the key
markg\lang\facade\Lang::get('key', $vars=[], $range='')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。