Comments (2)
No, not a mistake. The fact is that in the English version, the validator sentences begin with the word "The". Thus, if we capitalize attribute names, we get something like The Name must be accepted.
instead of The name must be accepted.
.
But if we write with a small letter, then the sentence will look correct.
At the same time, Laravel has a word conversion mechanism:
__('The :attribute must be accepted.', ['attribute' => 'name']) // The name
__('The :Attribute must be accepted.', ['attribute' => 'name']) // The Name
__('The :ATTRIBUTE must be accepted.', ['attribute' => 'name']) // The NAME
__('The :attribute must be accepted.', ['attribute' => 'NAME']) // The NAME
__('The :Attribute must be accepted.', ['attribute' => 'NAME']) // The NAME
__('The :ATTRIBUTE must be accepted.', ['attribute' => 'NAME']) // The NAME
from attributes.
At the same time, the script does not change the words written by the developer, since, for example, in German, nouns can begin with a capital letter.
If you ask why all the names in the locales/de/php.json file are with a small letter, then here I made them with a small letter when I updated all the states. For this I apologize.
from attributes.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attributes.