fix lang
attribute of HTML
This commit is contained in:
parent
e97d2743fb
commit
1f5c0af0aa
@ -23,6 +23,7 @@ class ViewServiceProvider extends ServiceProvider
|
||||
'site_name' => option_localized('site_name'),
|
||||
'navbar_color' => $color,
|
||||
'color_mode' => in_array($color, $lightColors) ? 'light' : 'dark',
|
||||
'locale' => str_replace('_', '-', app()->getLocale()),
|
||||
]);
|
||||
});
|
||||
|
||||
|
@ -44,6 +44,7 @@
|
||||
- Fixed the display problem for too long texture name.
|
||||
- Fixed that dependencies and conflicts haven't been checked before installing plugin.
|
||||
- Fixed retrieving search keyword from query string in skin library.
|
||||
- Fixed that `lang` attribute of HTML can't be configured correctly.
|
||||
|
||||
## Removed
|
||||
|
||||
|
@ -44,6 +44,7 @@
|
||||
- 材质名过长时的显示问题
|
||||
- 下载插件前不检查依赖和冲突的问题
|
||||
- 修复皮肤库中从 query string 获取搜索关键字的问题
|
||||
- 修复未能正确设置 HTML 的 `lang` 属性的问题
|
||||
|
||||
## 移除
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
{{ include('shared.head') }}
|
||||
<title>{% block title %}{% endblock %} - {{ site_name }}</title>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
@include('shared.head')
|
||||
<title>@yield('title') - {{ option_localized('site_name') }}</title>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
{{ include('shared.head') }}
|
||||
<title>{% block title %}{% endblock %} - {{ site_name }}</title>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
{{ include('shared.head') }}
|
||||
<title>{{ site_name }}</title>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
{{ include('shared.head') }}
|
||||
<title>{% block title %}{% endblock %} - {{ site_name }}</title>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
{{ include('shared.head') }}
|
||||
<title>{% block title %}{% endblock %} - {{ site_name }}</title>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ locale }}">
|
||||
<head>
|
||||
@include('shared.head')
|
||||
<title>@yield('title') - {{ option_localized('site_name') }}</title>
|
||||
|
Loading…
Reference in New Issue
Block a user