diff --git a/services/web/app/views/layout.pug b/services/web/app/views/layout.pug
index f25d41aa3d..10f50f6eee 100644
--- a/services/web/app/views/layout.pug
+++ b/services/web/app/views/layout.pug
@@ -75,6 +75,11 @@ html(
};
window.ab = {};
window.user_id = '#{getLoggedInUserId()}';
+ //- Internationalisation settings
+ window.i18n = {
+ currentLangCode: '#{currentLngCode}'
+ }
+ //- Expose some settings globally to the frontend
window.ExposedSettings = JSON.parse('!{StringHelper.stringifyJsonForScript(ExposedSettings)}');
- if (typeof(settings.algolia) != "undefined")
diff --git a/services/web/frontend/extracted-translation-keys.json b/services/web/frontend/extracted-translation-keys.json
new file mode 100644
index 0000000000..4faef59296
--- /dev/null
+++ b/services/web/frontend/extracted-translation-keys.json
@@ -0,0 +1,6 @@
+[
+ "file_outline",
+ "the_file_outline_is_a_new_feature_click_the_icon_to_learn_more",
+ "we_cant_find_any_sections_or_subsections_in_this_file",
+ "find_out_more_about_the_file_outline"
+]
diff --git a/services/web/frontend/js/features/outline/components/outline-pane.js b/services/web/frontend/js/features/outline/components/outline-pane.js
index 026a02e358..6245a17d84 100644
--- a/services/web/frontend/js/features/outline/components/outline-pane.js
+++ b/services/web/frontend/js/features/outline/components/outline-pane.js
@@ -2,6 +2,8 @@ import React, { useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
import classNames from 'classnames'
+import { useTranslation, Trans } from 'react-i18next'
+
import OutlineRoot from './outline-root'
import localStorage from '../../../modules/localStorage'
@@ -14,6 +16,8 @@ function OutlinePane({
eventTracking,
highlightedLine
}) {
+ const { t } = useTranslation()
+
const storageKey = `file_outline.expanded.${projectId}`
const [expanded, setExpanded] = useState(() => {
const storedExpandedState = localStorage(storageKey) !== false
@@ -45,6 +49,17 @@ function OutlinePane({
}
}
+ const infoContent = (
+ <>
+