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