1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-use-strmarkdown-to-build-translation-strings.md
Samuel Štancl 9ff2f9816b Week 28/2022
2022-07-17 20:57:28 +02:00

622 B

title tweet_id thread_slug author_username images created_at slug
You can use `Str::markdown` to build translation strings 1547939801373892620 weekly-thread-2022-28 danjharrin
https://pbs.twimg.com/media/FXKnQBLWQAAVcuQ.jpg
2022-07-15T13:43:02+00:00 you-can-use-strmarkdown-to-build-translation-strings

Ever needed to add HTML inside a Laravel translation string, and had to split the string up into chunks?

Or felt bad about raw HTML in your translations?

Here's a little cheat - parse markdown. Most of the formatting you want to do inside a translation string is available. 🤷‍♂️