fix lang attribute of HTML

This commit is contained in:
Pig Fang 2019-12-31 10:00:27 +08:00
parent e97d2743fb
commit 1f5c0af0aa
12 changed files with 12 additions and 9 deletions

View File

@ -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()),
]);
});

View File

@ -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

View File

@ -44,6 +44,7 @@
- 材质名过长时的显示问题
- 下载插件前不检查依赖和冲突的问题
- 修复皮肤库中从 query string 获取搜索关键字的问题
- 修复未能正确设置 HTML 的 `lang` 属性的问题
## 移除

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
{{ include('shared.head') }}
<title>{% block title %}{% endblock %} - {{ site_name }}</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
@include('shared.head')
<title>@yield('title') - {{ option_localized('site_name') }}</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
{{ include('shared.head') }}
<title>{% block title %}{% endblock %} - {{ site_name }}</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
{{ include('shared.head') }}
<title>{{ site_name }}</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
{{ include('shared.head') }}
<title>{% block title %}{% endblock %} - {{ site_name }}</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
{{ include('shared.head') }}
<title>{% block title %}{% endblock %} - {{ site_name }}</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ locale }}">
<head>
@include('shared.head')
<title>@yield('title') - {{ option_localized('site_name') }}</title>