Laravel 인도네시아어 유효성 검사 언어
#마살라
웹 사이트 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">
Laravel 인도네시아어 유효성 검사 언어 | 작성자: Syofyan Zuhad | 중간
쇼피안 주하드 ・ 2020년 4월 28일 ・ syofyanzuhad.Medium
Reference
이 문제에 관하여(Laravel 인도네시아어 유효성 검사 언어), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/syofyanzuhad/laravel-indonesian-validation-language-b7텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)