Skip to content

[11.x] Adds the addPath() method to the Lang facade and the Translator class.#54347

Merged
taylorotwell merged 3 commits into
laravel:11.xfrom
selcukcukur:patch-3
Jan 27, 2025
Merged

[11.x] Adds the addPath() method to the Lang facade and the Translator class.#54347
taylorotwell merged 3 commits into
laravel:11.xfrom
selcukcukur:patch-3

Conversation

@selcukcukur
Copy link
Copy Markdown
Contributor

@selcukcukur selcukcukur commented Jan 24, 2025

When you want to add a translation path at any stage throughout the application, it makes it possible to add it directly as follows.

app('translator')->addPath($path);

// OR

Lang::addPath($path);

@taylorotwell taylorotwell merged commit 13c3913 into laravel:11.x Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants