parameters: (accept_language, domain='nbjs')
return_statement: return {
          "domain": domain,
          "locale_data": {
              domain: combined
          }
      }
docstring: Combine translations for multiple accepted languages.
  
      Returns data re-packaged in jed1.x format.
docstring_summary: Combine translations for multiple accepted languages.
docstring_tokens: Combine translations for multiple accepted languages .
function: def combine_translations(accept_language, domain='nbjs'):
      """Combine translations for multiple accepted languages.
  
      Returns data re-packaged in jed1.x format.
      """
      lang_codes = parse_accept_lang_header(accept_language)
      combined = {}
      for language in lang_codes:
          if language == 'en':
              # en is default, all translations are in frontend.
              combined.clear()
          else:
              combined.update(cached_load(language, domain))
  
      combined[''] = {"domain":"nbjs"}
  
      return {
          "domain": domain,
          "locale_data": {
              domain: combined
          }
      }
function_tokens: def combine_translations ( accept_language , domain = 'nbjs' ) : lang_codes = parse_accept_lang_header ( accept_language ) combined = { } for language in lang_codes : if language == 'en' : # en is default, all translations are in frontend. combined . clear ( ) else : combined . update ( cached_load ( language , domain ) ) combined [ '' ] = { "domain" : "nbjs" } return { "domain" : domain , "locale_data" : { domain : combined } }