Laravel-Lang / lang

List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI.

Home Page:https://laravel-lang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parameter `:attribute` in `de` is sometimes translated as `:Attribute`

DeepDiver1975 opened this issue · comments

Environment

  • Laravel-Lang Version: 13.2.2
  • Laravel Version: 10.21
  • PHP Version: 8.1.22

Issue description

"accepted": ":Attribute muss akzeptiert werden.",

Steps to reproduce

Look at the GitHub link ;-)

same on cs

"accepted": ":Attribute musí být přijat.",

Please ignore - I missed laravel capitalisation 🙈

Despite the found solution to the problem, I will still post my answer:

This behavior is by design since sentences must always start with a capital letter.

Here you can also read how Laravel handles :attribute, :Attribute and :ATTRIBUTE.

Yes, the original file says :attribute, but that's because the sentence starts with "The":

'accepted' => 'The :attribute field must be accepted.',

Thanks for the answer! It might also help others running into this. 👍