Laravel Localization for long strings

Posted 1 year ago by pdc

I have a Laravel website with views containing long, static strings. From the documentation (https://laravel.com/docs/5.2/localization) I understand you can use App::setLocale($locale) and App::getLocale() to change the locale. However, since my views contain long strings (mainly parameterless), I don't see how it would be handy to paste all these texts into /resources/lang/{locale}/messages.php-file. I assume this would get very confusing very fast. How do you deal with this?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.