{"action":"created","issue":{"url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/81","repository_url":"https://api.github.com/repos/codemix/yii2-localeurls","labels_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/81/comments","events_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/81/events","html_url":"https://github.com/codemix/yii2-localeurls/issues/81","id":183077478,"number":81,"title":"Get always de prefix","user":{"login":"kmergen","id":1640101,"avatar_url":"https://avatars.githubusercontent.com/u/1640101?v=3","gravatar_id":"","url":"https://api.github.com/users/kmergen","html_url":"https://github.com/kmergen","followers_url":"https://api.github.com/users/kmergen/followers","following_url":"https://api.github.com/users/kmergen/following{/other_user}","gists_url":"https://api.github.com/users/kmergen/gists{/gist_id}","starred_url":"https://api.github.com/users/kmergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmergen/subscriptions","organizations_url":"https://api.github.com/users/kmergen/orgs","repos_url":"https://api.github.com/users/kmergen/repos","events_url":"https://api.github.com/users/kmergen/events{/privacy}","received_events_url":"https://api.github.com/users/kmergen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T15:18:36Z","updated_at":"2016-10-15T09:06:20Z","closed_at":null,"body":"My source language is de\r\n\r\n```\r\n  language => 'en'\r\n```\r\n\r\n```\r\n   'i18n' => [\r\n            'translations' => [\r\n                'app' => [\r\n                    'class' => 'yii\\i18n\\PhpMessageSource',\r\n                    'basePath' => '@common/messages',\r\n                    'sourceLanguage' => 'de', // Developer language\r\n                ],\r\n            ],\r\n        ],\r\n```\r\n\r\nIf I now enter a site I get always \"de\" language prefix e.g de/site/index\r\n\r\nmy url config for frontend:\r\n\r\n```\r\n  'urlManager' => [\r\n            'class' => 'codemix\\localeurls\\UrlManager',\r\n            // List all supported languages here\r\n            // Make sure, you include your app's default language.\r\n            'languages' => ['en', 'de', 'es'],\r\n            'enablePrettyUrl' => true,\r\n            'showScriptName' => false,\r\n            'cache' => null,\r\n            'rules' => [\r\n                '<controller:\\w+>/<id:\\d+>' => '<controller>/view',\r\n                '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>',\r\n                '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>',\r\n            ],\r\n        ],\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/comments/253972276","html_url":"https://github.com/codemix/yii2-localeurls/issues/81#issuecomment-253972276","issue_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/81","id":253972276,"user":{"login":"mikehaertl","id":675062,"avatar_url":"https://avatars.githubusercontent.com/u/675062?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehaertl","html_url":"https://github.com/mikehaertl","followers_url":"https://api.github.com/users/mikehaertl/followers","following_url":"https://api.github.com/users/mikehaertl/following{/other_user}","gists_url":"https://api.github.com/users/mikehaertl/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehaertl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehaertl/subscriptions","organizations_url":"https://api.github.com/users/mikehaertl/orgs","repos_url":"https://api.github.com/users/mikehaertl/repos","events_url":"https://api.github.com/users/mikehaertl/events{/privacy}","received_events_url":"https://api.github.com/users/mikehaertl/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T09:06:20Z","updated_at":"2016-10-15T09:06:20Z","body":"Did you read about language detection? https://github.com/codemix/yii2-localeurls#language-detection\r\n\r\nYou should also check the logs in your debug toolbar (`YII_DEBUG` must be se to `true`) to find out, how the current language was detected."}}
{"actor":{"display_login":"mikehaertl"}}