Collection CMS options and dates – how to localize? – Localization – Forum


We have dates in our news/blog collection, and noticed they don’t translate. Also, we have a number of popup options, and those also don’t translate. There seems to be no where to do so. Or? Am I missing something? Did these get left out?

If you make you pop-ups symbols and add overrides on the text fields(I don’t even think you need overrides )you probably can translate those. I did that with the Finsweet cookie modal.

As for your other question , did you use the prefixed Webflow dates? Switch that over to something that is universal? No days and months written , but something like 24/12/2023 or 12/24/2024? I don’t know if these can be translated , but this can be a option .

Do you mean a date field, or a date written within text? Date fields don’t appear to localize, so you may have to localize it yourself with custom code using javascript’s Intl.DateTimeFormat() function.

I haven’t tested a working solution, but here’s a writeup on how that would work;

If you mean dates within text, that adds complication in simply the process of finding them with your script.

Here if you mean an option field, I’ve seen mention in the forum that these aren’t yet translated either. You could possibly replace those with a ref to a collection [ not ideal, I know ], otherwise you’re left to wait, or you could get creative with conditional visibility or custom code.



Source link

Leave a Comment