1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-04 21:27:41 +02:00

i18n vuejs and more

This commit is contained in:
severoiuliano@gmail.com
2020-01-13 16:09:53 +01:00
parent 75bb56f6ab
commit 6063d557f5

View File

@@ -92,16 +92,15 @@ class Settings
return $labels;
}
//public static function getVuejsLabels()
public static function getVuejsLabels($language)
{
if( empty($language) ){//temp
$language = 'en';//temp
}//temp
if( empty($language) ){
$language = 'en';
}
// load the strings of the set language
$yaml = new Models\WriteYaml();
$labels = $yaml->getYaml('settings/languages', 'vuejs-'.$language.'.yaml');//temp
$labels = $yaml->getYaml('settings/languages', 'vuejs-'.$language.'.yaml');
return $labels;
}