Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

How to set the Spanish language by default?

Started by Lucas 7 years ago · 3 replies · 721 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, 3 weeks ago
1 266 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 195 3 weeks ago
General · by Jerry Hunt, 3 weeks ago
2 330 3 weeks ago
General · by pamtbaau, 3 weeks ago
1 253 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 220 3 weeks ago