{"action":"opened","issue":{"url":"https://api.github.com/repos/cipchk/delon/issues/123","repository_url":"https://api.github.com/repos/cipchk/delon","labels_url":"https://api.github.com/repos/cipchk/delon/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/cipchk/delon/issues/123/comments","events_url":"https://api.github.com/repos/cipchk/delon/issues/123/events","html_url":"https://github.com/cipchk/delon/issues/123","id":342198156,"node_id":"MDU6SXNzdWUzNDIxOTgxNTY=","number":123,"title":"page-header 的 [home] 和 [home_i18n] 的优先级问题？","user":{"login":"haoliangwu","id":6328186,"node_id":"MDQ6VXNlcjYzMjgxODY=","avatar_url":"https://avatars1.githubusercontent.com/u/6328186?v=4","gravatar_id":"","url":"https://api.github.com/users/haoliangwu","html_url":"https://github.com/haoliangwu","followers_url":"https://api.github.com/users/haoliangwu/followers","following_url":"https://api.github.com/users/haoliangwu/following{/other_user}","gists_url":"https://api.github.com/users/haoliangwu/gists{/gist_id}","starred_url":"https://api.github.com/users/haoliangwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoliangwu/subscriptions","organizations_url":"https://api.github.com/users/haoliangwu/orgs","repos_url":"https://api.github.com/users/haoliangwu/repos","events_url":"https://api.github.com/users/haoliangwu/events{/privacy}","received_events_url":"https://api.github.com/users/haoliangwu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T06:49:34Z","updated_at":"2018-07-18T06:49:34Z","closed_at":null,"author_association":"NONE","body":"- ng-alain version: 1.1.4\r\n- Angular version: 6.0.9\r\n\r\n~## 【必填项】重现链接，Reproduction link~\r\n\r\n## 重现步骤，Steps to reproduce\r\n当未配置 i18n 的情况下，对 page-header 传入 [home] 属性，但是首页文本始终为 `home`\r\n\r\n## 讨论\r\n[source code](https://github.com/cipchk/delon/blob/6fc1c66210901fabb1f039be97e9d2df46077f9f/packages/abc/page-header/page-header.component.ts#L166-L169) 这里的逻辑确实是这样的，会先通过 i18n 服务获取文本，home 只是作为默认值返回\r\n\r\n这个问题可以通过修改 AdPageHeaderConfig 对象的 provider 工厂函数中的逻辑，将 home_i18n 变为空值来解决，但是我觉的最根本的原因应该是 [home] 属性的优先级应该是大于 [home_i18n] 属性的吧，这样不管我是否配置 i18n，只要我传入了 [home]，都会得到所希望的结果。\r\n\r\n或者还有别的方式来解决这个问题？谢谢\r\n\r\n\r\n"}}
{"actor":{"display_login":"haoliangwu"}}