mini_i18n icon indicating copy to clipboard operation
mini_i18n copied to clipboard

Add `T` or `t` shortcut

Open markets opened this issue 1 year ago • 0 comments

Introduce a global method T (or t) as a shortcut for convenience:

>> T(:hello)
=> "Hello"

Let's say T (or t) should be the same as MiniI18n.t. Probably, introduce also L (or l) to quickly call MiniI18n.l.

In terms of implementation, probably the way to go is to just inject those methods in the Kernel module.

markets avatar May 22 '24 00:05 markets