diff --git a/imports/startup/client/i18n.js b/imports/startup/client/i18n.js
index 2de5331..713bccc 100644
--- a/imports/startup/client/i18n.js
+++ b/imports/startup/client/i18n.js
@@ -2,6 +2,7 @@ import i18n from 'i18next';
import backend from 'i18next-xhr-backend';
import LngDetector from 'i18next-browser-languagedetector';
import Cache from 'i18next-localstorage-cache';
+import { Meteor } from 'meteor/meteor';
import { T9n } from 'meteor-accounts-t9n';
import en from 'meteor-accounts-t9n/build/en';
import es from 'meteor-accounts-t9n/build/es';
@@ -47,6 +48,9 @@ var backOpts = {
T9N_LANGUAGES='es,en';
+const forceDebug = false;
+const shouldDebug = (forceDebug && !Meteor.isProduction);
+
i18n.use(backend)
.use(LngDetector)
.use(Cache)
@@ -75,10 +79,10 @@ i18n.use(backend)
whitelist: false,
// whitelist: ['es', 'en'], // allowed languages
load: 'all', // es-ES -> es, en-US -> en
- debug: false,
+ debug: shouldDebug,
ns: 'common',
defaultNS: 'common',
- saveMissing: true, // if true seems it's fails to getResourceBundle
+ saveMissing: shouldDebug, // if true seems it's fails to getResourceBundle
saveMissingTo: 'es',
keySeparator: 'ß',
nsSeparator: 'ð',
diff --git a/imports/startup/client/ravenLogger.js b/imports/startup/client/ravenLogger.js
index ffe19f2..6b69209 100644
--- a/imports/startup/client/ravenLogger.js
+++ b/imports/startup/client/ravenLogger.js
@@ -1,10 +1,13 @@
import RavenLogger from 'meteor/flowkey:raven';
+import { Meteor } from 'meteor/meteor';
-var ravenOptions = {};
+if (Meteor.isProduction) {
+ var ravenOptions = {};
-export const ravenLogger = new RavenLogger({
- publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client
- privateDSN: Meteor.settings.sentryPrivateDSN, // will be used on the server
- shouldCatchConsoleError: true, // default
- trackUser: false, // default
-}, ravenOptions);
+ export const ravenLogger = new RavenLogger({
+ publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client
+ privateDSN: Meteor.settings.sentryPrivateDSN, // will be used on the server
+ shouldCatchConsoleError: true, // default
+ trackUser: false, // default
+ }, ravenOptions);
+}
diff --git a/imports/ui/components/DistanceSlider/DistanceSlider.js b/imports/ui/components/DistanceSlider/DistanceSlider.js
index f1b2e6f..841840a 100644
--- a/imports/ui/components/DistanceSlider/DistanceSlider.js
+++ b/imports/ui/components/DistanceSlider/DistanceSlider.js
@@ -64,7 +64,7 @@ class DistanceSlider extends React.Component {
railStyle={{ backgroundColor: 'orange', height: 8 }}
dotStyle={{ top: 0, marginLeft: -1, width: 2, height: 8 }}
marks={{
- 10: {style: {}, label: "10"},
+ 10: {style: {}, label: "10км"},
20: {style: {}, label: "20"},
30: {style: {}, label: "30"},
40: {style: {}, label: "40"},
@@ -73,7 +73,7 @@ class DistanceSlider extends React.Component {
70: {style: {}, label: "70"},
80: {style: {}, label: "80"},
90: {style: {}, label: "90"},
- 100: {style: {}, label: "100"}
+ 100: {style: {}, label: "100км"}
}}
handleStyle={{
borderColor: 'green',
diff --git a/imports/ui/components/SelectionMap/SelectionMap.js b/imports/ui/components/SelectionMap/SelectionMap.js
index 5f8ddf0..3fc17e7 100644
--- a/imports/ui/components/SelectionMap/SelectionMap.js
+++ b/imports/ui/components/SelectionMap/SelectionMap.js
@@ -3,10 +3,13 @@ import PropTypes from 'prop-types';
import { Map, TileLayer, Marker, Popup, CircleMarker, Circle} from 'react-leaflet';
import Leaflet from 'leaflet';
import { withTracker } from 'meteor/react-meteor-data';
-import { translate } from 'react-i18next';
+import { translate, Trans } from 'react-i18next';
import geolocation from '/imports/startup/client/geolocation';
import 'leaflet-graphicscale/dist/Leaflet.GraphicScale.min.css';
import 'leaflet-graphicscale/dist/Leaflet.GraphicScale.min.js';
+import Control from 'react-leaflet-control';
+import { Button } from 'react-bootstrap';
+import DistanceSlider from '/imports/ui/components/DistanceSlider/DistanceSlider';
const positionIcon = new Leaflet.Icon({
iconUrl: "/your-position.png",
@@ -70,6 +73,10 @@ class SelectionMap extends Component {
var graphicScale = L.control.graphicScale([options]).addTo(map);
}
+ doSubs = (event) => {
+ console.log(event);
+ }
+
render() {
this.state.center = !this.state.modified && this.props.lat?
[this.props.lat, this.props.lng]: this.state.center;
@@ -90,6 +97,7 @@ class SelectionMap extends Component {
onDragend={this.updatePosition}
position={this.state.marker}
icon={positionIcon}
+ title={this.props.t("Arrastrar para seleccionar otro punto")}
ref="marker">