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

Translations configuration

Started by Muut Archive 11 years ago · 2 replies · 297 views
11 years ago

Hello,
How the settings
--- yaml
languages:
translations: true

YAML
and
--- yaml
languages:
  translations:
    fallback: true
--- 
can be set simultaneously?

If i do something like
--- yaml
languages:
  translations: true
    fallback: true

this will lead to error in Yaml.

11 years ago

Hi,

wondering from where you took your configuration and that there is no documentation in the Grav documentation, I was browsing through the code and finally found your use case :-).

To answer your question: you can simultaneously set both options, but not in the way you did it, but rather

YAML
languages:
  translations:
    fallback: true

This sets languages.translations automatically to true.

However if you want to disable the translation option, you will have to delete your custom modifications, i.e. you have to return to

YAML
languages:
  translations: false

then.

Best regards!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago