From 5bc01874046918074263be41672ce9210cd27159 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Mon, 2 Mar 2020 06:24:31 -0800 Subject: [PATCH] fix: added Chinese comment translations for Responsive Web Design --- curriculum/comment-dictionary.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 curriculum/comment-dictionary.js diff --git a/curriculum/comment-dictionary.js b/curriculum/comment-dictionary.js new file mode 100644 index 0000000000..f750de0b57 --- /dev/null +++ b/curriculum/comment-dictionary.js @@ -0,0 +1,29 @@ +/* eslint-disable max-len */ +// NOTE: updates to translations will not appear until the client is restarted +// i.e. close it and run npm run develop +const COMMENT_TRANSLATIONS = { + 'Only change code above this line': { + chinese: '仅修改这一行注释上面的代码' + }, + 'Only change code below this line': { + chinese: '仅修改这一行注释下面的代码' + }, + 'Change code above this line': { + chinese: '请修改这一行注释上面的代码' + }, + 'Change code below this line': { + chinese: '请修改这一行注释下面的代码' + }, + '

Hello World

\n\n

CatPhotoApp

\n\n

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

': { + chinese: + '

Hello World

\n\n

CatPhotoApp

\n\n

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

' + }, + 'Stacked bar chart of weekly training': { + chinese: '每周训练的条形图' + }, + 'Stacked bar chart will go here': { + chinese: '条形图在这里' + } +}; + +exports.COMMENT_TRANSLATIONS = COMMENT_TRANSLATIONS;