Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html if en change to ltr

<?php
$language = str_replace('_', '-', app()->getLocale());
if ($language == 'ar') {
    $dir = 'rtl';
} else {
    $dir = 'ltr';
}
?>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="<?php echo $dir; ?>">

</html>
 
PREVIOUS NEXT
Tagged: #html #en #change #ltr
ADD COMMENT
Topic
Name
1+1 =