@translations.command('new')
@click.option('--plugin', '-p', type=click.STRING, help='Adds a new language to a plugin.')
@click.argument('lang')
def new_translation(lang, plugin):
 if plugin:
  validate_plugin(plugin)
  click.secho('[+] Adding new language {} for plugin {}...'.format(lang, plugin), fg='cyan')
  add_plugin_translations(plugin, lang)
 else:
  click.secho('[+] Adding new language {}...'.format(lang), fg='cyan')
  add_translations(lang)

@ translations . command ( 'new' ) @ click . option ( '--plugin' , '-p' , type = click . STRING , help = 'Adds a new language to a plugin.' ) @ click . argument ( 'lang' ) def new_translation ( lang , plugin ) : if plugin : validate_plugin ( plugin ) click . secho ( '[+] Adding new language {} for plugin {}...' . format ( lang , plugin ) , fg = 'cyan' ) add_plugin_translations ( plugin , lang ) else : click . secho ( '[+] Adding new language {}...' . format ( lang ) , fg = 'cyan' ) add_translations ( lang )
adds a new language to the translations .