-
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
Improve localisation #1873
Improve localisation #1873
Conversation
return languages[lang][string]; | ||
} | ||
var primaryCode = lang.split('-')[0]; |
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.
Though I think no one likes it at this point, most of the rest of the code declares variables at the top of the scope.
It sounds like there's still a little reworking to be done here, but the overall improvements sound good to me. |
+1! |
@mister-ben, available to finish this one up? Let me know if you have any additional questions. |
I've been a bit swamped with other things, but do intend to revisit this soon. |
Hey @mister-ben, still want to help finish this one up? |
Having another look now after getting it rebased. |
bower.json: Remove font files from `main`
Per bower/spec@a325da3 closes videojs#2144 bower.json: main: fix path to video.js bower.json: main: video-js.css => video-js.scss Per bower/spec#43 : > Use source files with module exports and imports over pre-built distribution files. Also, the example in that PR includes /sass/motion.scss in and excludes /dist/movement.css & /dist/movement.min.css from its `main`. bower.json: Set moduleType & use non-dist video.js Again, see bower/spec#43
Re-done as #2177 |
A couple of improvements to localisation:
de-DE
translation, usede
if available.en-us
but Chrome and Firefox useen-US
, these should be treated the same.This should match how CSS applies styles based on lang attributes: http://jsbin.com/geviwa/edit