Skip to content

[Twig Reference] Filter humanize add exemple to capitalize behavior #19758

Closed
@RonanSauvage

Description

@RonanSauvage

Actually, the doc presents the behavior of replacing underscores with spaces and evoked capitalization of the string. But in the example just before, capitalization is not represented.

So two options seems possible to me :

  • keep current text and just add other exemple for capitalization behavior :

Makes a technical name human readable (i.e. replaces underscores by spaces or transforms camelCase text like helloWorld to hello world and then capitalizes the string like helloWorld to Hello World).

  • group the two behaviors into a single example :

Makes a technical name human readable (i.e. replaces underscores by spaces or transforms camelCase text and then capitalizes the string like helloWorld to Hello World).

I'm ready to create the corresponding pull request, I would just like to get advice on the best solution from someone familiar with maintaining the doc.

Personally I find the second solution better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TwighasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions