-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Localization #2195
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
Localization #2195
Changes from 8 commits
7e075f5
9a9de77
d859de5
7d057e5
8a5eeec
03dcb5d
bf2c6db
04ed6f0
0f8520e
5d6f267
97c0898
daf0884
4b48038
4b8f980
1275661
fc03cce
cb2f00c
97821e9
e80ec91
8b9e7d8
6029f94
9708b56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Autoscale | ||
Box Select | ||
Click to enter Colorscale title | ||
Click to enter Component A title | ||
Click to enter Component B title | ||
Click to enter Component C title | ||
Click to enter Plot title | ||
Click to enter X axis title | ||
Click to enter Y axis title | ||
Close: | ||
Compare data on hover | ||
Double click on legend to isolate individual trace | ||
Double-click to<br>zoom back out | ||
Download plot as a png | ||
Edit in Chart Studio | ||
High: | ||
IE only supports svg. Changing format to svg. | ||
Incoming flow count: | ||
Lasso Select | ||
Low: | ||
Open: | ||
Orbital rotation | ||
Outgoing flow count: | ||
Pan | ||
Produced with Plotly | ||
Reset | ||
Reset axes | ||
Reset camera to default | ||
Reset camera to last save | ||
Reset view | ||
Reset views | ||
Show closest data on hover | ||
Snapshot succeeded | ||
Sorry there was a problem downloading your snapshot! | ||
Source: | ||
Taking snapshot - this may take a few seconds | ||
Target: | ||
Toggle Spike Lines | ||
Toggle show closest data on hover | ||
Turntable rotation | ||
Zoom | ||
Zoom in | ||
Zoom out | ||
cannot use zsmooth: "fast" | ||
kde: | ||
lat: | ||
log axis found | ||
lon: | ||
lower fence: | ||
max: | ||
mean ± σ: | ||
mean: | ||
median: | ||
min: | ||
q1: | ||
q3: | ||
trace | ||
upper fence: | ||
x scale is not linear | ||
y scale is not linear |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,7 @@ Plotly.register([ | |
require('./pie') | ||
]); | ||
|
||
// locales | ||
Plotly.register(require('./locales.js')); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it would better to put these That would also mean moving locale modules to a new |
||
|
||
module.exports = Plotly; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright 2012-2017, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
moduleType: 'locale', | ||
name: 'en-US', | ||
dictionary: { | ||
'Click to enter Colorscale title': 'Click to enter Colorscale title' | ||
} | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright 2012-2017, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
moduleType: 'locale', | ||
name: 'en', | ||
dictionary: { | ||
'Click to enter Colorscale title': 'Click to enter Colourscale title' | ||
} | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Copyright 2012-2017, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. I think registering only one local (en-US) in the dist bundles should suffice, but then again as only the spelling of colo(u)rscale differs between the two, including both en and en-US is fine by me 👌 |
||
require('./locale-en.js'), | ||
require('./locale-en-us.js') | ||
]; |
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.
Quick question: are we planning on having a set on official dictionaries or should non en-US dictionaries be entirely handled by users?
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.
They're not going to be very big, and seems really useful so I'd vote yes - with the caveat that they would probably mostly have to be contributed by users. We might have to make use of google translate during review, as a sanity check...
Also it occurs to me now, some of these keys might not be obvious out of context - perhaps I should comment each with the file & line it came from? Something like:
and then we could comment there with more information
// kernel density estimate
(maybe I could even put that comment intotranslation-keys.txt
?)