Skip to content

Commit c15efd4

Browse files
authored
Merge pull request #29435 from github/repo-sync
Repo sync
2 parents b6410c9 + 2c4dff5 commit c15efd4

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

components/context/MainContext.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ export type EnterpriseDeprecation = {
6464

6565
type DataReusables = {
6666
enterprise_deprecation?: EnterpriseDeprecation
67-
policies?: {
68-
translation: string
69-
}
7067
}
7168

7269
type DataT = {
@@ -150,11 +147,6 @@ export const getMainContext = async (req: any, res: any): Promise<MainContextT>
150147

151148
const reusables: DataReusables = {}
152149

153-
if (req.context.currentLanguage !== 'en' && req.path.split('/').includes('site-policy')) {
154-
reusables.policies = {
155-
translation: req.context.getDottedData('reusables.policies.translation'),
156-
}
157-
}
158150
// To know whether we need this key, we need to match this
159151
// with the business logic in `DeprecationBanner.tsx` which is as follows:
160152
if (req.context.currentVersion.includes(req.context.enterpriseServerReleases.oldestSupported)) {

components/page-header/HeaderNotifications.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ export const HeaderNotifications = () => {
5555
},
5656
})
5757
}
58-
} else {
59-
if (relativePath?.includes('/site-policy')) {
60-
const policies = data.reusables.policies
61-
if (policies) {
62-
translationNotices.push({
63-
type: NotificationType.TRANSLATION,
64-
content: policies.translation,
65-
})
66-
}
67-
}
6858
}
6959
const releaseNotices: Array<Notif> = []
7060
if (currentVersion === 'github-ae@latest') {

data/reusables/policies/translation.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

script/copy-fixture-data.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { mkdirp } from 'mkdirp'
2323
// functionality yet live in data.
2424
const MANDATORY_FILES = [
2525
'data/ui.yml',
26-
'data/reusables/policies/translation.md',
2726
'data/reusables/enterprise_deprecation/deprecation_details.md',
2827
'data/reusables/enterprise_deprecation/version_was_deprecated.md',
2928
'data/reusables/enterprise_deprecation/version_will_be_deprecated.md',

0 commit comments

Comments
 (0)