{"action":"opened","issue":{"url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/444","labels_url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/444/comments","events_url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/444/events","html_url":"https://github.com/wpninjas/ninja-forms/issues/444","id":56126638,"number":444,"title":"Translations not working on front-end","user":{"login":"tomasz-drgas","id":1114118,"avatar_url":"https://avatars.githubusercontent.com/u/1114118?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasz-drgas","html_url":"https://github.com/tomasz-drgas","followers_url":"https://api.github.com/users/tomasz-drgas/followers","following_url":"https://api.github.com/users/tomasz-drgas/following{/other_user}","gists_url":"https://api.github.com/users/tomasz-drgas/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasz-drgas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasz-drgas/subscriptions","organizations_url":"https://api.github.com/users/tomasz-drgas/orgs","repos_url":"https://api.github.com/users/tomasz-drgas/repos","events_url":"https://api.github.com/users/tomasz-drgas/events{/privacy}","received_events_url":"https://api.github.com/users/tomasz-drgas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-31T14:30:15Z","updated_at":"2015-01-31T14:30:15Z","closed_at":null,"body":"Hey.\r\nSo I'm working on a multi-language website (English, Polish and Japanese) and I discovered that language files are not loading properly for front-end. Translations work fine for admin section though.\r\nI had an issue with translating error messages visible after form submission. In order to solve this problem I placed this code in `functions.php` file of my theme:\r\n```\r\nfunction caps_ninja_forms_settings($ninja_settings){\r\n\tif( ! is_admin() && defined( 'NF_PLUGIN_DIR' ) ) {\r\n\t\tload_textdomain( 'ninja-forms', NF_PLUGIN_DIR . '/lang/' . get_locale() . '.mo' );\r\n\t}\r\n\treturn $ninja_settings;\r\n}\r\nadd_filter( 'ninja_forms_settings', 'caps_ninja_forms_settings' );\r\n```\r\nSome additional info:\r\nNinja Forms: v2.8.13\r\nWordpress: v4.1\r\nPolylang: v1.6.3"}}