NOW MANAGED ON CODEBERG
Removed html dir tag for now, Updated lang format
Dan Brown666213a4d405
diff --git a/app/Http/Middleware/Localization.php b/app/Http/Middleware/Localization.phpindex 29a436954..b5e702781 100644--- a/app/Http/Middleware/Localization.php+++ b/app/Http/Middleware/Localization.php@@ -57,7 +57,7 @@ class Localization$locale = setting()->getUser(user(), 'language', $defaultLang);}- config()->set('app.lang', $this->getLocaleIso($locale));+ config()->set('app.lang', str_replace('_', '-', $this->getLocaleIso($locale)));// Set text directionif (in_array($locale, $this->rtlLocales)) {diff --git a/resources/views/base.blade.php b/resources/views/base.blade.phpindex 456923c4e..bb0a8cdda 100644--- a/resources/views/base.blade.php+++ b/resources/views/base.blade.php@@ -1,5 +1,5 @@<!DOCTYPE html>-<html lang="{{ config('app.lang') }}" dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}" class="@yield('body-class')">+<html lang="{{ config('app.lang') }}" class="@yield('body-class')"><head><title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>diff --git a/resources/views/books/export.blade.php b/resources/views/books/export.blade.phpindex fd1ba3fd1..4a7c45e0b 100644--- a/resources/views/books/export.blade.php+++ b/resources/views/books/export.blade.php@@ -1,5 +1,5 @@<!doctype html>-<html lang="{{ config('app.lang') }}" dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}">+<html lang="{{ config('app.lang') }}"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>{{ $book->name }}</title>diff --git a/resources/views/chapters/export.blade.php b/resources/views/chapters/export.blade.phpindex 5fae78269..580c123cc 100644--- a/resources/views/chapters/export.blade.php+++ b/resources/views/chapters/export.blade.php@@ -1,5 +1,5 @@<!doctype html>-<html lang="{{ config('app.lang') }}" dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}">+<html lang="{{ config('app.lang') }}"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>{{ $chapter->name }}</title>diff --git a/resources/views/pages/export.blade.php b/resources/views/pages/export.blade.phpindex 970db3c2f..4746a56f3 100644--- a/resources/views/pages/export.blade.php+++ b/resources/views/pages/export.blade.php@@ -1,5 +1,5 @@<!doctype html>-<html lang="{{ config('app.lang') }}" dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}">+<html lang="{{ config('app.lang') }}"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>{{ $page->name }}</title>diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.phpindex 1b14adb28..f73b87b59 100644--- a/resources/views/vendor/notifications/email.blade.php+++ b/resources/views/vendor/notifications/email.blade.php@@ -1,5 +1,5 @@<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html lang="{{ config('app.lang') }}" dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}">+<html lang="{{ config('app.lang') }}"><head><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />