зеркало из https://github.com/github/docs.git
Temporary correction of SSH RSA keys in translations (#35931)
This commit is contained in:
Родитель
56beb0affe
Коммит
e8ec9224ff
|
@ -14,7 +14,7 @@ coverage/
|
|||
.next
|
||||
.eslintcache
|
||||
*.tsbuildinfo
|
||||
translations/
|
||||
/translations/
|
||||
.node-version
|
||||
|
||||
# blc: broken link checker
|
||||
|
|
|
@ -158,6 +158,26 @@ async function translateTree(dir, langObj, enTree) {
|
|||
content = content.replaceAll('[AUTOTITLE"을]', '[AUTOTITLE]')
|
||||
content = content.replaceAll('["AUTOTITLE]', '"[AUTOTITLE]')
|
||||
|
||||
// Temporary solution until the translations correct out-of-date details
|
||||
// in translated pages.
|
||||
// We can delete this when we've locally asserted that the `.replaceAll`
|
||||
// achieves nothing in any language.
|
||||
// See internal issue # 2894
|
||||
if (
|
||||
relativePath.includes(
|
||||
'authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.md'
|
||||
)
|
||||
) {
|
||||
content = content.replaceAll(
|
||||
'SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8',
|
||||
'SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s'
|
||||
)
|
||||
content = content.replaceAll(
|
||||
'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==',
|
||||
'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk='
|
||||
)
|
||||
}
|
||||
|
||||
// The "content" isn't a frontmatter key
|
||||
translatedData.markdown = content
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
import { languageKeys } from '../../lib/languages'
|
||||
import { getDOM } from '../helpers/e2etest.js'
|
||||
|
||||
const langs = languageKeys.filter((lang) => lang !== 'en')
|
||||
|
||||
// Temporary solution until the translations correct out-of-date details
|
||||
// in translated pages.
|
||||
// We can delete this when we've locally asserted that the `.replaceAll`
|
||||
// achieves nothing in any language.
|
||||
// See internal issue # 2894
|
||||
describe('githubs-ssh-key-fingerprints page', () => {
|
||||
test.each(langs)('search in %s', async (lang) => {
|
||||
const $ = await getDOM(
|
||||
`/${lang}/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints`
|
||||
)
|
||||
const articleText = $('#article-contents').text()
|
||||
expect(articleText).toMatch(/SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s/)
|
||||
expect(articleText).toMatch(
|
||||
/ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt/
|
||||
)
|
||||
})
|
||||
})
|
Загрузка…
Ссылка в новой задаче