-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(lang): Add missing strings for Chinese (Simplified) and Chinese (Traditional) #6149
Conversation
package.json
Outdated
@@ -38,9 +38,11 @@ | |||
"postbuild:css:cdn": "postcss --verbose --config postcss.config.js -d dist/alt dist/alt/video-js-cdn.css", | |||
"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", | |||
"prebuild:lang": "npm-run-all -s prebuild:lang:*", | |||
"prebuild:lang:zh-rm": "shx rm -f lang/zh-Han*.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably go in clean
package.json
Outdated
@@ -38,9 +38,11 @@ | |||
"postbuild:css:cdn": "postcss --verbose --config postcss.config.js -d dist/alt dist/alt/video-js-cdn.css", | |||
"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", | |||
"prebuild:lang": "npm-run-all -s prebuild:lang:*", | |||
"prebuild:lang:zh-rm": "shx rm -f lang/zh-Han*.json", | |||
"prebuild:lang:zh-s": "shx cp lang/zh-CN.json lang/zh-Hans.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can stay as build:lang:chinese-s
and build:lang:chinese-t
package.json
Outdated
@@ -181,7 +183,7 @@ | |||
}, | |||
"husky": { | |||
"hooks": { | |||
"pre-commit": "lint-staged" | |||
"pre-commit": "npm run prebuild:lang && git add lang/ && lint-staged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably change lint-staged
here rather than the husky hook. Should be a copy and past from
EDIT: link didn't work here is a new one
Lines 173 to 176 in 88d7c9c
"lang/*.json": [ | |
"node build/translations.js", | |
"git add docs/translations-needed.md" | |
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried but it didn't want to work. Will try again.
FYI, we don't have a |
package.json
Outdated
@@ -181,7 +183,7 @@ | |||
}, | |||
"husky": { | |||
"hooks": { | |||
"pre-commit": "lint-staged" | |||
"pre-commit": "npm run prebuild:lang && git add lang/ && lint-staged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's not! I thought I was adding the clones to the repo.
Which makes more sense:
My vote is 1. |
I prefer number 1 as well |
Description
Add four missing strings for both Chinese variants we offer.
There are also script updates.
Requirements Checklist