nova-blocks icon indicating copy to clipboard operation
nova-blocks copied to clipboard

Open Hours block: Customize days of the week in different languages

Open andreiungurianu opened this issue 5 years ago • 4 comments

Two customers (both from France) let me know that they cannot use the Open Hours block because it doesn't have support for French and only works in English. This makes the block unaccesible to a big portion of the world.

I tried to use a translation plugin (TranslatePress and Loco Translate) but they both don't seem to identify those strings, so I can't translated them this way.

andreiungurianu avatar Sep 24 '20 13:09 andreiungurianu

+1

alinclamba avatar Mar 24 '21 10:03 alinclamba

+1

diokast avatar May 26 '21 14:05 diokast

@vladolaru Do you think we can work to provide translatable strings for the Open Hours block?

georgeolaru avatar Jun 24 '22 07:06 georgeolaru

+1

A solution could be to use a Table block and write down the opening hours manually:

<!-- wp:table {"className":"open_overview_widget-schedule is-style-regular"} -->
<figure class="wp-block-table open_overview_widget-schedule is-style-regular"><table><tbody><tr><td>Monday</td><td>10:00am – 10:00pm</td></tr><tr><td>Tuesday</td><td>9:00am – 5:00pm</td></tr><tr><td>Wednesday</td><td>9:00am – 5:00pm</td></tr><tr><td>Thursday</td><td>9:00am – 5:00pm</td></tr><tr><td>Friday</td><td>9:00am – 5:00pm</td></tr><tr><td>Saturday</td><td>12:00pm – 2:00am</td></tr><tr><td>Sunday</td><td>Closed</td></tr></tbody></table></figure>
<!-- /wp:table -->

georgeolaru avatar Feb 03 '23 12:02 georgeolaru