You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to render in Spanish, and am not sure how to configure timeago.
import{register,format,render,cancel}from'timeago.js';import{esLocal}from'timeago.js/lib/lang/es';register('es',esLocal);constnodes=document.querySelectorAll('.timeago');// use render method to render nodes in real timerender(nodes,'es');
I imagine I'm not registering it correctly, but I can't find the documentation on how to do that. Thanks.
The text was updated successfully, but these errors were encountered:
I'm trying to render in Spanish, and am not sure how to configure timeago.
I imagine I'm not registering it correctly, but I can't find the documentation on how to do that. Thanks.
The text was updated successfully, but these errors were encountered: