Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to set the Spanish language by default?

Started by Lucas 7 years ago · 3 replies · 1159 views
7 years ago

Hi, I'm from Argentina and I'm trying to set up a squeleton, but I can't set the language correctly.
I follow the documentation steps, but I can't translate the months.
How to set the Spanish language by default?
Thank you!

7 years ago

Hi Lucas,

Try to set this property in your user/config/site.yaml after title: line.
default_lang: es

Add this in your user/config/system.yaml:

YAML
languages:
  supported:
    - es
  default_lang: es
  include_default_lang: false
  pages_fallback_only: false
  translations: true
  translations_fallback: true
  session_store_active: false
  http_accept_language: false
  override_locale: false

If you don't see languages applied, try to translate Template or try with this plugin: https://github.com/getgrav/grav-plugin-langswitcher

Happy hacking!

7 years ago

@sincorchetes:
languages: supported: - es default_lang: es include_default_lang: false pages_fallback_only: false translations: true translations_fallback: true session_store_active: false http_accept_language: false override_locale: false

Gracias por contestar.
Se tradujo todo, menos los meses.
image|371x500
¿Cómo puedo hacer?

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 6 days ago
0 93 6 days ago
General · by Dima, 2 weeks ago
1 121 2 weeks ago
General · by pamtbaau, 2 weeks ago
0 194 2 weeks ago
General · by lynbor, 2 months ago
5 701 4 weeks ago
General · by Andy Miller, 1 month ago
0 427 1 month ago