XF 2.3 How to use phrases in the front-end?

BredyAK

Member
I'm trying to use Phrases for i18n of the front-end UI. But XF.phrase() only interprets the keys contained in XF.phrases.
For instance: XF.phrase('oops_we_ran_into_some_problems') got "Oops! We ran into some problems." correctly, but XF.phrase('1_day_ago') did not.
How to make a phrase available in JavaScript? What difference have I overlooked?
 
Back
Top Bottom