@click.command(u'new-language')
@pass_context
@click.argument(u'lang_code')
@click.argument(u'app')
def new_language(context, lang_code, app):
 import frappe.translate
 if (not context[u'sites']):
  raise Exception(u'--site is required')
 frappe.connect(site=context[u'sites'][0])
 frappe.translate.write_translations_file(app, lang_code)
 print u'File created at ./apps/{app}/{app}/translations/{lang_code}.csv'.format(app=app, lang_code=lang_code)
 print u"You will need to add the language in frappe/geo/languages.json, if you haven't done it already."

@ click . command ( u'new-language' ) @ pass_context @ click . argument ( u'lang_code' ) @ click . argument ( u'app' ) def new_language ( context , lang_code , app ) : import frappe . translate if ( not context [ u'sites' ] ) : raise Exception ( u'--site is required' ) frappe . connect ( site = context [ u'sites' ] [ 0 ] ) frappe . translate . write_translations_file ( app , lang_code ) print u'File created at ./apps/{app}/{app}/translations/{lang_code}.csv' . format ( app = app , lang_code = lang_code ) print u"You will need to add the language in frappe/geo/languages.json, if you haven't done it already."
create lang-code .