Skip to content

Commit

Permalink
Tweak QuickStart-Tutorial.zh-CN.md metadata for consistency
Browse files Browse the repository at this point in the history
Summary:
Make this one like our other translations:

- Use `.zh-CN` suffix instead of `-zh-CN`: this means that an appropriately configured web server can choose to serve up the right file based on the `Accept-Language` header.
- Use same `id` as canonical version. We might end up changing our minds about that (see #1238), but in the meantime we should at least be consistent.

I think we likely still have some issues here, so I'm going to keep poking around after this. Basically, I think at this point that we've *unbroken* our English docs and our Chinese docs are at least consistently defined, but the build process for the translations isn't producing a useful/accessible result.
Closes #1239

Reviewed By: kassens

Differential Revision: D3482210

Pulled By: wincent

fbshipit-source-id: 4d869b61b4cd5750dc42ad07e740598883c656e1
  • Loading branch information
wincent authored and Facebook Github Bot 3 committed Jun 24, 2016
1 parent 43cc16e commit ee9924c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/QuickStart-Tutorial.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
id: tutorial-zh-CN
id: tutorial
title: 教程
layout: docs
category: Quick Start
permalink: docs/tutorial-zh-CN.html
permalink: docs/tutorial.zh-CN.html
next: thinking-in-graphql
---

Expand Down
4 changes: 2 additions & 2 deletions website/core/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ module.exports = {
"source": "QuickStart-Tutorial.md"
},
{
"id": "tutorial-zh-CN",
"id": "tutorial",
"title": "教程",
"layout": "docs",
"category": "Quick Start",
"permalink": "docs/tutorial-zh-CN.html",
"permalink": "docs/tutorial.zh-CN.html",
"next": "thinking-in-graphql",
"source": "QuickStart-Tutorial.zh-CN.md"
},
Expand Down

0 comments on commit ee9924c

Please sign in to comment.