@translations.command('update')
@click.option('is_all', '--all', '-a', default=True, is_flag=True, help='Updates the plugin translations as well.')
@click.option('--plugin', '-p', type=click.STRING, help='Updates the language of the given plugin.')
def update_translation(is_all, plugin):
 if (plugin is not None):
  validate_plugin(plugin)
  click.secho('[+] Updating language files for plugin {}...'.format(plugin), fg='cyan')
  update_plugin_translations(plugin)
 else:
  click.secho('[+] Updating language files...', fg='cyan')
  update_translations(include_plugins=is_all)

@ translations . command ( 'update' ) @ click . option ( 'is_all' , '--all' , '-a' , default = True , is_flag = True , help = 'Updates the plugin translations as well.' ) @ click . option ( '--plugin' , '-p' , type = click . STRING , help = 'Updates the language of the given plugin.' ) def update_translation ( is_all , plugin ) : if ( plugin is not None ) : validate_plugin ( plugin ) click . secho ( '[+] Updating language files for plugin {}...' . format ( plugin ) , fg = 'cyan' ) update_plugin_translations ( plugin ) else : click . secho ( '[+] Updating language files...' , fg = 'cyan' ) update_translations ( include_plugins = is_all )
updates all translations .