﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11755	Update to new version of opening_hours.js.	ypid23	simon04	"Hi

I just released [https://github.com/ypid/opening_hours.js/releases/tag/v3.3.0 v3.3.0 of opening_hours.js] which adds German translations for all error messages and some warning messages. I guess this can be quite helpful. In order to use this feature, you need to update the library and adopt the opening_hours constructor parameters. Note that this feature has some dependencies. Check the example below.

{{{
#!div style=""font-size: 80%""
{{{#!javascript
#!/usr/bin/env nodejs

var nominatiomTestJSON = {""place_id"":""44651229"",""licence"":""Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright"",""osm_type"":""way"",""osm_id"":""36248375"",""lat"":""49.5400039"",""lon"":""9.7937133"",""display_name"":""K 2847, Lauda-K\u00f6nigshofen, Main-Tauber-Kreis, Regierungsbezirk Stuttgart, Baden-W\u00fcrttemberg, Germany, European Union"",""address"":{""road"":""K 2847"",""city"":""Lauda-K\u00f6nigshofen"",""county"":""Main-Tauber-Kreis"",""state_district"":""Regierungsbezirk Stuttgart"",""state"":""Baden-W\u00fcrttemberg"",""country"":""Germany"",""country_code"":""de"",""continent"":""European Union""}};

var locale_example = 'de';

var opening_hours = require('opening_hours');
i18n = require('i18next');
moment = require('moment');
var i18n_res = require('./locales/core.js');

i18n.setLng(locale_example, function(err, t) { /* loading done */ });
moment.locale(locale_example);

oh = new opening_hours('Montag und Dienstag', nominatiomTestJSON, { 'tag_key': 'opening_hours', 'locale': 'de'});
console.log(oh.getWarnings());
}}}
}}}"	enhancement	closed	normal	15.09	Core validator		fixed	javascript nodejs module require rhino nashorn java7 java8	
