apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
75 stars 35 forks source link

Consider changing handlebars i18n prefix from '_' to 'i18n' #1691

Open brylie opened 7 years ago

brylie commented 7 years ago

Right now, we include internationalization strings in our template using the following syntax:

{{_ 'token' }}

Our i18n framework, TAPi18n, allows us to define the prefix we wish to use.

Proposal

Change the handlebars i18n prefix to 'i18n'. E.g.

{{i18n 'token' }}

Rationale

The use of underscore has been problematic, and is somewhat ambiguous. 'i18n' prefix is more explicit.

ilarimikkonen commented 5 years ago

to be evaluated (effort) and sense