jupyter_server.i18n package#

Module contents#

Server functions for loading translations

jupyter_server.i18n.cached_load(language, domain='nbjs')#

Load translations for one language, using in-memory cache if available

jupyter_server.i18n.combine_translations(accept_language, domain='nbjs')#

Combine translations for multiple accepted languages.

Returns data re-packaged in jed1.x format.

jupyter_server.i18n.load(language, domain='nbjs')#

Load translations from an nbjs.json file

jupyter_server.i18n.parse_accept_lang_header(accept_lang)#

Parses the ‘Accept-Language’ HTTP header.

Returns a list of language codes in ascending order of preference (with the most preferred language last).