Skip to content
Snippets Groups Projects
Commit ebb00e9b authored by ale's avatar ale
Browse files

Ignore non-existing translations

parent 90a419fb
No related branches found
Tags v0.0.6
No related merge requests found
Pipeline #72769 passed
......@@ -131,6 +131,10 @@ class Translatable {
$results = [];
foreach ( $this->languages as $language ) {
if ( !in_array( $language, $this->languages, true ) ) {
continue;
}
$result = $this->installTranslation( $this->translations[ $language ][0]->package );
if ( $result ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment