What is the best logic to separate language files in Laravel?
I am about to make a decision out of two choices.
First is to collect all application button localization strings in buttons.php, link localization strings in links.php, placeholders localization strings in placeholders.php.
Like this :
/resources
/lang
/en
buttons.php
links.php
placeholders.php
/es
buttons.php
links.php
placeholders.php
Second is to collect localization strings for each view in a separate file.
Like this :
/resources
/lang
/en
login_page.php
sign_up.php
home.php
/es
login_page.php
sign_up.php
home.php
In first choice, I will end up with less number of language files as I will have about 10 files.
In second choice, I will end up with large number of language files as I will have a lang file for each view I have in project.
Which choice would be better?