mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
622 B
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 |
|
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. 🤷♂️