This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

EgerStudio
EgerStudio

I might be daft as can be, but how do I set up October to translate dates (specifically weekdays and months) based on either Date::setLocale('no') or based on the locale in app.php?

I've tried installing the translate-plugin, but I'm not sure how to implement that in my own component on the front end. All dates display as English, no matter what I do when setting up the translate plugin or manually calling Date::setLocale('no').

When calling Argon::now()->format('D d. M') I get the right translation, but how do I make my models date-field adhere to an Argon-instance instead of Carbon? Is that a solution?

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.