code: function pageLang(page) {
      return page.lang ||
        opts.lang ||
        (opts.langDirs && !u.isRootLevel(page._href) && u.topLevel(page._href)) ||
        'en';
    }
docs: determine language string for a page