{"action":"opened","issue":{"url":"https://api.github.com/repos/mashpie/i18n-node/issues/225","repository_url":"https://api.github.com/repos/mashpie/i18n-node","labels_url":"https://api.github.com/repos/mashpie/i18n-node/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/mashpie/i18n-node/issues/225/comments","events_url":"https://api.github.com/repos/mashpie/i18n-node/issues/225/events","html_url":"https://github.com/mashpie/i18n-node/issues/225","id":147673569,"number":225,"title":"Get access for defaultLocale value","user":{"login":"DJviolin","id":5021728,"avatar_url":"https://avatars.githubusercontent.com/u/5021728?v=3","gravatar_id":"","url":"https://api.github.com/users/DJviolin","html_url":"https://github.com/DJviolin","followers_url":"https://api.github.com/users/DJviolin/followers","following_url":"https://api.github.com/users/DJviolin/following{/other_user}","gists_url":"https://api.github.com/users/DJviolin/gists{/gist_id}","starred_url":"https://api.github.com/users/DJviolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJviolin/subscriptions","organizations_url":"https://api.github.com/users/DJviolin/orgs","repos_url":"https://api.github.com/users/DJviolin/repos","events_url":"https://api.github.com/users/DJviolin/events{/privacy}","received_events_url":"https://api.github.com/users/DJviolin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T08:28:49Z","updated_at":"2016-04-12T08:28:49Z","closed_at":null,"body":"Is there a way to get acess for the `defaultLocale` value from `i18n.configure()`?\r\n\r\nI'm adding the active language's name to my `html` div in app.js with:\r\n\r\n```\r\nvar langClass = function(req, res, next) {\r\n  //var defaultLang = 'en';\r\n  var defaultLang = req.defaultLocale();\r\n  var activeLang = req.params.lang || defaultLang;\r\n  res.locals.langClass = activeLang + '-' + activeLang.toUpperCase();\r\n  next();\r\n};\r\n```\r\n\r\nWhich is rendered in the template like:\r\n\r\n```\r\n<!doctype html>\r\n<html class=\"no-js lang-hu-HU\" lang=\"hu-HU\">\r\n```\r\n\r\nIs there a way to achieve this? I searched in the documentation but I didn't found it."}}