def compile_plugin_translations(plugin):
 plugin_folder = os.path.join(current_app.config['PLUGINS_FOLDER'], plugin)
 translations_folder = os.path.join(plugin_folder, 'translations')
 subprocess.call(['pybabel', 'compile', '-d', translations_folder])

def compile_plugin_translations ( plugin ) : plugin_folder = os . path . join ( current_app . config [ 'PLUGINS_FOLDER' ] , plugin ) translations_folder = os . path . join ( plugin_folder , 'translations' ) subprocess . call ( [ 'pybabel' , 'compile' , '-d' , translations_folder ] )
compile the plugin translations .