Hey there,
im currently writing a new Plugin and am wondering if it’s possible to access the language.yaml inside the Plugin Folder from the php file? I tried different ways but couldn’t find a solution.
I should add, that im trying to do this in an static function.
Hi, you ask if you can access the file, but I wonder if you actually mean access the language settings?
A Grav Language
PHP object is accessible in plugins via $this->grav['language']
.
1 Like
Thanks for the reply. That was the way i was looking for. I overlooked it in the Docs at first.