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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

How to set the Spanish language by default?

Started by Lucas 7 years ago · 3 replies · 635 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 Jerry Hunt, 4 days ago
2 82 11 hours ago
General · by pamtbaau, 16 hours ago
1 53 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 347 5 days ago
General · by Duc , 5 days ago
3 41 5 days ago