HugoS
November 1, 2017, 9:53am
#1
Hi!
I’m a French Grav user and currently building a “french-only” website with a blog components.
My site.yaml is set to ‘fr’ and I don’t want to use the Multi-Language feature, because I would like to avoid such a http://website.example.fr/fr URL.
However, it seems impossible to display blog dates (short month), and sidebar widgets in French…
Must I use the Multi-Language feature? Or is there a workaround?
Regards,
Hugo.
renards
November 1, 2017, 8:13pm
#2
Hi @HugoS ,
maybe this entry How to correctly set a default language? can help you to configure your site without the language code in the URL.
If you want to set the date in the corresponding language there is a reference in the documentation : https://learn.getgrav.org/content/multi-language#translation-via-twig .
If that does not work you can create a Twig partial with the month translations and include it in your template.
HugoS
November 2, 2017, 6:55am
#3
Thank you, @renards !
I simply missed this setting while building my user/config/system.yaml
:
include_default_lang: false
It was set to true
… Now, I have dates and labels in French and no /fr in my address bar.