trait ManagesTranslations (View source)

Properties

protected array $translationReplacements

The translation replacements for the translation being rendered.

Methods

void
startTranslation(array $replacements = [])

Start a translation block.

string
renderTranslation()

Render the current translation.

Details

void startTranslation(array $replacements = [])

Start a translation block.

Parameters

array $replacements

Return Value

void

string renderTranslation()

Render the current translation.

Return Value

string

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.