Laravel 인도네시아어 유효성 검사 언어

Kali ini saya akan coba menyusun ulang gaya penulisan agar lebih mudah dibaca, terkhusus untuk para developer yang stick di tengah jalan. Maka dari itu kalian bisa berikan tanggapan kalian dari gaya penulisan baru ini di kolom komentar.

#마살라



웹 사이트 sudah konsisten pakai bahasa indonesia tapi, errornya kayak gini :



Pernah mengalami stick seperti di atas ?
Tenang, 공유 kita kali ini adalah bagaimana cara untuk mengganti bahasa dari 오류 유효성 검사 milik laravel yang defaultnya berbahasa inggris. (ya iyalah yg buat orang sono)

#solusi


사투



그래서, yang harus kita lakukan adalah men다운로드 파일 유효성 검사 sesuai bahasa yang akan kita pakai.
다음 버전에서 다운로드할 수 있습니다.

composer require caouecs/laravel-lang

출처: https://github.com/caouecs/Laravel-lang

두아



Jika ingin memkai hanya bahasa indonesia nya saja, buatlah 폴더 baru di dalam 디렉토리 리소스/lang dengan nama id dan simpan ke-empat file di atas didalam 폴더 id tersebut.



lalu 복사 disini isi dari tiap2 파일 dibawah ini:

auth.php




페이지네이션.php




<script id="gist-ltag"src="https://gist.github.com/syofyanzuhad/bbb60475f19fdcabc065ca8a2b4f0c64.js"/>


passwords.php




<script id="gist-ltag"src="https://gist.github.com/syofyanzuhad/9ba48c07dbbd59cb52376adf0b5ddf8f.js"/>


validation.php




<script id="gist-ltag"src="https://gist.github.com/syofyanzuhad/2b0dc8a461ea119ad22b6f24d22101fa.js"/>


Langkah selanjutnya adalah mengubah konfigurasi bahasa dari 프로젝트 laravel kita di dalam 파일 config/app.php 멘자디 세페르티 베리쿠트 :




/*
|-------------------------------------------------------------------
| Application Timezone
|-------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'Asia/Jakarta',
/*
|-------------------------------------------------------------------
| Application Locale Configuration
|-------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'id',
/*
|-------------------------------------------------------------------
| Application Fallback Locale
|-------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'id',
/*
|-------------------------------------------------------------------
| Faker Locale
|-------------------------------------------------------------------
|
| This locale will be used by the Faker PHP library when generating fake
| data for your database seeds. For example, this will be used to get
| localized telephone numbers, street address information and more.
|
*/
'faker_locale' => 'id_ID',


#셀레사이



지금 로그인할 때마다 로그인해야 합니다.





Sekian sharing kita kali ini, semoga bermanfaat. Pertanyaan lebih lanjut bisa ditanyakan di kolom komentar. Jika kalian merasa, artikel ini bermanfaat. Silahkan share ke teman-teman yang lain jg ya..



살람 라라벨 익스플로러!



Wassalamu'alaikum Warahmatullahi Wabarakatuh



*진짜 기사 :


<사업부 클래스="ltag__link">


좋은 웹페이지 즐겨찾기