🌐Update: support Thai language (#768)

* add thai language config

* update thai translation

* update thai translation

* add THSarabunNew fonts to using in pdf

* update: pdf file to support thai language by checking isLocale('th') and include thai font-family

* update: thai translation

* remove the index.php file (not used)

* move THSarabunNew fonts to resoureces/static/fonts

* Add .gitkeep to storage/fonts to pre-build the fonts directory

Co-authored-by: Ritthikrai (Champ) Wiengchai <ritthikrai.w@aware.co.th>
This commit is contained in:
Ritthikrai W
2022-06-15 19:47:36 +07:00
committed by GitHub
parent 33bc9ded65
commit 204483836a
22 changed files with 1664 additions and 30 deletions

View File

@ -1,17 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>@lang('pdf_sales_items_label')</title>
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
.sub-container{
.sub-container {
padding: 0px 20px;
}
@ -132,11 +133,18 @@
line-height: 21px;
color: #5851D8;
}
.text-center {
text-align: center;
}
</style>
@if (App::isLocale('th'))
@include('app.pdf.locale.th')
@endif
</head>
<body>
<div class="sub-container">
<table class="report-header">
@ -154,7 +162,7 @@
</td>
</tr>
</table>
<p class="sales-items-title">@lang('pdf_items_label')</p>
@foreach ($items as $item)
<div class="items-table-container">
@ -175,15 +183,15 @@
</div>
@endforeach
<table class="sales-total-indicator-table">
<tr>
<td class="sales-total-cell">
<p class="sales-total-amount">
{!! format_money_pdf($totalAmount) !!}
</p>
</td>
</tr>
</table>
<table class="sales-total-indicator-table">
<tr>
<td class="sales-total-cell">
<p class="sales-total-amount">
{!! format_money_pdf($totalAmount) !!}
</p>
</td>
</tr>
</table>
</div>
@ -200,4 +208,5 @@
</tr>
</table>
</body>
</html>