Skip to content

Move language strings from lang dir to inline usage #1059

@driesvints

Description

@driesvints

After reflecting upon it I believe it's better to keep the language strings in the places where's they're used. This keeps a smaller footprint and easier way to edit them without having to move through different language files.

So how this would go is that we need to replace the keys with their actual language strings:

$this->success('settings.deleted');

Becomes

$this->success('Account was successfully removed.');

Additionally, SendsAlerts should be updated to use the __() helper instead of the obsolete trans helper.

Lastly, all language files, including its directory should be removed. It's not needed to add an en.json language file because it's highly unlikely we'll ever offer multi language support for Laravel.io

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions