fix hyphen in zh-tw quiz JSON key

pull/206/head
CRTao 4 years ago
parent cbdc177742
commit c55edb13c3

@ -9,7 +9,7 @@
<option>id</option> <option>id</option>
<option>hi</option> <option>hi</option>
<option>it</option> <option>it</option>
<option>zh-tw</option> <option>zh_tw</option>
</select> </select>
</nav> </nav>
<div id="app"> <div id="app">

@ -5,7 +5,7 @@ import id from './id.json';
import hi from './hi.json'; import hi from './hi.json';
import it from './it.json'; import it from './it.json';
import ja from './ja.json'; import ja from './ja.json';
import zh-tw from './zh-tw.json'; import zh_tw from './zh_tw.json';
//export const defaultLocale = 'en'; //export const defaultLocale = 'en';
@ -16,7 +16,7 @@ const messages = {
hi: hi[0], hi: hi[0],
it: it[0], it: it[0],
ja: ja[0], ja: ja[0],
zh-tw: zh-tw[0], zh_tw: zh_tw[0],
}; };
export default messages; export default messages;

@ -2,7 +2,7 @@
{ {
"title": "給初學者的網頁開發:小測驗", "title": "給初學者的網頁開發:小測驗",
"complete": "恭喜,您完成了所有試題!", "complete": "恭喜,您完成了所有試題!",
"error": "抱歉。請稍後再試。", "error": "抱歉。請稍後再試。",
"quizzes": [ "quizzes": [
{ {
"id": 1, "id": 1,
Loading…
Cancel
Save