mirror of https://github.com/flucont/btcloud.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							834 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							27 lines
						
					
					
						
							834 B
						
					
					
				
								<?php
							 | 
						|
								// +----------------------------------------------------------------------
							 | 
						|
								// | 多语言设置
							 | 
						|
								// +----------------------------------------------------------------------
							 | 
						|
								
							 | 
						|
								return [
							 | 
						|
								    // 默认语言
							 | 
						|
								    'default_lang'    => env('lang.default_lang', 'zh-cn'),
							 | 
						|
								    // 允许的语言列表
							 | 
						|
								    'allow_lang_list' => [],
							 | 
						|
								    // 多语言自动侦测变量名
							 | 
						|
								    'detect_var'      => 'lang',
							 | 
						|
								    // 是否使用Cookie记录
							 | 
						|
								    'use_cookie'      => true,
							 | 
						|
								    // 多语言cookie变量
							 | 
						|
								    'cookie_var'      => 'think_lang',
							 | 
						|
								    // 多语言header变量
							 | 
						|
								    'header_var'      => 'think-lang',
							 | 
						|
								    // 扩展语言包
							 | 
						|
								    'extend_list'     => [],
							 | 
						|
								    // Accept-Language转义为对应语言包名称
							 | 
						|
								    'accept_language' => [
							 | 
						|
								        'zh-hans-cn' => 'zh-cn',
							 | 
						|
								    ],
							 | 
						|
								    // 是否支持语言分组
							 | 
						|
								    'allow_group'     => false,
							 | 
						|
								];
							 |