How to use phrases in the front-end?

Status
This content is read-only, or is not open for further replies.

BredyAK

Guest
offline
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?

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom