Sam Joseph
Sam Joseph

Reputation: 4704

where does the _() underscore syntax in Typo ERB files come from?

I'm seeing an underscore syntax in the Type ERB files e.g. <%= _("Uploads") %> that I don't recognize - does anyone know what the library is that supports this - is it referring to partials or something ...?

https://github.com/fdv/typo/

Upvotes: 1

Views: 417

Answers (1)

mikej
mikej

Reputation: 66283

As the comments have said, it is indeed the localisation function.

It is this plugin in Typo and you can see the actual method declaration here.

Upvotes: 1

Related Questions