Skip to content

Commit bd51e9e

Browse files
misteroneillgkatsev
authored andcommitted
fix(lang): Add missing strings for Chinese (Simplified) and Chinese (Traditional) (#6149)
1 parent 266cb15 commit bd51e9e

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

docs/translations-needed.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,12 +1051,8 @@ This default value is hardcoded as a default to the localize method in the SeekB
10511051
| vi.json (missing 3) | Seek to live, currently behind live |
10521052
| | Seek to live, currently playing live |
10531053
| | {1} is loading. |
1054-
| zh-CN.json (missing 4) | Seek to live, currently behind live |
1055-
| | Seek to live, currently playing live |
1056-
| | progress bar timing: currentTime={1} duration={2} |
1057-
| | {1} is loading. |
1058-
| zh-TW.json (missing 4) | Seek to live, currently behind live |
1059-
| | Seek to live, currently playing live |
1060-
| | progress bar timing: currentTime={1} duration={2} |
1061-
| | {1} is loading. |
1054+
| zh-CN.json (Complete) | |
1055+
| zh-Hans.json (Complete) | |
1056+
| zh-Hant.json (Complete) | |
1057+
| zh-TW.json (Complete) | |
10621058
<!-- END langtable -->

lang/zh-CN.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@
7979
"Done": "完成",
8080
"Caption Settings Dialog": "字幕设定视窗",
8181
"Beginning of dialog window. Escape will cancel and close the window.": "开始对话视窗。离开会取消及关闭视窗",
82-
"End of dialog window.": "结束对话视窗"
82+
"End of dialog window.": "结束对话视窗",
83+
"Seek to live, currently behind live": "试图直播,当前延时播放",
84+
"Seek to live, currently playing live": "试图直播,当前实时播放",
85+
"progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86+
"{1} is loading.": "正在加载 {1}。"
8387
}

lang/zh-TW.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@
7979
"Done": "完成",
8080
"Caption Settings Dialog": "字幕設定視窗",
8181
"Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消及關閉視窗",
82-
"End of dialog window.": "結束對話視窗"
82+
"End of dialog window.": "結束對話視窗",
83+
"Seek to live, currently behind live": "試圖直播,目前延時播放",
84+
"Seek to live, currently playing live": "試圖直播,目前即時播放",
85+
"progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86+
"{1} is loading.": "{1} 正在載入。"
8387
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"sandbox": "node build/sandbox.js",
2121
"prestart": "npm-run-all sandbox",
2222
"start": "npm-run-all -p watch karma-server",
23-
"clean": "shx rm -rf ./dist ./test/dist ./docs/api",
23+
"clean": "shx rm -rf ./dist ./test/dist ./docs/api ./lang/zh-Han*.json",
2424
"postclean": "shx mkdir -p ./dist/lang ./test/dist",
2525
"changelog": "conventional-changelog -p videojs -i CHANGELOG.md -s",
2626
"build": "npm-run-all build-dev minify copy zip",
@@ -38,11 +38,11 @@
3838
"postbuild:css:cdn": "postcss --verbose --config postcss.config.js -d dist/alt dist/alt/video-js-cdn.css",
3939
"build:css:default": "sass --no-source-map src/css/vjs.scss dist/video-js.css",
4040
"postbuild:css:default": "postcss --verbose --config postcss.config.js -d dist/ dist/video-js.css",
41-
"build:lang": "npm-run-all build:lang:*",
42-
"build:lang:chinese-s": "shx cp lang/zh-CN.json lang/zh-Hans.json",
43-
"build:lang:chinese-t": "shx cp lang/zh-TW.json lang/zh-Hant.json",
44-
"build:lang:js": "vjslang --dir dist/lang",
45-
"build:lang:copy": "shx cp -R lang/* dist/lang/",
41+
"prebuild:lang": "npm-run-all -s prebuild:lang:*",
42+
"prebuild:lang:chinese-s": "shx cp lang/zh-CN.json lang/zh-Hans.json",
43+
"prebuild:lang:chinese-t": "shx cp lang/zh-TW.json lang/zh-Hant.json",
44+
"build:lang": "vjslang --dir dist/lang",
45+
"postbuild:lang": "shx cp -R lang/* dist/lang/",
4646
"minify": "npm-run-all minify:*",
4747
"minify:js": "babel-node build/minify.js",
4848
"minify:css": "npm-run-all minify:css:*",

0 commit comments

Comments
 (0)