1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

lang: Clone zh-CN to zh-Hans and zh-TW to zh-Hant (#6098)

Currently, zh-CN and zh-TW are used as shorthands for Simplified and Traditional Chinese character sets, respectively. However, they carry with them a built-in assumption about the geographic locale which may not be appropriate in all cases.

The codes zh-Hans and zh-Hant are more correct in that they refer only to the character set and not the geographic locale. Further specificity is available via codes like zh-Hans-CN.
This commit is contained in:
Pat O'Neill 2019-07-29 17:35:53 -04:00 committed by Gary Katsevman
parent 3c932c5f8e
commit b84c290f7e
2 changed files with 5 additions and 0 deletions

3
.gitignore vendored
View File

@ -34,3 +34,6 @@ es5/*
.idea/
core.js
# Ignore Chinese clones for now.
lang/zh-Han*.json

View File

@ -39,6 +39,8 @@
"build:css:default": "sass --no-source-map src/css/vjs.scss dist/video-js.css",
"postbuild:css:default": "postcss --verbose --config postcss.config.js -d dist/ dist/video-js.css",
"build:lang": "npm-run-all build:lang:*",
"build:lang:chinese-s": "shx cp lang/zh-CN.json lang/zh-Hans.json",
"build:lang:chinese-t": "shx cp lang/zh-TW.json lang/zh-Hant.json",
"build:lang:js": "vjslang --dir dist/lang",
"build:lang:copy": "shx cp -R lang/* dist/lang/",
"minify": "npm-run-all minify:*",