{"action":"opened","issue":{"url":"https://api.github.com/repos/hexojs/hexo/issues/1338","labels_url":"https://api.github.com/repos/hexojs/hexo/issues/1338/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo/issues/1338/comments","events_url":"https://api.github.com/repos/hexojs/hexo/issues/1338/events","html_url":"https://github.com/hexojs/hexo/issues/1338","id":88740445,"number":1338,"title":"language selector","user":{"login":"bsr203","id":1966521,"avatar_url":"https://avatars.githubusercontent.com/u/1966521?v=3","gravatar_id":"","url":"https://api.github.com/users/bsr203","html_url":"https://github.com/bsr203","followers_url":"https://api.github.com/users/bsr203/followers","following_url":"https://api.github.com/users/bsr203/following{/other_user}","gists_url":"https://api.github.com/users/bsr203/gists{/gist_id}","starred_url":"https://api.github.com/users/bsr203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsr203/subscriptions","organizations_url":"https://api.github.com/users/bsr203/orgs","repos_url":"https://api.github.com/users/bsr203/repos","events_url":"https://api.github.com/users/bsr203/events{/privacy}","received_events_url":"https://api.github.com/users/bsr203/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-16T14:14:14Z","updated_at":"2015-06-16T14:14:14Z","closed_at":null,"body":"Hi,\r\n\r\nfor the `navy` theme, lang_select.js has following code, where `zh-cn` is the main language. Can we avoid this hardcoding and use the value from _config. I like to set `en` as my default languge and don't want prefix like `/en/index.html`\r\n```\r\nfunction changeLang(){\r\n    var lang = this.value;\r\n    var canonical = this.dataset.canonical;\r\n    if (lang === 'zh-cn') lang = '';\r\n    if (lang) lang += '/';\r\n\r\n    location.href = '/' + lang + canonical;\r\n  }\r\n```\r\n\r\nthanks."}}