chore: remove git.io (#5931)
All links on git.io will stop redirecting after April 29, 2022. - https://github.blog/changelog/2022-04-25-git-io-deprecation/
This commit is contained in:
Родитель
779b3e7970
Коммит
c89be498c6
|
@ -42,7 +42,7 @@
|
|||
"packages": 24,
|
||||
"name": "Kevin Sawicki",
|
||||
"email": "kevinsawicki@gmail.com",
|
||||
"homepage": "http://git.io/ks",
|
||||
"homepage": "https://github.com/kevinsawicki",
|
||||
"github": "kevinsawicki",
|
||||
"twitter": "kevinsawicki",
|
||||
"freenode": null,
|
||||
|
|
|
@ -8,7 +8,8 @@ module.exports = (req, res, next) => {
|
|||
// : i18n.docs['en-US'][req.path]
|
||||
if (!doc) return next()
|
||||
|
||||
// Crowdin's undocumented mystery locale URL format. See https://git.io/vADu0
|
||||
// Crowdin's undocumented mystery locale URL format.
|
||||
// See https://github.com/electron/electronjs.org/pull/1158#issuecomment-369723600
|
||||
// e.g. `zh-CN` -> `zhcn`
|
||||
const { languageCode } = i18n.locales[req.context.currentLocale] || {}
|
||||
const { editorCode } = editorCodes[languageCode] || {}
|
||||
|
|
|
@ -299,7 +299,7 @@ describe('electronjs.org', () => {
|
|||
|
||||
test('includes a link to Crowdin language picker when language is English', async () => {
|
||||
// Crowdin displays a nice language picker when target language does not exist
|
||||
// See https://git.io/vx1TI
|
||||
// See https://user-images.githubusercontent.com/2289/38279258-52e45e86-3754-11e8-93c4-6acb38eaa44e.png
|
||||
const res = await supertest(app)
|
||||
.get('/docs/api/browser-view')
|
||||
.set('Cookie', ['language=en-US'])
|
||||
|
|
Загрузка…
Ссылка в новой задаче