Skip to main content
Topic: i18n on --human_date--? (Read 1037 times) previous topic - next topic

i18n on --human_date--?

Is there a possibility to add localization to --human_date-- helper?

maybe extend it so we can have it like e.g. I have "27th March 2022", let's say I do this: --human_date("es_ES")--, and as a result I get: "27 de Marzo de 2022"?

Thanks in advance

Re: i18n on --human_date--?

Reply #1
@ZeroX90‍ you can modify the function yourself in {Project root}/helpers/Function.php and locate function human_date() { . when you do, you can add the extra and use it in your project.