html if en change to ltr

Solutions on MaxInterview for html if en change to ltr by the best coders in the world

showing results for - "html if en change to ltr"
Mirko
24 Nov 2020
1<?php
2$language = str_replace('_', '-', app()->getLocale());
3if ($language == 'ar') {
4    $dir = 'rtl';
5} else {
6    $dir = 'ltr';
7}
8?>
9<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="<?php echo $dir; ?>">
10
11</html>